@layer reset, tokens, base, layout, components, responsive, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { overflow-x: clip; scroll-behavior: smooth; }
  body, h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  button, input { font: inherit; }
  button { color: inherit; }
  img, svg { display: block; max-width: 100%; }
}

@layer tokens {
  :root {
    color-scheme: dark;
    --black: #020304;
    --ink: #06090b;
    --panel: #090d0f;
    --panel-soft: #0d1215;
    --line: #283137;
    --line-strong: #4a565d;
    --steel: #9ca7ad;
    --muted: #8e999f;
    --text: #eef1f2;
    --cyan: #00d1f6;
    --cyan-soft: #73e9ff;
    --green: #70d5a0;
    --red: #ff8077;
    --font: "Avenir Next", Avenir, "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
    --shell: min(92rem, calc(100% - clamp(2rem, 6vw, 7rem)));
    --gutter: clamp(1rem, 3vw, 3rem);
    --section: clamp(7rem, 12vw, 12rem);
    --ease: cubic-bezier(.16, 1, .3, 1);
  }
}

@layer base {
  html { background: var(--black); scroll-padding-top: 6rem; }
  body {
    min-width: 20rem;
    background:
      linear-gradient(90deg, transparent calc(100% - 1px), rgba(76, 86, 93, .22) 0) 0 0 / clamp(5rem, 8vw, 8rem) 100%,
      var(--black);
    color: var(--text);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 420;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration-color: var(--cyan); text-underline-offset: .25em; }
  button, a, input { -webkit-tap-highlight-color: transparent; }
  :focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
  ::selection { background: var(--cyan); color: var(--black); }
  h1, h2, h3, h4 { font-weight: 430; letter-spacing: -.04em; line-height: .98; }
  em { color: var(--cyan); font-style: normal; }
}

@layer layout {
  .section-shell { width: var(--shell); margin-inline: auto; }
  .page-grid { width: min(96rem, calc(100% - clamp(2rem, 5vw, 5rem))); margin-inline: auto; }
  .site-header {
    position: fixed;
    z-index: 300;
    inset: 0 0 auto;
    min-height: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: clamp(1.25rem, 3vw, 3rem);
    border-bottom: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease;
  }
  .site-header.is-scrolled { background: rgba(2, 3, 4, .94); border-color: var(--line); backdrop-filter: blur(14px); }
  .hero {
    min-height: max(48rem, 100svh);
    padding-block: clamp(8rem, 13vh, 10rem) clamp(5rem, 8vh, 7rem);
    display: grid;
    grid-template-columns: minmax(20rem, .72fr) minmax(34rem, 1.28fr);
    gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
  }
  .product-story, .privacy-section, .workflow-section, .licensing-section { padding-block: var(--section); }
  .account-section {
    display: grid;
    grid-template-columns: minmax(20rem, .92fr) minmax(34rem, 1.08fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .site-footer {
    padding: clamp(3rem, 6vw, 6rem) var(--gutter) max(2rem, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 3rem;
    border-top: 1px solid var(--line);
  }
}

@layer components {
  .skip-link { position: fixed; z-index: 900; left: 1rem; top: 1rem; padding: .75rem 1rem; background: var(--cyan); color: var(--black); transform: translateY(-170%); }
  .skip-link:focus { transform: none; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

  .madevia-wordmark { display: inline-flex; align-items: baseline; color: var(--text); font-size: 1.15rem; font-weight: 680; letter-spacing: -.035em; text-decoration: none; }
  .madevia-wordmark span:last-child { color: var(--steel); font-weight: 450; }
  .site-nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
  .site-nav a { min-height: 2.75rem; display: flex; align-items: center; color: #d2d7d9; font-size: .82rem; font-weight: 560; text-decoration: none; }
  .site-nav a:hover { color: var(--cyan); }
  .site-nav .nav-account { min-width: 9.8rem; justify-content: center; padding-inline: 1.15rem; border: 1px solid var(--cyan); color: var(--cyan); }
  .site-nav .nav-account:hover { background: var(--cyan); color: var(--black); }
  .nav-toggle { display: none; position: relative; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; cursor: pointer; }
  .nav-toggle span:not(.sr-only) { position: absolute; left: .6rem; width: 1.55rem; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .nav-toggle span:nth-child(2) { transform: translateY(-4px); }
  .nav-toggle span:nth-child(3) { transform: translateY(4px); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

  .eyebrow, .form-kicker, .panel-kicker {
    color: var(--cyan);
    font-family: var(--mono);
    font-size: .73rem;
    font-weight: 560;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
  }
  .eyebrow span { color: var(--muted); }
  .hero-copy { min-width: 0; }
  .hero-lockup { width: min(25rem, 80%); margin: 1.75rem 0 2.25rem; }
  .structura-lockup { height: auto; mix-blend-mode: screen; }
  .hero h1 { max-width: 9.5ch; font-size: clamp(3.65rem, 5.35vw, 5.75rem); }
  .hero-intro { max-width: 35rem; margin-top: 1.75rem; color: #c5cbce; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.6; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
  .button {
    min-height: 3.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: .9rem 1.35rem;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-weight: 570;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  }
  .button-primary { border-color: var(--cyan); color: var(--cyan); }
  .button-primary:hover { background: var(--cyan); color: var(--black); }
  .button-secondary:hover { border-color: var(--text); }
  .hero-trust { margin-top: 1.7rem; color: var(--muted); font-size: .88rem; }
  .hero-trust::before { content: "◇"; margin-right: .6rem; color: var(--cyan); }

  .product-window { min-width: 0; border: 1px solid var(--line-strong); background: var(--ink); }
  .window-bar { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; }
  .window-product { display: flex; align-items: center; gap: .6rem; color: var(--text); font-family: var(--font); font-size: .78rem; letter-spacing: 0; }
  .window-product img { width: 1.7rem; height: 1.7rem; object-fit: cover; object-position: top; }
  .window-steps { min-height: 3.5rem; display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .window-steps li { position: relative; display: grid; place-items: center; color: var(--muted); font-size: .75rem; }
  .window-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -.25rem; color: var(--line-strong); }
  .window-steps .is-active { color: var(--cyan); }
  .window-steps .is-active::before { content: ""; position: absolute; inset: auto 10% -1px; height: 1px; background: var(--cyan); }
  .cad-workspace { position: relative; min-height: 36rem; overflow: hidden; background: radial-gradient(circle at 68% 38%, #11191d 0, #06090b 43%, #030506 75%); }
  .cad-frame { position: absolute; inset: 4% -2% 0 22%; width: 86%; height: 92%; }
  .cad-grid { fill: none; stroke: #1d343d; stroke-width: 1; }
  .steel-frame { fill: none; stroke: url(#steel); stroke-width: 8; stroke-linecap: square; stroke-linejoin: bevel; }
  .selected-members { fill: var(--cyan); stroke: var(--cyan); stroke-width: 4; filter: drop-shadow(0 0 8px rgba(0,209,246,.35)); }
  .action-plan { position: absolute; z-index: 2; inset: 1.5rem auto 1.5rem 1.5rem; width: min(16rem, 36%); padding: 1.25rem; border-right: 1px solid var(--line); background: rgba(5, 8, 9, .92); }
  .plan-request { margin: 1rem 0 1.25rem; font-size: 1rem; line-height: 1.45; }
  .action-plan ol { display: grid; gap: 0; border-top: 1px solid var(--line); }
  .action-plan li { display: grid; grid-template-columns: 1.8rem 1fr; gap: .5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); color: #c3c9cc; font-size: .76rem; line-height: 1.4; }
  .action-plan li span { color: var(--cyan); font-family: var(--mono); }
  .plan-status { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .72rem; }
  .plan-status strong { color: var(--cyan); font-weight: 540; }

  .madevia-statement { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.35rem var(--gutter); border-block: 1px solid var(--line); color: var(--muted); font-size: .8rem; letter-spacing: .03em; }
  .madevia-statement strong { color: var(--text); }
  .madevia-statement p:last-child { color: var(--cyan); font-family: var(--mono); text-transform: uppercase; }

  .section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .58fr); gap: 2rem 5rem; align-items: end; }
  .section-heading .eyebrow { grid-column: 1 / -1; }
  .section-heading h2, .privacy-copy h2, .workflow-heading h2, .licensing-visual h2 { font-size: clamp(3.1rem, 6.1vw, 6.25rem); }
  .section-heading > p:last-child, .privacy-copy > p:last-child, .workflow-heading > p:last-child, .licensing-visual > p { max-width: 37rem; color: #b8c0c4; font-size: 1.05rem; line-height: 1.75; }
  .product-pillars { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(5rem, 8vw, 8rem); border-block: 1px solid var(--line); }
  .product-pillars article { min-height: 20rem; padding: 2rem clamp(1.5rem, 3vw, 3rem) 3rem; }
  .product-pillars article + article { border-left: 1px solid var(--line); }
  .product-pillars article > span { color: var(--cyan); font-family: var(--mono); font-size: .75rem; }
  .product-pillars h3 { max-width: 13ch; margin-top: 4rem; font-size: clamp(1.65rem, 2.5vw, 2.5rem); line-height: 1.08; }
  .product-pillars p { margin-top: 1.4rem; color: var(--muted); font-size: .92rem; line-height: 1.7; }

  .privacy-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem 7rem; }
  .privacy-copy h2 { margin: 1.25rem 0 1.8rem; }
  .privacy-facts { align-self: end; border-top: 1px solid var(--line); }
  .privacy-facts li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; min-height: 5.2rem; border-bottom: 1px solid var(--line); }
  .privacy-facts li > span { color: var(--cyan); font-size: 1.5rem; }
  .privacy-facts strong { font-weight: 520; }
  .privacy-facts em { color: var(--muted); font-size: .85rem; font-style: normal; }
  .routing-diagram { grid-column: 1 / -1; display: grid; grid-template-columns: .75fr 1fr .9fr 1fr .75fr; grid-template-rows: auto auto; align-items: center; margin-top: 4rem; min-height: 23rem; border-block: 1px solid var(--line); }
  .route-source { grid-row: 1 / 3; display: grid; place-items: center; gap: 1rem; min-height: 100%; border-right: 1px solid var(--line); color: var(--text); }
  .route-source img { width: 9rem; height: 9rem; object-fit: cover; object-position: top; }
  .route-line { position: relative; height: 1px; margin-inline: 1rem; background: var(--cyan); }
  .route-line::after { content: "›››"; position: absolute; right: -.2rem; top: 50%; padding-left: .45rem; background: var(--black); color: var(--cyan); font-family: var(--mono); transform: translateY(-54%); }
  .route-line span { position: absolute; left: 0; bottom: .8rem; color: var(--cyan); font-family: var(--mono); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
  .route-provider { grid-column: 2; grid-row: 1; }
  .route-local { grid-column: 4; grid-row: 2; }
  .provider-list, .local-list { display: grid; padding: 1.5rem; border: 1px solid var(--line-strong); }
  .provider-list { grid-column: 3; grid-row: 1; }
  .local-list { grid-column: 5; grid-row: 2; }
  .provider-list p, .local-list p { margin-bottom: .6rem; color: var(--cyan); font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; }
  .provider-list span, .local-list span { padding: .55rem 0; border-top: 1px solid var(--line); color: #cbd0d2; font-size: .85rem; }
  .privacy-note { grid-column: 1 / -1; max-width: 54rem; margin-top: 2rem; color: var(--muted); font-size: .8rem; }

  .workflow-heading { max-width: 46rem; }
  .workflow-heading h2 { margin: 1.25rem 0 1.8rem; }
  .workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(4rem, 8vw, 8rem) 0 4rem; }
  .workflow-steps li { position: relative; display: grid; place-items: center; gap: .6rem; min-height: 9rem; color: #636d72; border-top: 1px solid var(--line); }
  .workflow-steps li:not(:last-child)::after { content: "→"; position: absolute; right: -1rem; top: 50%; color: var(--muted); }
  .workflow-steps span { font-family: var(--mono); font-size: clamp(3.8rem, 6vw, 6rem); font-weight: 280; line-height: 1; }
  .workflow-steps strong { font-size: 1.1rem; font-weight: 450; }
  .workflow-steps .is-active { color: var(--cyan); border-color: var(--cyan); }
  .workflow-panels { display: grid; grid-template-columns: 1.15fr .78fr .78fr; border-block: 1px solid var(--line); }
  .workflow-panels article { min-width: 0; min-height: 29rem; padding: 1.5rem; }
  .workflow-panels article + article { border-left: 1px solid var(--line); }
  .workflow-canvas { display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(circle at 50% 45%, #10171b, #050708 66%); }
  .workflow-canvas svg { width: 100%; max-height: 22rem; }
  .mini-grid { fill: none; stroke: #19323b; stroke-width: 1; }
  .mini-frame { fill: none; stroke: #6f7b82; stroke-width: 6; }
  .mini-selected { fill: var(--cyan); stroke: var(--cyan); stroke-width: 3; }
  .workflow-canvas span { color: var(--cyan); font-size: .82rem; }
  .workflow-canvas p, .workflow-review > p { color: var(--muted); font-size: .82rem; }
  .workflow-plan ol { margin-top: 2rem; }
  .workflow-plan li { display: grid; grid-template-columns: 2rem 1fr; gap: .5rem; padding: 1.2rem 0; border-top: 1px solid var(--line); color: #c4cacc; font-size: .86rem; }
  .workflow-plan li span { color: var(--cyan); font-family: var(--mono); }
  .workflow-review { display: flex; flex-direction: column; }
  .workflow-review h3 { margin: 4rem 0 1rem; font-size: 2.2rem; line-height: 1.1; }
  .workflow-review .button { width: 100%; margin-top: auto; }
  .workflow-guardrail { padding: 1.5rem 0; color: var(--muted); font-size: .8rem; border-bottom: 1px solid var(--line); }
  .workflow-guardrail::before { content: "◇"; margin-right: .65rem; color: var(--cyan); }
  .connector-rail { display: grid; grid-template-columns: 1.45fr repeat(4, 1fr); align-items: stretch; }
  .connector-rail > * { min-height: 8rem; display: flex; flex-direction: column; justify-content: center; padding: 1.25rem; border-bottom: 1px solid var(--line); }
  .connector-rail > * + * { border-left: 1px solid var(--line); }
  .connector-rail > p { color: var(--cyan); font-size: .82rem; }
  .connector-rail p span { color: var(--muted); }
  .connector-rail strong { font-size: .95rem; font-weight: 520; }
  .connector-rail div span { margin-top: .35rem; color: var(--muted); font-size: .7rem; }

  .licensing-section { display: grid; grid-template-columns: 1.7fr .9fr; }
  .licensing-visual { padding-right: clamp(2rem, 5vw, 6rem); }
  .licensing-visual h2 { margin: 1.25rem 0 2rem; }
  .seat-mapping { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; border: 1px solid var(--line); }
  .seat-mapping > div { position: relative; min-height: 19rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1.5rem 1rem; }
  .seat-mapping > div + div { border-left: 1px solid var(--line); }
  .seat-mapping span { align-self: flex-start; color: var(--cyan); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
  .seat-mapping i { position: relative; width: 7rem; height: 10rem; border: 5px solid #56636a; border-top-width: 1rem; box-shadow: inset 0 0 0 1px #1d272c; }
  .seat-mapping i::before, .seat-mapping i::after { content: ""; position: absolute; background: #56636a; }
  .seat-mapping i::before { inset: 44% 0 auto; height: 5px; }
  .seat-mapping i::after { inset: 0 auto 0 48%; width: 5px; transform: rotate(28deg); }
  .seat-mapping strong { color: var(--muted); font-size: .72rem; font-weight: 450; }
  .seat-mapping strong::before { content: "●"; margin-right: .45rem; color: var(--cyan); }
  .plan-column { padding: 0 0 0 clamp(2rem, 4vw, 4rem); border-left: 1px solid var(--line-strong); }
  .plan-column > img { width: 17rem; margin-bottom: 3rem; }
  .plan-column h3 { font-size: clamp(2rem, 3vw, 3rem); }
  .plan-column > p { margin-top: .8rem; color: var(--muted); }
  .plan-column ul { margin: 2.5rem 0; border-top: 1px solid var(--line); }
  .plan-column li { display: grid; grid-template-columns: 3rem 1fr; align-items: center; min-height: 5rem; border-bottom: 1px solid var(--line); }
  .plan-column li span { color: var(--cyan); font-family: var(--mono); font-size: 1.2rem; }
  .plan-column .button { width: 100%; }
  .licensing-assurance { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; border-block: 1px solid var(--line); }
  .licensing-assurance li { min-height: 5rem; display: flex; align-items: center; padding: 1rem 1.5rem; color: #bdc4c7; font-size: .82rem; }
  .licensing-assurance li + li { border-left: 1px solid var(--line); }
  .licensing-assurance li::before { content: "◇"; margin-right: .7rem; color: var(--cyan); }

  .account-context, .account-panel { min-width: 0; padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5rem); }
  .account-context { min-height: 52rem; background: radial-gradient(circle at 35% 68%, #0b1418, transparent 37%); }
  .account-context h2 { margin: 1.35rem 0 2rem; font-size: clamp(3.3rem, 6vw, 6rem); }
  .account-context > p:not(.eyebrow) { max-width: 33rem; color: #bbc2c5; font-size: 1.05rem; }
  .account-logo { width: min(34rem, 100%); margin-top: 4rem; mix-blend-mode: screen; }
  .account-panel { border-left: 1px solid var(--line-strong); background: rgba(3, 5, 6, .7); }
  .account-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
  .account-tabs button { min-height: 3.5rem; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
  .account-tabs button[aria-selected="true"] { border-color: var(--cyan); color: var(--cyan); }
  .form-heading { margin-bottom: 2rem; }
  .form-heading h3 { margin-top: .65rem; font-size: clamp(1.9rem, 3vw, 2.8rem); }
  .signup-fields, .team-seat-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
  .field-group { display: grid; gap: .5rem; margin-bottom: 1.15rem; }
  .field-group label { font-size: .82rem; }
  .label-line { display: flex; justify-content: space-between; gap: 1rem; }
  .label-line span { color: var(--muted); font-size: .72rem; }
  .field-group input, .stepper input {
    width: 100%;
    min-height: 3.2rem;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: .75rem .9rem;
    outline: 0;
  }
  .field-group input:focus, .stepper input:focus { border-color: var(--cyan); }
  .field-group input[aria-invalid="true"] { border-color: var(--red); }
  .field-error { min-height: 1rem; color: var(--red); font-size: .7rem; line-height: 1.35; }
  .seat-picker { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0 1.5rem; }
  .seat-picker label { font-weight: 520; }
  .seat-picker p { color: var(--muted); font-size: .73rem; }
  .stepper { display: grid; grid-template-columns: 3rem 4rem 3rem; }
  .stepper button { min-height: 3.2rem; border: 1px solid var(--line-strong); background: transparent; color: var(--cyan); cursor: pointer; }
  .stepper input { border-inline: 0; text-align: center; appearance: textfield; }
  .stepper input::-webkit-inner-spin-button { appearance: none; }
  .account-submit { width: 100%; }
  .account-assurance { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.5rem; border-top: 1px solid var(--line); }
  .account-assurance li { padding: 1rem .5rem 0; color: var(--muted); font-size: .72rem; text-align: center; }
  .account-assurance li::before { content: "◇"; margin-right: .4rem; color: var(--cyan); }
  .form-status { min-height: 1.5rem; margin-bottom: .5rem; font-size: .78rem; }
  .form-status.is-error { color: var(--red); }
  .form-status.is-success { color: var(--green); }
  .account-panel.attention { animation: attention 700ms var(--ease); }

  .dashboard-header, .dashboard-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
  .dashboard-header { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
  .dashboard-header h3 { margin-top: .55rem; font-size: 2rem; }
  .dashboard-status { color: var(--cyan); font-family: var(--mono); font-size: .72rem; text-transform: uppercase; }
  .dashboard-status[data-state="active"] { color: var(--green); }
  .dashboard-summary { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .dashboard-summary > div { display: grid; gap: .35rem; padding: 1.5rem 0; }
  .dashboard-summary > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
  .dashboard-summary span { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
  .dashboard-summary strong { font-size: 1rem; }
  .dashboard-section { padding: 2rem 0; border-bottom: 1px solid var(--line); }
  .dashboard-section-heading h4 { margin-top: .5rem; font-size: 1.7rem; }
  .dashboard-section-heading > span { color: var(--cyan); font-family: var(--mono); font-size: .72rem; }
  .dashboard-copy { max-width: 36rem; margin: 1.5rem 0; color: var(--muted); font-size: .82rem; }
  .dashboard-action { width: 100%; }
  .license-reveal { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--cyan); }
  .license-reveal p { color: var(--muted); font-size: .75rem; }
  .license-reveal code { display: block; margin: .8rem 0; overflow-wrap: anywhere; color: var(--cyan); font-family: var(--mono); font-size: .75rem; }
  .text-button { padding: 0; border: 0; background: transparent; color: var(--cyan); font-size: .8rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
  .seat-list { margin: 1.5rem 0; }
  .seat-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; min-height: 4rem; border-top: 1px solid var(--line); }
  .seat-identity { display: grid; }
  .seat-identity strong { font-size: .82rem; }
  .seat-meta, .seat-license { color: var(--muted); font-size: .68rem; }
  .seat-revoke { border: 0; background: transparent; color: var(--cyan); font-size: .72rem; cursor: pointer; }
  .team-seat-form { margin-top: 1.5rem; }
  .team-seat-form .dashboard-secondary { grid-column: 1 / -1; }
  .dashboard-secondary { border-color: var(--cyan); color: var(--cyan); }
  .dashboard-footer-actions { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; }

  .site-footer > div:first-child p { margin-bottom: 1.75rem; color: var(--muted); font-size: .8rem; }
  .footer-centre { display: flex; gap: 2rem; align-items: center; }
  .footer-centre a { color: var(--muted); font-size: .75rem; text-decoration: none; }
  .footer-centre a:hover { color: var(--cyan); }
  .footer-credit { text-align: right; }
  .footer-credit p { color: var(--muted); font-size: .75rem; }
  .footer-credit .footer-credit-link { margin-top: 1.5rem; color: var(--text); font-size: 1rem; }
  .footer-credit a { text-decoration: none; }
  .footer-credit strong, .footer-credit a span { color: var(--cyan); }
  .copyright { grid-column: 1 / -1; padding-top: 2rem; border-top: 1px solid var(--line); color: #667176; font-size: .68rem; }

  .reveal { opacity: 1; transform: none; }
  .js .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity 650ms var(--ease) var(--delay, 0ms), transform 650ms var(--ease) var(--delay, 0ms); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .delay-1 { --delay: 80ms; }
  .delay-2 { --delay: 140ms; }
}

@layer responsive {
  @media (max-width: 72rem) {
    .site-nav { position: fixed; inset: 5rem 0 auto; display: grid; visibility: hidden; background: var(--black); border-bottom: 1px solid var(--line); transform: translateY(-110%); opacity: 0; pointer-events: none; transition: transform 240ms var(--ease), opacity 160ms ease, visibility 0s linear 240ms; }
    .site-nav.is-open { visibility: visible; transform: none; opacity: 1; pointer-events: auto; transition-delay: 0s; }
    .site-nav a { min-height: 3.5rem; padding-inline: 1.5rem; border-top: 1px solid var(--line); }
    .site-nav .nav-account { width: auto; justify-content: flex-start; border: 0; border-top: 1px solid var(--line); background: var(--cyan); color: var(--black); }
    .nav-toggle { display: block; }
    .hero { grid-template-columns: 1fr; }
    .hero-copy { max-width: 46rem; }
    .product-window { width: 100%; }
    .privacy-section { gap: 3rem; }
    .routing-diagram { grid-template-columns: .65fr 1fr 1fr; }
    .route-source { grid-column: 1; }
    .route-provider { grid-column: 2; }
    .provider-list { grid-column: 3; }
    .route-local { grid-column: 2; }
    .local-list { grid-column: 3; }
    .connector-rail { grid-template-columns: 1.5fr repeat(2, 1fr); }
    .connector-rail > *:nth-child(4) { border-left: 0; }
    .licensing-section { grid-template-columns: 1.35fr .85fr; }
    .account-section { grid-template-columns: .8fr 1.2fr; }
  }

  @media (max-width: 52rem) {
    .section-heading, .privacy-section, .licensing-section, .account-section { grid-template-columns: 1fr; }
    .section-heading .eyebrow { grid-column: 1; }
    .product-pillars { grid-template-columns: 1fr; }
    .product-pillars article { min-height: 15rem; }
    .product-pillars article + article { border-left: 0; border-top: 1px solid var(--line); }
    .routing-diagram { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
    .route-source, .route-provider, .provider-list, .route-local, .local-list { grid-column: 1; grid-row: auto; }
    .route-source { min-height: 13rem; border-right: 0; border-bottom: 1px solid var(--line); }
    .route-line { height: 4rem; width: 1px; margin: 0 auto; }
    .route-line::after { right: auto; left: 50%; bottom: -.5rem; top: auto; transform: translateX(-50%) rotate(90deg); }
    .route-line span { left: .8rem; bottom: 50%; white-space: nowrap; transform: translateY(50%); }
    .provider-list, .local-list { margin-inline: auto; width: min(25rem, 100%); }
    .workflow-steps span { font-size: clamp(2.5rem, 10vw, 4rem); }
    .workflow-panels { grid-template-columns: 1fr; }
    .workflow-panels article { min-height: 23rem; }
    .workflow-panels article + article { border-left: 0; border-top: 1px solid var(--line); }
    .connector-rail { grid-template-columns: 1fr 1fr; }
    .connector-rail > p { grid-column: 1 / -1; }
    .connector-rail > * + * { border-left: 0; }
    .connector-rail > div:nth-of-type(even) { border-left: 1px solid var(--line); }
    .plan-column { padding: 4rem 0 0; border-left: 0; border-top: 1px solid var(--line-strong); }
    .licensing-assurance { grid-template-columns: 1fr; }
    .licensing-assurance li + li { border-left: 0; border-top: 1px solid var(--line); }
    .account-panel { border-left: 0; border-top: 1px solid var(--line-strong); }
    .account-context { min-height: auto; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .footer-centre { align-items: flex-start; justify-content: flex-end; }
    .footer-credit { grid-column: 1 / -1; text-align: left; }
  }

  @media (max-width: 38rem) {
    body { background-size: 5rem 100%; }
    .page-grid, .section-shell { width: calc(100% - 2rem); }
    .site-header { min-height: 5rem; padding-inline: 1rem; }
    .hero { min-height: 0; padding-top: 8rem; gap: 3.5rem; }
    .hero-lockup { width: 100%; margin-bottom: 1.5rem; }
    .hero h1 { font-size: clamp(3rem, 14vw, 4.3rem); }
    .hero-actions { flex-direction: column; }
    .hero-actions .button { width: 100%; }
    .cad-workspace { min-height: 31rem; }
    .cad-frame { inset: 30% -14% 0 6%; width: 112%; height: 70%; }
    .action-plan { inset: 1rem 1rem auto; width: auto; border: 1px solid var(--line); }
    .action-plan li:nth-child(n+3) { display: none; }
    .madevia-statement { align-items: flex-start; flex-direction: column; }
    .section-heading h2, .privacy-copy h2, .workflow-heading h2, .licensing-visual h2, .account-context h2 { font-size: clamp(2.8rem, 13vw, 4.2rem); }
    .privacy-facts li { grid-template-columns: 2rem 1fr; }
    .privacy-facts em { grid-column: 2; }
    .workflow-steps { grid-template-columns: 1fr 1fr; gap: 2rem 0; }
    .workflow-steps li:nth-child(3) { border-left: 0; }
    .seat-mapping { grid-template-columns: 1fr; }
    .seat-mapping > div { min-height: 15rem; }
    .seat-mapping > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .signup-fields, .team-seat-form { grid-template-columns: 1fr; }
    .team-seat-form .dashboard-secondary { grid-column: 1; }
    .seat-picker { align-items: stretch; flex-direction: column; }
    .stepper { grid-template-columns: 3rem 1fr 3rem; }
    .account-context, .account-panel { padding: 4rem 1rem; }
    .account-assurance { grid-template-columns: 1fr; }
    .account-assurance li { text-align: left; }
    .dashboard-summary { grid-template-columns: 1fr; }
    .dashboard-summary > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
    .seat-row { grid-template-columns: 1fr auto; }
    .seat-license { grid-column: 1; }
    .site-footer { grid-template-columns: 1fr; }
    .footer-centre { justify-content: flex-start; flex-wrap: wrap; }
  }

  @media (hover: hover) and (pointer: fine) {
    .product-pillars article { transition: background-color 180ms ease; }
    .product-pillars article:hover { background: rgba(0, 209, 246, .025); }
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  }
}

@layer utilities {
  [hidden] { display: none !important; }
  @keyframes attention { 0%, 100% { box-shadow: none; } 42% { box-shadow: 0 0 0 1px var(--cyan); } }
}
