body { font-family: "Segoe UI", system-ui, sans-serif; }
.hero-copy h1 { max-width: 24ch; text-wrap: initial; }
.headline-line { display: block; }
.page-hero h1, .product-hero h1, .about-hero h1 { font-size: clamp(2.1rem, 4.5vw, 4.1rem); }
.inner-demo { width: min(calc(100% - 2 * var(--gap, 1.25rem)), var(--measure, 75rem)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; margin: 0 auto clamp(1.5rem, 4vw, 3rem); padding: 1.15rem clamp(1rem, 3vw, 2rem); border: 1px solid #d6d1f0; border-radius: 10px; background: #eeedf9; }
.inner-demo p { color: #373254; }
.inner-demo strong { display: block; margin-bottom: .25rem; color: #17182c; }
.module-icon svg { width: 1.15rem; height: 1.15rem; }
.platform-next { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.platform-next article { min-width: 0; padding: .85rem 1.05rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.site-footer-meta { display:flex; flex-wrap:wrap; gap:.55rem 1.3rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.privacy-copy { max-width: 72ch; margin-inline: auto; }
.privacy-copy h2 { margin: 1.6rem 0 .5rem; font-size: clamp(1.2rem, 2.9vw, 1.65rem); }
.privacy-copy p, .privacy-copy ul { margin: .65rem 0; }
.privacy-copy a { color: var(--accent-hover); text-decoration: underline; }
.motion-art--floorplan { display: block; background: #171328; }
.motion-art--floorplan::before { position: absolute; inset: 27% 30% 26% 24%; content: ''; border: 2px dashed #7d66bf; border-top: 0; border-right: 0; border-radius: 0 0 0 7px; opacity: .82; }
.motion-art--floorplan i { position: absolute; width: .82rem; height: .82rem; border-radius: 50%; box-shadow: 0 0 0 .2rem #211b34; }
.motion-art--floorplan i:nth-child(1) { left: 22%; top: 23%; }
.motion-art--floorplan i:nth-child(2) { left: 22%; bottom: 22%; }
.motion-art--floorplan i:nth-child(3) { right: 27%; bottom: 22%; }
[data-motion-index="2"] .motion-art--floorplan i:nth-child(2), [data-motion-index="3"] .motion-art--floorplan i:nth-child(3) { transform: scale(1.25); box-shadow: 0 0 12px #baa5ff80; }
.motion-art--floorplan span { position: absolute; color: #d5c9f6; font-size: .73rem; line-height: 1.1; }
.motion-art--floorplan .map-door { top: 20%; left: 36%; }
.motion-art--floorplan .map-reception { bottom: 2%; left: 7%; }
.motion-art--floorplan .map-corridor { bottom: 2%; right: 8%; }
@media (width <= 1050px) { .headline-line { display: inline; } }
@media (width <= 540px) { .platform-next { grid-template-columns: minmax(0,1fr); } .hero-copy h1 { max-width: 21ch; } }

/* Keep the main navigation accessible even when the enhanced menu is unavailable. */
.nav-toggle[hidden], #site-navigation[hidden] { display: none; }
.site-header[data-nav-enhanced] { position: sticky; inset-block-start: 0; z-index: 20; }
.skip-link { z-index: 30; }
html { scroll-padding-block-start: 6rem; }

.site-header .header-inner { gap: clamp(.55rem, 1.35vw, 1.2rem); }
.site-header .site-nav { gap: clamp(.5rem, 1.2vw, 1.25rem); }
.site-header .header-inner > .button { flex: none; white-space: nowrap; }
.site-header .site-nav a[aria-current="page"] { font-weight: 750; }
.site-header .site-nav a[aria-current="page"]:not(.home-link),
.site-header .nav-dropdown:has(a[aria-current="page"]) > summary { color: var(--accent-hover); }
.site-header .nav-menu { max-block-size: calc(100dvh - 6.6rem); overflow: auto; overscroll-behavior: contain; }
.site-header .nav-dropdown:last-child .nav-menu { inset-inline: auto 0; }

.nav-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .36rem;
  min-block-size: 44px;
  padding: .4rem .62rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--surface-blue); color: var(--accent-hover); }
.nav-toggle::before {
  content: "";
  inline-size: .8rem;
  block-size: 1px;
  background: currentColor;
  box-shadow: 0 -.26rem currentColor, 0 .26rem currentColor;
}

.gate-estimate__results strong { color: var(--accent-hover); }
.restored-replay .gate-replay-status, .gate-demo .gate-replay-status {
  color: #e6e8fb;
  font-size: max(.75rem, 12px);
}
.scenario-steps button, .scenario-timeline li span, .scenario-label,
.motion-head p, .motion-readout [data-motion-caption], .motion-steps button,
.gate-zone, .gate-marker > span { font-size: max(.75rem, 12px); }
.gate-marker > span { max-inline-size: 10ch; white-space: nowrap; }

@media (max-width: 1040px) {
  html { scroll-padding-block-start: 5rem; }
  .site-header:not([data-nav-enhanced]) .header-inner { flex-wrap: wrap; }
  .site-header:not([data-nav-enhanced]) .site-nav { order: 3; flex: 0 0 100%; flex-wrap: wrap; }
  .site-header[data-nav-enhanced] .header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: .5rem;
    min-block-size: 4.35rem;
    padding-block: .42rem;
  }
  .site-header[data-nav-enhanced] .brand { min-inline-size: 0; width: fit-content; }
  .site-header[data-nav-enhanced] .brand img { inline-size: clamp(7rem, 29vw, 11rem); max-inline-size: 100%; }
  .site-header[data-nav-enhanced] .header-inner > .button { justify-self: end; }
  .site-header[data-nav-enhanced] .site-nav:not([hidden]) {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    width: auto;
    gap: .2rem;
    max-block-size: min(35rem, calc(100dvh - 4.5rem));
    overflow: auto;
    overscroll-behavior: contain;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 16px 38px #17182c2e;
  }
  .site-header[data-nav-enhanced] .site-nav > a,
  .site-header[data-nav-enhanced] .nav-dropdown summary,
  .site-header[data-nav-enhanced] .nav-menu a {
    display: flex;
    align-items: center;
    min-block-size: 44px;
    padding: .42rem .68rem;
    white-space: normal;
  }
  .site-header[data-nav-enhanced] .site-nav > a { border-radius: 6px; }
  .site-header[data-nav-enhanced] .nav-dropdown summary { justify-content: space-between; }
  .site-header[data-nav-enhanced] .nav-dropdown .nav-menu {
    position: static;
    min-inline-size: 0;
    inline-size: auto;
    max-block-size: none;
    overflow: visible;
    padding: 0 0 .35rem .5rem;
    border: 0;
    border-inline-start: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
  .site-header[data-nav-enhanced] .nav-menu a { font-size: .88rem; }
}

@media (min-width: 481px) and (max-width: 1040px) {
  .module-grid, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid > :last-child:nth-child(odd), .industry-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root :is(.hero, .page-hero, .about-hero, .product-hero) h1 { font-size: clamp(2rem, 8.4vw, 2.125rem); }
  .site-header[data-nav-enhanced] .header-inner > .button { padding-inline: .6rem; font-size: .83rem; min-block-size: 44px; }
  :is(.text-link, .platform-next a, .product-shortcuts a, .sector-shortcuts a, .footer nav a, .footer address a) {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
  }
  :is(.scenario-steps button, .motion-steps button, .motion-play, .gate-replay button, .gate-estimate__presets button) { min-block-size: 44px; }
  :is(.practice-toggle, .method-criteria, .restore-faq details, .attendance-faq-list details) > summary { min-block-size: 44px; padding-block: .7rem; }
  .method-table tr > :first-child {
    position: sticky;
    inset-inline-start: 0;
    background: #f6f7fb;
    box-shadow: 1px 0 var(--line);
  }
  .method-table thead th:first-child { background: #edeff7; }
}

@media (max-width: 480px) {
  .scenario-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header[data-nav-enhanced] .header-inner { column-gap: .3rem; }
  .nav-toggle { padding-inline: .5rem; }
}

@media (max-width: 360px) {
  .site-header[data-nav-enhanced] .header-inner > .button { padding-inline: .45rem; font-size: .78rem; }
  .site-header[data-nav-enhanced] .header-inner > .button > span { display: none; }
}
