@media (max-width: 1100px) {
  .presentation-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .section {
    min-height: auto;
    display: block;
    overflow: visible;
  }

  .hero-grid {
    max-width: 640px;
    margin: 0 auto;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: minmax(460px, 0.96fr) minmax(0, 1.04fr);
    max-width: none;
    gap: 18px;
  }

  .hero h1 {
    font-size: clamp(2.02rem, 3.6vw, 2.76rem);
  }

  .hero-product {
    width: min(calc(100% + 28px), 520px);
    max-width: none;
    margin-right: -14px;
  }

  .product-notebook {
    transform: translateY(-4px);
  }
}

@media (min-width: 1101px) {
  .hero-grid {
    transform: translateY(-24px);
  }
}

@media (min-width: 1101px) and (max-width: 1399px) {
  .hero-product {
    width: min(calc(100% + 24px), 665px);
    min-width: 560px;
    margin-right: -20px;
  }
}

@media (min-width: 1400px) and (max-width: 1599px) {
  .hero-product {
    width: min(calc(100% + 24px), 700px);
    margin-right: -20px;
  }
}

@media (min-width: 1600px) {
  .hero-product {
    width: 700px;
    margin-right: -36px;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .shell {
    width: min(calc(100% - 48px), 760px);
  }

  .hero {
    height: auto;
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    height: auto;
    padding: 38px 0 32px;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 5.2vw, 2.62rem);
  }

  .hero-copy > p {
    max-width: 590px;
    font-size: 1rem;
  }

  .hero-product {
    width: min(100%, 580px);
    min-width: 0;
    margin-right: 0;
    justify-self: center;
  }

  .product-notebook {
    transform: none;
  }

  .section {
    padding: 58px 0;
  }

  .solution-section {
    padding: 54px 0 58px;
  }

  .section-title h2 {
    font-size: clamp(2rem, 5.6vw, 2.75rem);
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border: 1px solid var(--border);
    border-top-color: rgba(56, 189, 248, 0.2);
    border-radius: 0 0 var(--radius) var(--radius);
    background: rgba(8, 17, 32, 0.98);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
  }

  .nav a::after {
    right: auto;
    bottom: 6px;
    left: 12px;
    width: 28px;
  }

  .header-link {
    display: none;
  }

  .menu-button {
    display: block;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .brand {
    font-size: 1.1rem;
  }

  .hero {
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 0;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    min-height: 0;
    padding: 26px 0 28px;
  }

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow {
    order: 1;
    margin-bottom: 18px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    order: 2;
    margin-bottom: 18px;
    font-size: clamp(1.9rem, 8.3vw, 2.22rem);
    line-height: 1.07;
  }

  .hero-copy > p {
    order: 3;
    max-width: 100%;
    margin-bottom: 26px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .hero-actions {
    order: 5;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 0;
  }

  .hero-actions .button-primary,
  .hero-actions .button-text,
  .presentation-form .button {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 0 16px;
    font-size: 1rem;
  }

  .hero-actions .button-text {
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.46);
  }

  .hero-product {
    order: 4;
    width: min(100%, 460px);
    max-width: 460px;
    min-width: 0;
    margin: clamp(28px, 7vh, 68px) auto 16px;
    align-self: center;
  }

  .product-notebook {
    width: 100%;
    aspect-ratio: 990 / 560;
    transform: none;
  }

  .product-notebook::after {
    display: block;
  }

  .notebook-screen {
    width: 70.87%;
    height: 71.13%;
    position: absolute;
    top: 6.64%;
    left: 14.24%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .notebook-chassis {
    display: block;
  }

  .section {
    padding: 46px 0;
  }

  .about-layout {
    gap: 28px;
  }

  .section-title h2,
  .presentation-copy h2 {
    font-size: clamp(1.72rem, 7.8vw, 2.08rem);
    line-height: 1.06;
  }

  .about-copy > p {
    margin-bottom: 12px;
    font-size: 0.96rem;
  }

  .about-points {
    gap: 0;
    margin-top: 18px;
  }

  .about-points article {
    grid-template-columns: 24px 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .about-points svg {
    width: 18px;
    height: 18px;
  }

  .about-points strong {
    font-size: 0.93rem;
  }

  .about-points span {
    font-size: 0.87rem;
  }

  .solution-section {
    padding: 44px 0 46px;
  }

  .solution-section .section-title-wide {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 24px;
  }

  .solution-section .section-title h2 {
    font-size: clamp(1.72rem, 7.6vw, 2.04rem);
  }

  .solution-columns {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
  }

  .solution-block {
    width: 100%;
    min-width: 0;
    padding: 16px;
  }

  .feature-label {
    font-size: 0.88rem;
  }

  .solution-block > .feature-label {
    margin-bottom: 14px;
  }

  .solution-block article {
    padding: 11px 0;
  }

  .solution-block strong {
    margin-bottom: 4px;
    font-size: 0.95rem;
  }

  .solution-block p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .module-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin: 36px 0 18px;
  }

  .module-intro h3 {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .module-grid {
    gap: 12px;
  }

  .module-grid article {
    min-height: 112px;
    justify-content: flex-start;
    gap: 7px;
    padding: 14px;
  }

  .module-grid article > svg {
    width: 19px;
    height: 19px;
    margin-bottom: 2px;
  }

  .module-grid span {
    font-size: 0.92rem;
  }

  .module-grid p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .contact-section {
    padding: 48px 0;
  }

  .presentation-layout {
    gap: 28px;
  }

  .presentation-copy p {
    font-size: 0.96rem;
  }

  .presentation-copy .contact-link {
    margin-top: 22px;
    font-size: 0.96rem;
  }

  .presentation-form {
    padding: 18px 16px;
    box-shadow: none;
  }

  .presentation-fields {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
  }

  .presentation-form input {
    min-height: 46px;
    font-size: 1rem;
  }

  .footer-inner {
    min-height: 72px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 14px 0;
    text-align: center;
  }
}

@media (min-width: 381px) and (max-width: 640px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: clamp(1.8rem, 8.3vw, 2.02rem);
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .module-grid article {
    min-height: 96px;
  }
}

@media (max-width: 640px) and (max-height: 680px) {
  .hero-grid {
    align-content: start;
    min-height: 0;
    gap: 18px;
    padding: 18px 0;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
  }

  .hero h1 {
    font-size: clamp(1.72rem, 7vw, 1.95rem);
  }

  .hero-copy > p {
    margin-bottom: 10px;
  }

  .hero-product {
    margin-top: 20px;
    max-width: 410px;
  }

  .hero-actions {
    margin-top: 0;
  }
}

@media (max-width: 640px) and (min-height: 681px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    min-height: 0;
  }

  .hero-product {
    margin: clamp(28px, 7vh, 68px) auto 16px;
    transform: none;
  }

  .hero-actions {
    margin-top: auto;
  }
}

@media (min-width: 641px) and (max-width: 1100px) {
  .hero {
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    min-height: 0;
  }

  .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    min-height: 0;
    padding: 32px 0 28px;
  }

  .hero-copy {
    display: contents;
  }

  .hero .eyebrow {
    order: 1;
    margin-bottom: 16px;
  }

  .hero h1 {
    order: 2;
    width: auto;
    max-width: 620px;
    margin-bottom: 16px;
    font-size: clamp(2rem, 4.4vw, 2.55rem);
  }

  .hero-copy > p {
    order: 3;
    width: auto;
    max-width: 620px;
    margin-bottom: 28px;
    font-size: 1rem;
  }

  .hero-product {
    order: 4;
    width: min(100%, 600px);
    max-width: 600px;
    min-width: 0;
    margin: clamp(20px, 4vh, 46px) auto 16px;
    align-self: center;
  }

  .product-notebook {
    transform: none;
  }

  .hero-actions {
    order: 5;
    width: min(100%, 600px);
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin: auto auto 0;
  }

  .hero-actions .button-primary,
  .hero-actions .button-text {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: 0 18px;
    font-size: 1rem;
  }

  .hero-actions .button-text {
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.46);
  }

  .section {
    padding: 54px 0;
  }

  .solution-section {
    padding: 50px 0 54px;
  }

  .section-title h2,
  .presentation-copy h2 {
    font-size: clamp(2rem, 4.6vw, 2.7rem);
  }

  .about-layout {
    gap: 30px;
  }

  .about-points article {
    padding: 13px 0;
  }

  .solution-columns,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-block {
    padding: 18px;
  }

  .solution-block article {
    padding: 12px 0;
  }

  .module-grid {
    gap: 14px;
  }

  .module-grid article {
    min-height: 110px;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px;
  }

  .module-grid article > svg {
    margin-bottom: 2px;
  }

  .contact-section {
    padding: 56px 0;
  }

  .presentation-layout {
    gap: 30px;
  }

  .presentation-fields {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 22px;
  }

  .presentation-form .button {
    width: 100%;
    min-height: 48px;
  }

  .footer-inner {
    min-height: 74px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 14px 0;
    text-align: center;
  }
}

/* Tablets in landscape need the same one-screen hero rhythm as phones,
   with a more compact product scale to keep both CTAs visible. */
@media (min-width: 641px) and (max-width: 1100px) and (max-height: 800px) {
  .hero-grid {
    padding: 18px 0 16px;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
  }

  .hero h1 {
    margin-bottom: 10px;
    font-size: clamp(1.9rem, 3.8vw, 2.3rem);
  }

  .hero-copy > p {
    margin-bottom: 14px;
    font-size: 0.95rem;
  }

  .hero-product {
    width: min(100%, 440px);
    margin: 12px auto 8px;
  }

  .hero-actions {
    width: min(100%, 440px);
    gap: 8px;
  }

  .hero-actions .button-primary,
  .hero-actions .button-text {
    min-height: 44px;
  }
}

/* Smart displays are wide enough to retain the compact desktop composition. */
@media (min-width: 641px) and (max-width: 1100px) and (max-height: 620px) {
  .hero-grid {
    display: grid;
    grid-template-columns: minmax(420px, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 14px;
    padding: 12px 0;
  }

  .hero-copy {
    display: block;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-copy > p,
  .hero-actions,
  .hero-product {
    order: initial;
  }

  .hero .eyebrow {
    margin-bottom: 8px;
    font-size: 0.62rem;
  }

  .hero h1 {
    max-width: 440px;
    margin-bottom: 8px;
    font-size: clamp(1.72rem, 2.8vw, 2rem);
  }

  .hero-copy > p {
    max-width: 440px;
    margin-bottom: 10px;
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .hero-product {
    width: min(calc(100% + 20px), 490px);
    max-width: none;
    margin: 0 -14px 0 0;
    align-self: center;
    justify-self: end;
  }

  .hero-actions {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  .hero-actions .button-primary,
  .hero-actions .button-text {
    width: auto;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .hero-actions .button-text {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
}

@media (min-width: 641px) and (max-width: 1100px) and (min-height: 801px) {
  .hero-product {
    margin-top: clamp(54px, 8vh, 96px);
  }
}

@media (min-width: 1101px) and (max-height: 760px) {
  .hero-grid {
    padding: 12px 0;
  }

  .hero h1 {
    margin-bottom: 10px;
    font-size: clamp(2rem, 3.35vw, 3.15rem);
  }

  .hero-copy > p {
    margin-bottom: 12px;
  }

  .hero-actions {
    margin-bottom: 12px;
  }

  .hero-product {
    width: min(calc(100% + 24px), clamp(560px, 48vw, 640px));
    min-width: 560px;
    max-width: none;
    margin-right: -20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 900px) {
  .product-showcase {
    padding-top: 58px;
    padding-bottom: 66px;
  }

  .showcase-heading {
    margin-bottom: 24px;
  }

  .showcase-heading h2 {
    font-size: clamp(2rem, 5.6vw, 2.75rem);
  }

  .showcase-stage {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 22px;
  }

  .showcase-copy {
    padding: 0;
  }

  .showcase-copy h3,
  .showcase-copy > p {
    max-width: 620px;
  }

  .showcase-media {
    width: min(100%, 700px);
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .product-showcase {
    padding: 48px 0 54px;
  }

  .showcase-heading {
    margin-bottom: 21px;
  }

  .showcase-heading h2 {
    font-size: clamp(1.72rem, 7.8vw, 2.08rem);
    line-height: 1.06;
  }

  .showcase-heading p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .showcase-tabs {
    width: calc(100% + 2px);
    margin-right: -2px;
    margin-bottom: 18px;
    border-radius: 10px;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .showcase-tab {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .showcase-stage {
    gap: 16px;
    padding: 18px 14px 16px;
    border-radius: 17px;
  }

  .showcase-kicker {
    margin-bottom: 10px;
    font-size: 0.66rem;
  }

  .showcase-copy h3 {
    margin-bottom: 10px;
    font-size: clamp(1.35rem, 6.1vw, 1.62rem);
    line-height: 1.1;
  }

  .showcase-copy > p {
    margin-bottom: 16px;
    font-size: 0.9rem;
    line-height: 1.52;
  }

  .showcase-points {
    gap: 6px;
  }

  .showcase-points li {
    padding: 6px 8px;
    font-size: 0.67rem;
  }

  .showcase-media {
    padding: 4px 0 2px;
  }

  .showcase-notebook {
    width: 100%;
  }

  .showcase-notebook::after {
    display: none;
  }

  .showcase-detail {
    width: min(100%, 280px);
    position: relative;
    right: auto;
    bottom: auto;
    margin: 12px 0 0 auto;
    border-radius: 10px;
  }

  .showcase-detail figcaption {
    padding: 7px 8px 8px;
  }

  .showcase-detail strong {
    font-size: 0.66rem;
  }

  .showcase-detail span {
    display: none;
  }
}

@media (max-width: 380px) {
  .showcase-stage {
    padding: 16px 12px 14px;
  }

  .showcase-tab {
    padding: 0 10px;
  }

  .showcase-detail {
    width: min(100%, 260px);
  }
}
