@layer reset, tokens, base, components, pages, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: 104px; }
  body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
  img, svg, video { display: block; max-width: 100%; height: auto; }
  button, input, textarea, select { font: inherit; }
  button { cursor: pointer; }
  a { text-decoration: none; color: inherit; }
  ul, ol { padding: 0; margin: 0; }
  li { list-style: none; }
  summary { cursor: pointer; }
}

@layer tokens {
  :root {
    /* Fallback Hex Tokens for older rendering engines */
    --ink: #0c2230;
    --ink-soft: #243e4f;
    --muted: #526a78;
    --weak: #7c93a0;
    --line: #d5e3e9;
    --line-strong: #b9cfd9;
    --paper: #f3f8fa;
    --white: #ffffff;
    --deep: #04131d;
    --deep2: #0a2231;
    --deep3: #103246;
    --cyan: #3ee4f0;
    --cyan-glow: rgba(62, 228, 240, 0.28);
    --blue: #087fa8;
    --accent: #0077a3;
    --mint: #c4f5ee;
    --shadow-sm: 0 4px 14px -2px rgba(8, 32, 46, 0.06), 0 1px 3px rgba(8, 32, 46, 0.05);
    --shadow: 0 24px 60px -15px rgba(7, 29, 43, 0.12), 0 4px 16px -4px rgba(7, 29, 43, 0.06);
    --shadow-lg: 0 36px 90px -20px rgba(4, 19, 29, 0.28), 0 10px 30px -10px rgba(4, 19, 29, 0.18);
    --radius: 22px;
    --page: max(24px, calc((100vw - 1240px) / 2));
    --font: 'Inter', 'Plus Jakarta Sans', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }

  @supports (color: oklch(0% 0 0)) {
    :root {
      /* Perceptually uniform OKLCH design tokens */
      --paper: oklch(0.97 0.01 220);          /* #f3f8fa */
      --deep: oklch(0.14 0.035 230);          /* #04131d */
      --deep2: oklch(0.18 0.04 230);         /* #0a2231 */
      --deep3: oklch(0.22 0.045 230);        /* #103246 */

      /* Accents & Brand */
      --cyan: oklch(0.85 0.16 200);           /* #3ee4f0 */
      --cyan-glow: oklch(0.85 0.16 200 / 0.28);
      --blue: oklch(0.52 0.12 225);           /* #087fa8 */
      --accent: oklch(0.48 0.11 225);         /* #0077a3 */
      --mint: oklch(0.94 0.06 180);           /* #c4f5ee */

      /* Typography & Lines */
      --ink: oklch(0.22 0.04 230);            /* #0c2230 */
      --ink-soft: oklch(0.32 0.04 230);       /* #243e4f */
      --muted: oklch(0.50 0.03 225);          /* #526a78 */
      --weak: oklch(0.62 0.03 225);           /* #7c93a0 */
      --line: oklch(0.90 0.015 220);          /* #d5e3e9 */
      --line-strong: oklch(0.83 0.02 220);   /* #b9cfd9 */
    }
  }
}

@layer base {
  body {
    font-family: var(--font);
    background-color: var(--paper);
    background-image:
      linear-gradient(to right, rgba(14, 54, 74, 0.028) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(14, 54, 74, 0.028) 1px, transparent 1px);
    background-size: 48px 48px;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.64;
    font-size: 16px;
    overflow-x: hidden;
  }
  /* High-contrast dual-ring keyboard focus indicators */
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--white);
    border-radius: inherit;
  }
  .on-dark :focus-visible,
  .hero :focus-visible,
  .cta-panel :focus-visible,
  .site-footer :focus-visible {
    box-shadow: 0 0 0 4px var(--deep);
  }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, .table-wrapper:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  a { transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease; }
  a:hover { color: var(--accent); }
  ::selection { background: #9ef0f6; color: #041d29; }
  .container { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
  .narrow { max-width: 760px; }
  .mini { max-width: 600px; }
  .eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(8, 127, 168, 0.08);
    border: 1px solid rgba(8, 127, 168, 0.18);
  }
  .eyebrow::before {
    content: '';
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(8, 127, 168, 0.2);
  }
  h1, h2, h3, h4 {
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 800;
    text-wrap: balance;
  }
  h1 { font-size: clamp(3.3rem, 7.2vw, 6.4rem); }
  h2 { font-size: clamp(2.25rem, 4.6vw, 4.1rem); }
  h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); letter-spacing: -.032em; }
  h4 { font-size: 1.1rem; letter-spacing: -.02em; }
  p { line-height: 1.72; }
  .lead { font-size: clamp(1.06rem, 1.45vw, 1.25rem); line-height: 1.68; color: var(--muted); }
  .muted { color: var(--muted); }
  .on-dark { color: #eef9fd; }
  .on-dark .muted { color: #abc3cc; }
  .accent { color: var(--cyan); }
  .gradient-text {
    background: linear-gradient(115deg, #ffffff 0%, #b5f6fb 42%, #35d6e8 78%, #0ca6c9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .section { padding: 58px 0; position: relative; }
  .section.compact { padding: 44px 0; }
  .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(15, 55, 76, 0.1);
  }
  .section-head h2 { max-width: 820px; }
  .section-head p { max-width: 430px; color: var(--muted); font-size: 15.5px; }
  .section-head.stack { display: block; }
  .section-head.stack p { margin-top: 18px; max-width: 680px; }
  .section-head .eyebrow { margin-bottom: 18px; }
  .icon {
    height: 20px;
    width: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .icon.small { width: 16px; height: 16px; }
  .icon.big { height: 30px; width: 30px; }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }
  .skip-link {
    position: fixed;
    top: -120px;
    left: 16px;
    background: var(--deep);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: top .18s ease, opacity .18s ease;
  }
  .skip-link:focus-visible {
    top: 14px;
    opacity: 1;
    pointer-events: auto;
  }
}

@layer components {
  /* Floating Glass Studio Header */
  .site-header {
    position: sticky;
    top: 12px;
    z-index: 90;
    height: 68px;
    margin: 12px auto 0;
    width: min(1240px, calc(100% - 32px));
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
      0 18px 42px -12px rgba(5, 25, 38, 0.16),
      0 2px 6px rgba(5, 25, 38, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  .site-header .container {
    width: 100%;
    padding-inline: 20px;
  }
  .header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 4px 6px;
    border-radius: 10px;
  }
  .brand:hover { transform: translateY(-1px); }
  .brand .brand-icon {
    height: 38px !important;
    width: 38px !important;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(8, 60, 84, 0.12));
  }
  .brand .brand-banner {
    height: 26px !important;
    width: auto !important;
    max-width: none;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
  }
  .foot-brand .brand, .brand-pill {
    background: #f7fafb;
    padding: 9px 15px;
    border-radius: 12px;
    border: 1px solid #284654;
  }
  .main-nav {
    display: flex;
    gap: 4px;
    align-items: center;
    background: rgba(12, 34, 48, 0.045);
    padding: 4px;
    border-radius: 13px;
    border: 1px solid rgba(12, 34, 48, 0.06);
  }
  .main-nav > a {
    padding: 8px 15px;
    font-size: 13.5px;
    color: #36505e;
    font-weight: 650;
    border-radius: 9px;
    transition: all .18s ease;
  }
  .main-nav > a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
  }
  .main-nav > a.active {
    color: #06445c;
    background: #ffffff;
    font-weight: 740;
    box-shadow: 0 2px 8px rgba(8, 45, 64, 0.08), 0 1px 2px rgba(8, 45, 64, 0.05);
  }
  .nav-actions { display: flex; gap: 10px; align-items: center; }
  .nav-toggle {
    display: none;
    border: 1px solid #c5d6de;
    color: var(--ink);
    background: #fff;
    border-radius: 10px;
    padding: 9px;
  }

  /* Tactile Studio Buttons */
  .btn {
    border: 1px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    font-weight: 740;
    font-size: 13.5px;
    letter-spacing: -.01em;
    line-height: 1.25;
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), background .2s ease, border-color .2s ease, box-shadow .2s ease;
    white-space: nowrap;
  }
  .btn:hover { transform: translateY(-2px); color: inherit; }
  .btn:active { transform: translateY(0); }
  .btn-primary {
    background: linear-gradient(180deg, #5ef0fa 0%, #2ed3e3 100%);
    color: #052533;
    border-color: #7bf5fc;
    box-shadow:
      0 10px 28px -6px rgba(46, 211, 227, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
  .btn-primary:hover {
    background: linear-gradient(180deg, #7df5fc 0%, #3ee0ef 100%);
    box-shadow:
      0 14px 34px -6px rgba(46, 211, 227, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  .btn-dark {
    background: linear-gradient(180deg, #113a50 0%, #082433 100%);
    color: #fff;
    border-color: #1e4d66;
    box-shadow: 0 10px 24px -6px rgba(8, 36, 51, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  .btn-dark:hover { background: linear-gradient(180deg, #164963 0%, #0b2f42 100%); color: #fff; }
  .btn-outline {
    background: rgba(255, 255, 255, 0.85);
    border-color: #bfd2dc;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
  }
  .btn-outline:hover { border-color: var(--blue); background: #fff; }
  .btn-outline-light {
    border: 1px solid rgba(154, 219, 232, 0.32);
    color: #f3fbfc;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .btn-outline-light:hover {
    border-color: #7cebf5;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }
  .btn-quiet { background: #e5f3f7; color: #075275; border-color: #cae4ec; }
  .btn[disabled], .btn.is-disabled {
    pointer-events: none;
    cursor: not-allowed;
    filter: saturate(.4);
    opacity: .58;
  }
  .link-arrow {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    font-size: 13.5px;
    font-weight: 750;
    color: var(--accent);
  }
  .link-arrow:hover { gap: 13px; }
  .pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 730;
    letter-spacing: .02em;
    border-radius: 999px;
    padding: 7px 14px;
    background: #e4f4f8;
    color: #0d5d75;
    border: 1px solid rgba(13, 93, 117, 0.14);
  }
  .pill .dot {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }
  .pill.dark {
    border: 1px solid rgba(94, 230, 244, 0.28);
    background: rgba(15, 62, 82, 0.55);
    color: #c8f5f9;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .pill.soon { background: #edf1f5; color: #4e5e6c; border-color: #d8e1e8; }
  .pill.verified { color: #0f6e58; background: #dff7ee; border-color: #b5ebd6; }

  /* Studio Cards */
  .card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #ffffff;
    transition: transform .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s ease, border-color .24s ease;
  }
  .card:hover {
    border-color: #a9cad6;
    box-shadow: var(--shadow);
  }
  .card.shadow { box-shadow: var(--shadow); }
  .kicker {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .kicker::before {
    content: '';
    width: 14px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }
  .section-divider { border: 0; border-top: 1px solid var(--line); }
  .crumbs {
    font-family: var(--mono);
    font-size: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    align-items: center;
  }
  .crumbs a:hover { text-decoration: underline; }

  /* Interior Page Hero Header — Seamless Horizon Fade matching Homepage Hero */
  .page-intro {
    background:
      radial-gradient(ellipse 90% 65% at 50% -15%, rgba(62, 228, 240, 0.16), transparent 70%),
      linear-gradient(180deg, #071b27 0%, #071d2c 90%, #6892a4 95%, #c8dde5 98%, #f3f8fa 100%);
    color: #fff;
    padding: 132px 0 100px;
    margin-top: -80px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .page-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(130, 218, 235, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(130, 218, 235, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 25%, transparent 75%);
    z-index: -1;
    pointer-events: none;
  }
  .page-intro h1 {
    font-size: clamp(2.75rem, 5.8vw, 5rem);
    margin: 18px 0 18px;
    max-width: 920px;
    text-shadow: 0 10px 32px rgba(0, 0, 0, 0.3);
  }
  .page-intro .lead { max-width: 700px; color: #d2e7ef; }
  .page-intro .eyebrow { color: #7ef0f8; background: rgba(62, 228, 240, 0.12); border-color: rgba(62, 228, 240, 0.28); margin-top: 14px; }
  .page-intro .eyebrow::before { background: var(--cyan); }
  .page-intro .crumbs { color: #8cb2c0; margin-bottom: 4px; }
  .page-intro .crumbs a { color: #d8eff5; }
  .page-intro.small { padding: 122px 0 92px; }
  .page-intro.small h1 { font-size: clamp(2.5rem, 5vw, 4.3rem); }
  .eyelabel { font-family: var(--mono); font-size: 11.5px; color: #688290; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

  /* Footer */
  .site-footer {
    background: linear-gradient(180deg, #061824 0%, #030e16 100%);
    color: #e6f0f3;
    border-top: 1px solid #1c3947;
    padding: 80px 0 32px;
  }
  .foot-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 50px;
    padding-bottom: 64px;
  }
  .foot-brand p { color: #8daebc; max-width: 300px; font-size: 14px; margin-top: 18px; }
  .foot-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #6fc9d7;
    margin-bottom: 18px;
  }
  .foot-col a { display: block; color: #a4c1cb; margin-bottom: 12px; font-size: 13.5px; }
  .foot-col a:hover { color: #fff; transform: translateX(2px); }
  .foot-bottom {
    border-top: 1px solid #1c3542;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    color: #7d9ca8;
    font-size: 12px;
  }
  .foot-bottom .footer-mini { display: flex; gap: 20px; flex-wrap: wrap; }
  .foot-bottom a:hover { color: #fff; }

  .float-up { opacity: 1; transform: none; }
  .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .detail-card { padding: 34px; }
  .detail-card .icon-box { margin-bottom: 26px; }
  .detail-card h3 { font-size: 21px; margin-bottom: 10px; }
  .detail-card p { font-size: 14.5px; color: var(--muted); }
  .icon-box {
    height: 52px;
    width: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e0f7fa 0%, #c7eef5 100%);
    border: 1px solid #ace3ee;
    color: #0b6e8c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 #fff;
  }

  /* Tactile Inline Code & Keycaps — Never break mid-word! */
  .inline-code, code {
    font-family: var(--mono);
    background: #e6f1f5;
    color: #0c4359;
    border: 1px solid #c8dde6;
    font-size: .84em;
    font-weight: 650;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    display: inline-block;
    line-height: 1.4;
    vertical-align: baseline;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
  .label-bar { display: flex; align-items: center; gap: 10px; }
  .label-bar .bar { flex: 1; height: 1px; background: var(--line); }
  .notice {
    padding: 20px 24px;
    border-left: 4px solid #129ab5;
    background: linear-gradient(90deg, #e6f5f8 0%, #f2f9fb 100%);
    border-radius: 0 14px 14px 0;
    color: #2c4a58;
    font-size: 14.5px;
    box-shadow: var(--shadow-sm);
  }
  .notice strong { color: #09475e; }

  /* FAQ Accordion */
  .faq-list {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    border: 1px solid var(--line);
    padding: 8px 28px;
    box-shadow: var(--shadow-sm);
  }
  .faq-list details { border-bottom: 1px solid var(--line); }
  .faq-list details:last-child { border-bottom: 0; }
  .faq-list summary {
    list-style: none;
    padding: 22px 34px 22px 0;
    font-weight: 740;
    font-size: 17px;
    position: relative;
    transition: color .18s ease;
  }
  .faq-list summary:hover { color: var(--accent); }
  .faq-list summary::-webkit-details-marker { display: none; }
  .faq-list summary::after {
    content: '+';
    position: absolute;
    right: 2px;
    font-size: 24px;
    top: 17px;
    color: var(--blue);
    font-weight: 400;
  }
  .faq-list details[open] summary::after { content: '−'; }
  .faq-list details p { padding: 0 0 24px; color: var(--muted); max-width: 800px; }

  /* Call-to-action Studio Panel */
  .cta-panel {
    border-radius: 30px;
    background:
      radial-gradient(circle at 88% 22%, rgba(62, 228, 240, 0.22), transparent 48%),
      linear-gradient(135deg, #071e2c 0%, #0d3145 100%);
    color: #fff;
    padding: 68px 72px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid #234c60;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  .cta-panel::after {
    content: "";
    position: absolute;
    inset: -200px -150px auto auto;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    border: 90px solid rgba(62, 228, 240, 0.07);
    box-shadow: 0 0 0 90px rgba(40, 193, 209, 0.035);
    z-index: -1;
    pointer-events: none;
  }
  .cta-panel h2 { max-width: 780px; font-size: clamp(2.4rem, 4.8vw, 4.3rem); }
  .cta-panel p { max-width: 610px; margin: 18px 0 32px; color: #b5d0da; font-size: 17px; }

  /* Semantic UI Token Badges ([Button], {Drop}, <Key>, ▸ Path, `Field`) */
  .ui-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 6px;
    line-height: 1.45;
    vertical-align: baseline;
    white-space: nowrap;
  }
  .ui-badge.btn-tok {
    background: linear-gradient(180deg, #243b4d 0%, #142430 100%);
    color: #fff;
    border: 1px solid #0d1922;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }
  .ui-badge.drop-tok {
    background: linear-gradient(180deg, #f0f9fc 0%, #dff0f6 100%);
    color: #08506e;
    border: 1px solid #a8d4e3;
    box-shadow: 0 1px 2px rgba(8, 80, 110, 0.08), inset 0 1px 0 #fff;
  }
  .ui-badge.key-tok {
    background: linear-gradient(180deg, #ffffff 0%, #edf2f5 100%);
    color: #1e3545;
    border: 1px solid #bcccd6;
    box-shadow: 0 2px 0 #b0c2cd, inset 0 1px 0 #fff;
  }
  .ui-badge.path-tok {
    background: linear-gradient(180deg, #effaf6 0%, #dcf3ec 100%);
    color: #0d6352;
    border: 1px solid #a8dfd0;
  }
  .ui-badge.field-tok {
    background: linear-gradient(180deg, #fdfaf3 0%, #f6eedb 100%);
    color: #6b4710;
    border: 1px solid #e2cfa8;
  }

  /* Interactive Token Workbench in Bento Grid */
  .token-workbench {
    margin-top: auto;
    padding-top: 20px;
    display: grid;
    gap: 10px;
  }
  .token-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    background: #eef6f9;
    border: 1px solid #cfe1e8;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(9, 44, 59, 0.04);
  }
  .token-bar-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #48606c;
    margin-right: 4px;
  }
  .token-chip {
    font: 700 11.5px/1.2 var(--mono);
    padding: 6px 10px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid #bfd3dc;
    color: #1c3947;
    box-shadow: 0 1px 2px rgba(9, 44, 59, 0.06), 0 2px 0 #cddce3;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
  }
  button.token-chip:hover {
    border-color: var(--blue);
    background: #f2fbfd;
    transform: translateY(-1px);
  }
  button.token-chip:active {
    transform: translateY(1px);
    box-shadow: none;
  }
  .token-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    background: #eef6f9;
    border: 1px solid #cfe1e8;
    border-radius: 13px;
    padding: 12px;
    font-size: 13px;
  }
  .token-raw {
    font-family: var(--mono);
    font-size: 12px;
    color: #365260;
    background: #fff;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px dashed #b4cad4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .token-raw::before {
    content: "YOU TYPE";
    font: 800 9.5px/1 var(--mono);
    letter-spacing: .1em;
    color: #6c8794;
    flex-shrink: 0;
  }
  .token-input {
    border: 0;
    background: transparent;
    width: 100%;
    font: 600 12px/1.3 var(--mono);
    color: #163240;
    outline: none;
    text-align: right;
  }
  .token-rendered {
    background: #fff;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid #bed6e0;
    color: var(--ink);
    font-weight: 650;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    box-shadow: 0 2px 6px rgba(9, 44, 59, 0.04);
  }
  .token-rendered::before {
    content: "LIVE PREVIEW";
    font: 800 9.5px/1 var(--mono);
    letter-spacing: .1em;
    color: var(--accent);
    flex-shrink: 0;
  }

  /* Responsive Comparison Table (modern-web-guidance: responsive-table) */
  .table-wrapper {
    overflow: auto;
    max-inline-size: 100%;
    max-block-size: min(680px, 84vh);
    container-type: inline-size;
    border-radius: 24px;
    border: 1px solid #c5d9e2;
    background: var(--white);
    box-shadow: var(--shadow);
  }
  .compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 14.5px;
    --label-2: "Gradatimo";
    --label-3: "Cloud capture SaaS";
    --label-4: "Manual screenshots + docs";
    --label-5: "TechSmith Snagit";
    --label-6: "ScreenSteps";
  }
  .compare-table caption {
    padding: 18px 26px;
    font-family: var(--mono);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    text-align: left;
    border-bottom: 1px solid var(--line);
    background: #f6fafc;
  }
  .compare-table thead { position: sticky; inset-block-start: 0; z-index: 2; }
  .compare-table th, .compare-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.55;
  }
  .compare-table thead th {
    background: #08202e;
    color: #fff;
    font-size: 13.5px;
    font-weight: 750;
    letter-spacing: -.01em;
  }
  .compare-table thead th:nth-child(2) {
    background: linear-gradient(180deg, #0d425c 0%, #093247 100%);
    color: var(--cyan);
    border-inline: 1px solid rgba(62, 228, 240, 0.25);
  }
  .compare-table tbody th {
    position: sticky;
    inset-inline-start: 0;
    z-index: 1;
    background: var(--white);
    font-weight: 750;
    color: var(--ink);
    min-width: 210px;
    border-right: 1px solid var(--line);
  }
  .compare-table tbody td:nth-child(2) {
    background: linear-gradient(90deg, rgba(226, 248, 252, 0.65) 0%, rgba(240, 252, 254, 0.85) 100%);
    font-weight: 650;
    color: #063d54;
    border-right: 1px solid #cde4ec;
  }
  .compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
  @container (width < 600px) {
    .compare-table, .compare-table thead, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td { display: block; }
    .compare-table thead { display: none; }
    .compare-table tr { margin-block-end: 1rem; border-bottom: 2px solid var(--line); }
    .compare-table tbody th { position: sticky; inset-block-start: 0; z-index: 2; background: #0b2635; color: #fff; border-right: 0; }
    .compare-table td::before { font-weight: 750; color: var(--ink); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
    .compare-table td:nth-child(2)::before { content: var(--label-2) ": "; color: var(--accent); }
    .compare-table td:nth-child(3)::before { content: var(--label-3) ": "; }
    .compare-table td:nth-child(4)::before { content: var(--label-4) ": "; }
    .compare-table td:nth-child(5)::before { content: var(--label-5, "Snagit") ": "; }
    .compare-table td:nth-child(6)::before { content: var(--label-6, "ScreenSteps") ": "; }
  }
  .table-footnote {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
  }
  .text-muted { color: var(--muted); }
  .text-sm { font-size: 13px; }
  .mt-3 { margin-top: 14px; }

  /* Interactive Seat Calculator & Range Slider Component */
  .seat-calculator-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 252, 0.95) 100%);
    border: 1px solid #c5d9e2;
    border-radius: var(--radius, 22px);
    padding: 32px 36px;
    box-shadow: var(--shadow-sm, 0 4px 14px -2px rgba(8, 32, 46, 0.06));
    margin-bottom: 32px;
  }

  .calculator-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
  }

  .calculator-header h3 {
    margin: 10px 0 5px;
    font-size: 1.45rem;
    color: var(--ink, #0c2230);
  }

  .seat-badge-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #092c3e 0%, #061e2b 100%);
    border: 1px solid rgba(62, 228, 240, 0.3);
    padding: 8px 18px;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(6, 30, 43, 0.2);
  }

  .seat-badge-label {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #93b9c7;
  }

  .seat-badge {
    font-family: var(--mono);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--cyan, #3ee4f0);
  }

  .slider-control-group {
    margin-top: 24px;
  }

  .slider-track-wrap {
    position: relative;
    width: 100%;
  }

  .seat-range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 44px; /* Accessible 44px touch target */
    background: transparent;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
  }

  .seat-range-slider:focus-visible {
    outline: 2px solid var(--blue, #087fa8);
    outline-offset: 4px;
    border-radius: 8px;
  }

  .seat-range-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #d0e2e9;
    border-radius: 4px;
    border: 1px solid #b7ced7;
  }

  .seat-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #0d8cb8 0%, #076d91 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(8, 127, 168, 0.5), 0 0 0 1px rgba(8, 127, 168, 0.2);
    cursor: grab;
    margin-top: -11px;
    transition: transform 0.12s ease, background-color 0.12s ease;
  }

  .seat-range-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
    background: var(--cyan, #3ee4f0);
  }

  .seat-range-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    background: #d0e2e9;
    border-radius: 4px;
    border: 1px solid #b7ced7;
  }

  .seat-range-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #0d8cb8 0%, #076d91 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(8, 127, 168, 0.5), 0 0 0 1px rgba(8, 127, 168, 0.2);
    cursor: grab;
    border: 0;
  }

  .seat-range-slider::-moz-range-thumb:active {
    cursor: grabbing;
    transform: scale(1.15);
  }

  .slider-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 8px;
  }

  .slider-ticks span {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--muted, #526a78);
    font-weight: 600;
    transition: color 0.15s ease, font-weight 0.15s ease;
  }

  .slider-ticks span.active-tick {
    color: var(--blue, #087fa8);
    font-weight: 800;
  }

  .calculator-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e1ecf0;
  }

  .pricing-as-of {
    font-size: 0.82rem;
    color: var(--muted, #526a78);
    font-style: italic;
  }

  @media (max-width: 640px) {
    .seat-calculator-card {
      padding: 22px 18px;
    }
    .calculator-header {
      flex-direction: column;
      gap: 12px;
    }
    .calculator-meta {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .calculator-savings-banner {
      width: 100%;
      font-size: 0.86rem;
    }
  }
}

@layer pages {
  /* HOMEPAGE HERO — Atmospheric Studio Stage */
  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
      radial-gradient(ellipse 50% 35% at 50% 16%, rgba(28, 175, 201, 0.26), transparent 65%),
      radial-gradient(ellipse 35% 28% at 75% 24%, rgba(62, 228, 240, 0.14), transparent 60%),
      radial-gradient(ellipse 35% 28% at 25% 24%, rgba(8, 95, 138, 0.22), transparent 60%),
      linear-gradient(180deg, #031019 0%, #071d2c 72%, #071d2c 100%);
    color: #fff;
    padding: 144px 0 0;
    margin-top: -80px;
  }
  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
      linear-gradient(rgba(130, 218, 235, 0.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(130, 218, 235, 0.06) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1020px;
    margin: auto;
  }
  .hero-copy .pill { margin-bottom: 26px; }
  .hero h1 {
    font-size: clamp(3.4rem, 7vw, 6.35rem);
    letter-spacing: -.065em;
    line-height: 1.02;
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
  .hero h1 span { white-space: nowrap; }
  .hero .lead {
    margin: 28px auto 0;
    max-width: 720px;
    color: #bfd7e0;
    font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  }
  .hero-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
  }
  .hero-note {
    color: #88aab8;
    font-family: var(--mono);
    font-size: 12px;
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero-stage {
    position: relative;
    z-index: 2;
    margin: 56px auto 0;
    max-width: 1200px;
    padding: 0 28px;
    perspective: 1600px;
  }
  .hero-glow {
    position: absolute;
    top: -60px;
    left: 12%;
    width: 76%;
    height: 360px;
    background: radial-gradient(circle, rgba(62, 228, 240, 0.38) 0%, rgba(8, 127, 168, 0.12) 60%, transparent 80%);
    filter: blur(80px);
    pointer-events: none;
  }
  .app-frame {
    position: relative;
    background: #122430;
    border: 1px solid rgba(154, 226, 238, 0.38);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08) inset,
      0 28px 64px -16px rgba(4, 18, 28, 0.55),
      0 0 90px -10px rgba(45, 206, 224, 0.2);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .18s ease-out;
    will-change: transform;
  }
  .window-top {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: linear-gradient(180deg, #162e3d 0%, #0d202c 100%);
    border-bottom: 1px solid #254556;
    color: #a8c5d1;
  }
  .window-top .dots { display: flex; gap: 7px; }
  .window-top .dots i { height: 10px; width: 10px; background: #ff5f56; border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); }
  .window-top .dots i:nth-child(2) { background: #ffbd2e; }
  .window-top .dots i:nth-child(3) { background: #27c93f; }
  .window-title { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: .01em; color: #c7e0ea; }
  .app-frame img { width: 100%; height: auto; }

  /* Spatial HUD Floating Callout Badges */
  .float-label {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 16px;
    background: rgba(8, 28, 40, 0.9);
    box-shadow:
      0 20px 40px -10px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(120, 228, 240, 0.38),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #f0fbfd;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 740;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: hud-float 5s ease-in-out infinite;
  }
  .float-label .small-icon {
    height: 30px;
    width: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(62, 228, 240, 0.25) 0%, rgba(8, 127, 168, 0.35) 100%);
    border: 1px solid rgba(94, 234, 245, 0.4);
    color: var(--cyan);
    display: grid;
    place-items: center;
    flex-shrink: 0;
  }
  .float-label.one { top: 55%; left: 0%; animation-delay: 0s; }
  .float-label.two { top: -18px; right: 15%; animation-delay: -1.7s; }
  .float-label.three { top: 47%; right: 0%; animation-delay: -3.2s; }
  @keyframes hud-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  .hero-bottom {
    position: relative;
    z-index: 1;
    margin-top: -120px;
    height: 180px;
    background: linear-gradient(
      180deg,
      rgba(7, 29, 44, 0) 0%,
      rgba(7, 29, 44, 0.35) 30%,
      rgba(125, 156, 170, 0.65) 65%,
      rgba(232, 241, 245, 0.94) 88%,
      var(--paper) 100%
    );
    pointer-events: none;
  }

  /* Trust Strip */
  .trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 6px 0 24px;
  }
  .trust-strip span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #d2e2e9;
    border-radius: 14px;
    color: #264454;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  }
  .trust-strip .icon { color: var(--accent); }

  /* 4-Stage Workflow Explorer */
  .story { position: relative; }
  .story-grid {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 56px;
    align-items: start;
  }
  .story-left { position: sticky; top: 108px; padding-bottom: 0; }
  .story-left h2 { margin: 18px 0 20px; }
  .story-left > p { color: var(--muted); }
  .story-tabs { display: grid; gap: 10px; margin-top: 34px; }
  .story-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    width: 100%;
    border: 1px solid rgba(15, 58, 79, 0.1);
    background: rgba(255, 255, 255, 0.65);
    padding: 16px 18px;
    border-radius: 16px;
    color: #536c79;
    transition: all .2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  .story-tab:hover {
    background: #ffffff;
    border-color: #b7d3de;
    transform: translateX(3px);
  }
  .story-tab.active {
    background: linear-gradient(135deg, #092738 0%, #0f3a50 100%);
    color: #ffffff;
    border-color: #1f5975;
    box-shadow: 0 14px 32px -10px rgba(7, 34, 49, 0.35);
    transform: translateX(4px);
  }
  .story-tab .num {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    color: #7c97a4;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(15, 58, 79, 0.06);
  }
  .story-tab.active .num {
    color: var(--cyan);
    background: rgba(62, 228, 240, 0.14);
    border: 1px solid rgba(62, 228, 240, 0.28);
  }
  .story-tab strong { font-size: 15.5px; display: block; line-height: 1.25; }
  .story-tab small { font-size: 12px; display: block; margin-top: 4px; font-weight: 500; opacity: 0.82; }
  .story-preview { position: sticky; top: 108px; }
  .story-screen {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #102a3a 0%, #091c28 100%);
    padding: 16px;
    border: 1px solid #264b5e;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }
  .story-screen img {
    width: 100%;
    height: auto;
    border-radius: 13px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
  }
  .story-screen figcaption {
    background: rgba(255, 255, 255, 0.96);
    margin-top: 14px;
    padding: 15px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 680;
  }
  .story-screen figcaption .icon { color: var(--blue); }
  .story-extra { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
  .story-extra .pill { border: 1px solid #cbe0e8; background: #fff; }
  .story-small { margin-top: 16px; color: var(--muted); font-size: 14px; }

  /* Bento Grid — Studio Instrumentation Cards */
  .bento-grid {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    grid-auto-rows: minmax(305px, auto);
    gap: 22px;
  }
  .feature-tile {
    position: relative;
    border: 1px solid #cde0e8;
    background:
      radial-gradient(circle at 100% 0%, rgba(62, 228, 240, 0.08), transparent 50%),
      rgba(255, 255, 255, 0.94);
    border-radius: 26px;
    overflow: hidden;
    padding: 36px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
    transition: transform .24s cubic-bezier(.2, .8, .2, 1), box-shadow .24s ease, border-color .24s ease;
  }
  .feature-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #9ec5d4;
  }
  .feature-tile.tall { grid-row: span 2; }
  .feature-tile.wide { grid-column: span 2; }
  .feature-tile h3 { font-size: 26px; margin: 12px 0; line-height: 1.14; }
  .feature-tile p { font-size: 14.5px; color: var(--muted); max-width: 470px; }
  .feature-art {
    margin-top: 24px;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #cadde6;
    position: relative;
    background: #0e2431;
    box-shadow: 0 14px 34px -8px rgba(8, 35, 50, 0.16);
  }
  .feature-art img { width: 100%; height: auto; display: block; }
  .feature-tile.tall .feature-art { margin-top: 28px; flex: 1; display: flex; align-items: stretch; }
  .feature-tile.tall .feature-art img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
  .feature-tile.wide .wide-split {
    display: grid;
    grid-template-columns: 1fr 1.18fr;
    gap: 36px;
    align-items: center;
  }
  .feature-tile.dark {
    background:
      radial-gradient(circle at 90% 10%, rgba(62, 228, 240, 0.18), transparent 55%),
      linear-gradient(145deg, #071d2a 0%, #0d2e40 100%);
    color: #fff;
    border-color: #23495c;
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
  .feature-tile.dark p { color: #b0cad4; }
  .feature-tile.dark .kicker { color: var(--cyan); }
  .terminal-box { margin-top: auto; padding-top: 24px; }
  .terminal-inner {
    background: rgba(4, 15, 23, 0.78);
    border: 1px solid rgba(94, 224, 238, 0.22);
    padding: 18px 22px;
    border-radius: 14px;
    font: 12.5px/1.95 var(--mono);
    color: #9be5ef;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
  }
  .terminal-inner .green { color: #5eead4; font-weight: 700; margin-right: 6px; }

  /* Interactive Annotation Tool Preview in Wide Bento Card */
  .tool-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }
  .tool-pill {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 999px;
    background: #eef6f9;
    border: 1px solid #c5dbe4;
    color: #1f4252;
    transition: all .16s ease;
  }
  .tool-pill:hover { border-color: var(--blue); background: #e3f3f8; }
  .tool-pill.active {
    background: #0a2d3e;
    color: var(--cyan);
    border-color: #0a2d3e;
    box-shadow: 0 4px 12px rgba(8, 45, 62, 0.2);
  }
  .tool-stage-caption {
    margin-top: 10px;
    padding: 11px 15px;
    border-radius: 11px;
    background: #f3f9fb;
    border: 1px solid #d4e5ec;
    font-size: 13px;
    color: #214150;
    font-weight: 600;
  }

  /* Privacy Section — Fixed block layout so inline <code> never breaks into flex columns */
  .privacy-section {
    background:
      radial-gradient(circle at 80% 25%, rgba(44, 197, 219, 0.16), transparent 50%),
      linear-gradient(180deg, #051622 0%, #092232 100%);
    color: white;
    position: relative;
    overflow: hidden;
    border-block: 1px solid #1c3d4f;
  }
  .privacy-section::after {
    position: absolute;
    content: "";
    width: 780px;
    height: 780px;
    border: 1px solid rgba(82, 198, 216, 0.14);
    border-radius: 50%;
    left: 65%;
    top: -30%;
    box-shadow: 0 0 0 140px rgba(10, 77, 92, 0.1), 0 0 0 280px rgba(10, 77, 92, 0.06);
    pointer-events: none;
  }
  .privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    position: relative;
    z-index: 1;
    align-items: center;
  }
  .privacy-grid h2 { margin: 18px 0 24px; }
  .privacy-grid p { color: #a9c7d1; font-size: 16.5px; }
  .privacy-points { display: grid; gap: 12px; }
  .privacy-point {
    position: relative;
    padding: 18px 22px 18px 54px;
    border: 1px solid rgba(110, 206, 224, 0.24);
    background: rgba(15, 48, 64, 0.72);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: #e9f7fa;
    line-height: 1.5;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .privacy-point .icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
  }
  .privacy-point code {
    background: rgba(62, 228, 240, 0.14);
    color: #8cf2fa;
    border-color: rgba(62, 228, 240, 0.3);
  }

  /* Formats & Audience Cards */
  .formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .format-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #cde0e8;
    border-radius: 22px;
    padding: 28px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .format-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #97c4d4; }
  .format-card .icon { color: var(--blue); width: 28px; height: 28px; }
  .format-card h3 { font-size: 20px; margin: 22px 0 10px; }
  .format-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
  .format-card .pill { align-self: start; margin-top: auto; font-size: 10.5px; padding: 5px 11px; }

  .audience-card {
    min-height: 245px;
    padding: 32px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 22px;
    border: 1px solid #cde0e8;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #97c4d4; }
  .audience-card .icon { color: var(--blue); height: 28px; width: 28px; }
  .audience-card h3 { margin: 32px 0 12px; font-size: 21px; }
  .audience-card p { color: var(--muted); font-size: 14px; }

  /* INTERIOR PAGES — Studio Feature Modules & Fixed Ticklist */
  .feature-deep {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 52px;
    align-items: center;
    padding: 42px;
    margin-bottom: 24px;
    background:
      radial-gradient(circle at 100% 0%, rgba(62, 228, 240, 0.07), transparent 45%),
      rgba(255, 255, 255, 0.92);
    border: 1px solid #cbe0e8;
    border-radius: 30px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
    position: relative;
  }
  .feature-deep:last-child { margin-bottom: 0; }
  .feature-deep.reverse { grid-template-columns: 1.08fr 1fr; }
  .feature-deep.reverse .feature-copy { order: 2; }
  .feature-deep h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); margin: 16px 0 20px; }
  .feature-deep p { color: var(--muted); }
  .feature-deep .ticklist { margin-top: 28px; }

  .feature-visual {
    border: 1px solid #1f4254;
    background: linear-gradient(180deg, #132d3d 0%, #091a25 100%);
    border-radius: 22px;
    padding: 36px 14px 14px;
    overflow: hidden;
    box-shadow:
      0 24px 55px -12px rgba(6, 26, 38, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.16);
    position: relative;
  }
  .feature-visual::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f;
  }
  .feature-visual::after {
    content: "CLICK TO INSPECT ⤢";
    position: absolute;
    top: 10px;
    right: 16px;
    font: 700 10px/1 var(--mono);
    letter-spacing: .08em;
    color: #8bb4c4;
    background: rgba(255, 255, 255, 0.07);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
  }
  .feature-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    background: #fff;
  }

  /* CRITICAL FIX: .ticklist li uses block + absolute icon so inline <code> & .ui-badge flow naturally in text! */
  .ticklist {
    display: grid;
    gap: 12px;
  }
  .ticklist li {
    position: relative;
    display: block;
    padding: 13px 16px 13px 44px;
    background: #f4f9fb;
    border: 1px solid #d7e7ee;
    border-radius: 13px;
    color: #2b4755;
    font-size: 14.5px;
    line-height: 1.65;
    box-shadow: inset 0 1px 0 #fff;
  }
  .ticklist .icon {
    position: absolute;
    left: 14px;
    top: 16px;
    color: #0d8ca8;
    background: #dcf4f8;
    border-radius: 6px;
    padding: 2px;
    width: 20px;
    height: 20px;
  }

  /* Downloads Page */
  .download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    margin-top: -36px;
    position: relative;
    z-index: 3;
  }
  .download-card {
    padding: 36px;
    background:
      radial-gradient(circle at 100% 0%, rgba(62, 228, 240, 0.1), transparent 55%),
      rgba(255, 255, 255, 0.96);
    border: 1px solid #c5dce5;
    border-radius: 26px;
    box-shadow: var(--shadow);
  }
  .download-card .platform-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .download-card h2 { font-size: 28px; }
  .download-card .platform-name { display: flex; gap: 14px; align-items: center; }
  .download-card .platform-name .icon { height: 34px; width: 34px; color: var(--blue); }
  .download-card p { color: var(--muted); font-size: 14.5px; margin: 12px 0 24px; }
  .download-card .btn { width: 100%; }
  .download-card .build-meta { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: #5f7a87; display: flex; gap: 10px; flex-wrap: wrap; }
  .checksums {
    background: #eaf3f7;
    border: 1px solid #cde0e8;
    border-radius: 14px;
    padding: 15px 19px;
    margin: 20px 0;
    color: #46606e;
    font: 12px/1.8 var(--mono);
    overflow-wrap: anywhere;
  }
  .dl-instructions { margin-top: 40px; }
  .dl-instructions h2 { font-size: 32px; margin: 14px 0 22px; }
  .dl-instructions .card { padding: 30px; }
  .dl-instructions .card h3 { font-size: 21px; }
  .dl-instructions .card ol { padding-left: 19px; margin-top: 18px; }
  .dl-instructions .card li { list-style: decimal; margin-bottom: 12px; color: var(--muted); font-size: 14.5px; }
  .release-alert { margin-top: 25px; }

  /* Interactive Example Showcase Card */
  .example-showcase {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 42px;
    align-items: center;
    padding: 36px;
    border: 1px solid #c5dbe4;
    background:
      radial-gradient(circle at 0% 0%, rgba(62, 228, 240, 0.1), transparent 50%),
      rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: var(--shadow);
  }
  .example-showcase img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 1px solid #234456;
    box-shadow: 0 20px 48px -12px rgba(6, 28, 40, 0.28);
  }
  .example-showcase h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); margin: 16px 0; }
  .example-showcase p { color: var(--muted); margin-bottom: 26px; font-size: 15.5px; }

  /* Docs & Articles */
  .doc-home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .doc-card {
    display: flex;
    flex-direction: column;
    padding: 30px;
    background:
      radial-gradient(circle at 100% 0%, rgba(62, 228, 240, 0.08), transparent 50%),
      rgba(255, 255, 255, 0.95);
    border: 1px solid #cde0e8;
    border-radius: 22px;
    min-height: 235px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
  }
  .doc-card:hover { transform: translateY(-4px); border-color: #86c5d4; box-shadow: var(--shadow); color: inherit; }
  .doc-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
  .doc-card .icon { color: #0e8eab; width: 28px; height: 28px; margin-bottom: 0; }
  .doc-card h3 { font-size: 21px; margin-bottom: 10px; }
  .doc-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
  .doc-card .doc-arrow { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--accent); }
  .search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 540px;
    padding: 0 18px;
    border: 1px solid #bfd5df;
    border-radius: 14px;
    background: #fff;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
  }
  .search-field .icon { color: #6c8c9b; }
  .search-field input { height: 50px; width: 100%; border: 0; background: transparent; outline: 0; }
  .article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }
  .article-nav {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 4px;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #cde0e8;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  }
  .article-nav-title {
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 4px 10px 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
  }
  .article-nav a { padding: 10px 12px; border-radius: 10px; color: #496370; font-size: 13.5px; font-weight: 620; display: flex; align-items: center; gap: 8px; }
  .article-nav a:hover { background: #eef6f9; color: var(--ink); }
  .article-nav a.active {
    background: linear-gradient(135deg, #092738 0%, #0f3a50 100%);
    color: #fff;
    font-weight: 720;
    box-shadow: 0 6px 16px -4px rgba(8, 39, 56, 0.3);
  }
  .article-content {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #cde0e8;
    border-radius: 26px;
    padding: 42px 46px;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  }
  .article-content h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); margin: 38px 0 14px; scroll-margin-top: 110px; }
  .article-content h2:first-child { margin-top: 0; }
  .article-content h3 { font-size: 20px; margin: 24px 0 10px; }
  .article-content p { color: #445e6c; margin-bottom: 16px; }
  .article-content ul, .article-content ol { padding-left: 24px; margin: 16px 0 22px; }
  .article-content li { list-style: disc; color: #3a5563; margin: 9px 0; line-height: 1.68; }
  .article-content ol li { list-style: decimal; font-weight: 500; }
  .article-content .feature-visual { margin: 24px 0; }
  .article-content img { border-radius: 12px; border: 1px solid var(--line); margin: 22px 0; box-shadow: var(--shadow-sm); }
  .article-content .feature-visual img { margin: 0; border: 0; box-shadow: none; }
  .article-content .notice { margin: 24px 0; }
  .article-content .pill { margin: 10px 0; }
  .article-next { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; }
  .article-next a { font-size: 13.5px; font-weight: 760; color: var(--accent); padding: 8px 14px; border-radius: 10px; background: #eef6f9; border: 1px solid #d2e4ec; }
  .article-next a:hover { background: #e0f1f6; border-color: var(--blue); }

  /* Timeline, About, Contact, Legal */
  .timeline { display: grid; gap: 20px; max-width: 880px; }
  .timeline-entry {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 28px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
  }
  .timeline-entry time { font-family: var(--mono); font-size: 12px; color: var(--accent); font-weight: 700; }
  .timeline-entry h3 { font-size: 22px; margin: 0 0 10px; }
  .timeline-entry p { color: var(--muted); }
  .about-prose {
    max-width: 860px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
  }
  .about-prose h2 { margin: 0 0 24px; }
  .about-prose p { font-size: 17.5px; color: #445f6d; margin-bottom: 22px; }
  .contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 56px; }
  .contact-copy p { color: var(--muted); margin: 16px 0; }
  .contact-form {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #c9dde6;
    border-radius: 24px;
    padding: 34px;
    box-shadow: var(--shadow);
  }
  .field { display: grid; gap: 6px; margin-bottom: 18px; }
  .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .field label { font-size: 12.5px; font-weight: 740; color: #2d4c5c; }
  .field .hint { display: block; color: #5b7684; font-size: 12px; line-height: 1.45; }
  .field .error-msg { display: none; color: #b91c1c; font-size: 12.5px; font-weight: 650; margin-top: 2px; }
  .field input, .field select, .field textarea {
    width: 100%;
    border: 1px solid #bfd4de;
    border-radius: 11px;
    padding: 11px 14px;
    background: #fcfefe;
    color: var(--ink);
    outline: 0;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--blue);
    background: #fff;
  }
  .field input:user-invalid, .field textarea:user-invalid,
  .field input.user-invalid-fallback, .field textarea.user-invalid-fallback {
    border-color: #c81e1e;
    background-color: #fef2f2;
  }
  .field input:user-invalid + .error-msg, .field textarea:user-invalid + .error-msg,
  .field input.user-invalid-fallback + .error-msg, .field textarea.user-invalid-fallback + .error-msg {
    display: block;
  }
  .field input:user-valid, .field textarea:user-valid,
  .field input.user-valid-fallback, .field textarea.user-valid-fallback {
    border-color: #0e8a5f;
  }
  .field textarea { min-height: 110px; resize: vertical; }
  .field textarea.tall-input { min-height: 130px; }
  .report-preview-box {
    margin: 16px 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f2f8fa;
    border: 1px solid #cfe1e8;
  }
  .report-preview-box summary {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    color: #2c4c5b;
    letter-spacing: .04em;
  }
  .report-preview-pre {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 9px;
    background: #071b27;
    color: #d6eef5;
    font: 12px/1.65 var(--mono);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 220px;
    overflow-y: auto;
  }
  .form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .form-status { margin-top: 13px; font-size: 13.5px; color: #0e6573; font-weight: 650; }

  /* FAQ Category Grouping */
  .faq-category { margin-bottom: 36px; }
  .faq-category:last-of-type { margin-bottom: 0; }
  .faq-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 0 4px;
  }
  .faq-group-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.03em; }

  /* Examples Page Disclosure Banner & Multi-Format Showcase */
  .demo-disclosure {
    margin-top: 18px;
    padding: 16px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #c7dce6;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: #365260;
    box-shadow: var(--shadow-sm);
  }
  .demo-disclosure strong { color: var(--ink); }
  .showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
  .showcase-card {
    padding: 30px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #cbe0e8;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .showcase-card.wide { grid-column: span 2; }
  .showcase-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .showcase-card h3 { font-size: 21px; }
  .showcase-card p { font-size: 14.5px; color: var(--muted); }
  .showcase-meta {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 11.5px;
    color: #4d6977;
  }

  /* Documentation Expandable Topic Directory */
  .topic-directory {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
  .topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
  }
  .topic-group {
    padding: 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #cfe2ea;
    box-shadow: var(--shadow-sm);
  }
  .topic-group h3 { font-size: 16.5px; margin: 8px 0 12px; }
  .topic-links { display: grid; gap: 8px; }
  .topic-links a {
    font-size: 13.5px;
    color: #365362;
    font-weight: 560;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f4f9fb;
    border: 1px solid #dfedf2;
  }
  .topic-links a:hover {
    background: #e6f4f8;
    border-color: #9ec9d8;
    color: var(--ink);
  }

  /* Download Platform Specs Table */
  .platform-specs {
    margin: 16px 0 22px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f9fb;
    border: 1px solid #d7e7ee;
    display: grid;
    gap: 8px;
    font-size: 13px;
  }
  .platform-spec-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed #d6e5ec;
    padding-bottom: 6px;
  }
  .platform-spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .platform-spec-row span:first-child { color: var(--muted); font-weight: 600; }
  .platform-spec-row span:last-child { font-family: var(--mono); font-size: 12px; color: var(--ink); text-align: right; }
  .download-card.recommended {
    border-color: #0e89a8;
    box-shadow: 0 24px 60px -15px rgba(8, 127, 168, 0.2), inset 0 0 0 1px rgba(14, 137, 168, 0.25);
  }
  .pill.beta {
    color: #094f69;
    background: #dff4fa;
    border-color: #9cd9ea;
  }
  .beta-support-bar {
    margin-top: 24px;
    padding: 20px 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #c6dce6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
  }
  .beta-support-copy {
    display: grid;
    gap: 4px;
    font-size: 14px;
    color: var(--muted);
  }
  .beta-support-copy strong {
    color: var(--ink);
    font-size: 15px;
  }
  .install-guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-top: 20px;
  }
  .install-guidance-card {
    padding: 28px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #c8dde7;
    box-shadow: var(--shadow-sm), inset 0 1px 0 #fff;
  }
  .install-guidance-card h3 {
    font-size: 19px;
    margin: 10px 0;
  }
  .install-guidance-card p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .install-guidance-card ol {
    padding-left: 20px;
    margin: 12px 0;
  }
  .install-guidance-card li {
    list-style: decimal;
    font-size: 13.5px;
    color: #2f4b59;
    margin-bottom: 8px;
    line-height: 1.55;
  }
  .install-security-note {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #eef6f9;
    border: 1px solid #cfe1e8;
    font-size: 12.5px;
    color: #1f4354;
    font-weight: 600;
  }

  /* Private Beta Access Modal (<dialog>) */
  .beta-modal {
    border: 1px solid #1e465a;
    border-radius: 24px;
    padding: 0;
    width: min(92vw, 490px);
    max-width: 490px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 36px 90px -12px rgba(3, 18, 28, 0.62);
    margin: auto;
  }
  .beta-modal-header {
    background: linear-gradient(135deg, #061b28 0%, #0d3247 100%);
    color: #ffffff;
    padding: 24px 28px 20px;
    border-bottom: 1px solid #1d4458;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
  }
  .beta-modal-header h2 {
    font-size: 24px;
    color: #ffffff;
    margin-top: 8px;
    letter-spacing: -.03em;
  }
  .beta-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #d6eef5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    min-width: 36px;
    min-height: 36px;
    padding: 4px 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }
  .beta-modal-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
  }
  .beta-modal-body {
    padding: 24px 28px 28px;
  }
  .beta-tab-group {
    display: flex;
    background: #eef6f9;
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 18px;
    border: 1px solid #d5e5ec;
  }
  .beta-tab {
    flex: 1 1 0;
    padding: 8px 12px;
    font-size: 13.5px;
    font-weight: 650;
    border-radius: 9px;
    border: 0;
    background: transparent;
    color: #496372;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
    text-align: center;
  }
  .beta-tab:hover {
    color: var(--ink);
  }
  .beta-tab.active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 2px 8px -2px rgba(8, 32, 46, 0.12);
  }
  .beta-modal-desc {
    color: #3e5968;
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  .beta-otp-input {
    font-family: var(--mono);
    font-size: 1.35rem !important;
    font-weight: 750;
    letter-spacing: 0.35em;
    text-align: center;
    min-height: 52px;
    padding: 0.6rem 0.85rem !important;
    box-sizing: border-box;
  }
  .beta-modal-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
  }
  .beta-modal-actions .btn-primary {
    flex: 1 1 180px;
  }
  .beta-secondary-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }
  .beta-secondary-actions .btn {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 13px;
    font-size: 12.5px;
  }
  .beta-feedback {
    margin-bottom: 16px;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 640;
    line-height: 1.5;
    border: 1px solid #cbe0e8;
    background: #eef7fa;
    color: #0d4b62;
  }
  .beta-feedback[data-beta-state="sending_code"],
  .beta-feedback[data-beta-state="submitting_waitlist"],
  .beta-feedback[data-beta-state="download_preparation"] {
    background: #e6f6fa;
    border-color: #9ad8e8;
    color: #084c63;
  }
  .beta-feedback[data-beta-state="awaiting_verification"],
  .beta-feedback[data-beta-state="waitlist_success"] {
    background: #e3f7ef;
    border-color: #a6e3cb;
    color: #0b5d46;
  }
  .beta-feedback[data-beta-state="invalid_code"],
  .beta-feedback[data-beta-state="expired_code"],
  .beta-feedback[data-beta-state="rate_limited"],
  .beta-feedback[data-beta-state="release_unavailable"],
  .beta-feedback[data-beta-state="verification_failed"],
  .beta-feedback[data-beta-state="server_error"] {
    background: #fef2f2;
    border-color: #f3b5b5;
    color: #991b1b;
  }
  .beta-modal-platform-tip {
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: 11px;
    background: #f4f9fb;
    border: 1px solid #d5e5ec;
    font-size: 12px;
    color: #365260;
    line-height: 1.5;
  }

  /* Semantic UI Syntax Reference Cards */
  .syntax-reference {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }
  .syntax-item {
    padding: 10px 13px;
    border-radius: 10px;
    background: #f4f9fb;
    border: 1px solid #d6e6ed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
  }
  .syntax-item code { font-size: 11.5px; }
  .inst-callout-demo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 7px;
    background: #e6f5f8;
    border-left: 3px solid #0d8ca8;
    color: #0b4a5e;
    font-size: 12px;
    font-weight: 650;
  }
  .legal-text {
    max-width: 860px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
  }
  .legal-text h2 { font-size: 26px; margin: 38px 0 12px; }
  .legal-text h2:first-child { margin-top: 0; }
  .legal-text p, .legal-text li { color: #4c6472; margin-bottom: 16px; }
  .legal-text ul { padding-left: 22px; }
  .legal-text li { list-style: disc; margin-bottom: 8px; }

  /* INTERACTIVE EXAMPLE DEMO SHELL */
  .demo-frame {
    margin-top: -32px;
    position: relative;
    z-index: 3;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #24475a;
    background: #0d202c;
    box-shadow: var(--shadow-lg);
  }
  .demo-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 610px;
    background: #fff;
    overflow: hidden;
  }
  .demo-sidebar {
    background: linear-gradient(180deg, #eff6f9 0%, #e6f0f4 100%);
    border-right: 1px solid #d2e2e8;
    padding: 26px;
    display: flex;
    flex-direction: column;
  }
  .demo-sidebar h3 { font-size: 15px; letter-spacing: -.01em; margin-bottom: 18px; }
  .demo-sidebar .eyelabel { margin-bottom: 10px; }
  .demo-step {
    width: 100%;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 11px;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 11px 13px;
    color: #4f6875;
    background: transparent;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 600;
    transition: all .16s ease;
  }
  .demo-step:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
  .demo-step .num {
    height: 24px;
    width: 24px;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: #d5e3ea;
    color: #3b525f;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 800;
    flex-shrink: 0;
  }
  .demo-step.active {
    color: #ffffff;
    background: linear-gradient(135deg, #092a3b 0%, #0e3f57 100%);
    border-color: #1c5773;
    font-weight: 740;
    box-shadow: 0 8px 20px -6px rgba(8, 42, 59, 0.35);
  }
  .demo-step.active .num { background: var(--cyan); color: #052636; }
  .demo-main { min-width: 0; padding: 26px; }
  .demo-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
  .demo-toolbar strong { font-size: 14.5px; }
  .demo-image {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #142733;
    border: 1px solid #244354;
    box-shadow: 0 16px 38px -10px rgba(6, 26, 38, 0.25);
  }
  .demo-image img { width: 100%; height: auto; }
  .demo-point {
    position: absolute;
    transform: translate(-50%, -50%);
    background: #0095cc;
    color: white;
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(0, 149, 204, 0.32), 0 6px 20px rgba(0, 27, 38, 0.65);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 800;
    transition: left .32s cubic-bezier(.2, .8, .2, 1), top .32s cubic-bezier(.2, .8, .2, 1);
  }
  .demo-copy {
    border: 1px solid #cfe0e7;
    background: #f4f9fb;
    border-radius: 14px;
    padding: 18px 22px;
    margin-top: 16px;
  }
  .demo-copy strong { font-size: 15.5px; display: block; line-height: 1.5; }
  .demo-copy p { font-size: 13.5px; color: #546e7b; margin-top: 6px; }
  .demo-controls { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
  .demo-controls .btn { min-height: 40px; padding: 10px 16px; }
  .demo-hint { font-family: var(--mono); color: #4f6875; font-size: 11.5px; }
}

@layer utilities {
  .mt-20 { margin-top: 16px; }
  .mt-32 { margin-top: 24px; }
  .mt-48 { margin-top: 28px; }
  .mt-72 { margin-top: 40px; }
  .mb-24 { margin-bottom: 18px; }
  .text-center { text-align: center; }
  .flex-center { display: flex; justify-content: center; align-items: center; }
  .hide { display: none !important; }
  .flow > * + * { margin-top: 16px; }
}

@media (min-width: 1025px) {
  .story-grid { min-height: 0; }
}

@media (max-width: 1090px) {
  .main-nav > a { padding: 8px 10px; }
  .story-grid { grid-template-columns: 370px 1fr; gap: 35px; }
  .float-label.three { right: 0; }
  .float-label.one { left: 0; }
  .foot-top { gap: 25px; }
  .feature-deep, .feature-deep.reverse { grid-template-columns: 1fr; gap: 36px; padding: 38px; }
  .feature-deep.reverse .feature-copy { order: 0; }
  .feature-tile.wide .wide-split { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .site-header { height: 64px; top: 8px; width: calc(100% - 24px); }
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #cde0e8;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(6, 24, 35, 0.2);
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px; }
  .nav-actions .btn { min-height: 38px; padding: 9px 14px; }
  .hero { padding-top: 128px; }
  .hero h1 span { white-space: normal; }
  .hero-stage { margin-top: 52px; padding: 0; }
  .float-label { display: none; }
  .section { padding: 44px 0; }
  .section.compact { padding: 34px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .story-grid { grid-template-columns: 1fr; gap: 34px; }
  .story-left, .story-preview { position: static; padding: 0; }
  .story-tabs { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: 1fr; }
  .feature-tile.tall, .feature-tile.wide { grid-row: auto; grid-column: auto; }
  .privacy-grid, .contact-grid { grid-template-columns: 1fr; gap: 35px; }
  .formats, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .article-layout { grid-template-columns: 1fr; gap: 25px; }
  .article-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 7px; }
  .article-nav a { white-space: nowrap; }
  .article-content { padding: 28px; }
  .demo-shell { grid-template-columns: 200px 1fr; }
  .demo-sidebar, .demo-main { padding: 16px; }
  .doc-home, .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .download-card { padding: 26px; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-card.wide { grid-column: auto; }
}

@media (max-width: 768px) {
  .page-intro { padding: 116px 0 88px; }
  .page-intro.small { padding: 106px 0 80px; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  .site-header .brand .brand-icon { width: 32px !important; height: 32px !important; }
  .site-header .brand .brand-banner { height: 22px !important; }
  .nav-actions > .btn { font-size: 11.5px; }
  .hero { padding-top: 114px; }
  .hero h1 { font-size: clamp(2.85rem, 12vw, 4.4rem); }
  .hero-stage { margin-top: 42px; margin-inline: -8px; }
  .window-top { height: 30px; }
  .window-title { font-size: 9px; }
  .window-top .dots i { height: 8px; width: 8px; }
  .hero-bottom { margin-top: -70px; height: 110px; }
  .trust-strip { grid-template-columns: 1fr; gap: 10px; padding-bottom: 36px; }
  .section { padding: 36px 0; }
  .section.compact { padding: 28px 0; }
  .section-head { margin-bottom: 32px; }
  .story-tabs { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .download-grid, .example-showcase, .formats, .grid-4, .doc-home, .topic-grid, .field-row, .syntax-reference { grid-template-columns: 1fr; }
  .feature-tile, .feature-deep { padding: 24px; }
  .cta-panel { padding: 38px 24px; border-radius: 22px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: span 2; }
  .foot-bottom { display: block; }
  .foot-bottom .footer-mini { margin-top: 14px; }
  .page-intro { padding: 116px 0 88px; }
  .page-intro.small { padding: 106px 0 80px; }
  .download-grid { margin-top: -36px; }
  .timeline-entry { grid-template-columns: 1fr; gap: 6px; padding: 22px; }
  .about-prose, .legal-text { padding: 26px; }
  .demo-shell { margin-top: -25px; display: block; }
  .demo-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-list { display: flex; overflow-x: auto; gap: 6px; }
  .demo-step { flex: 0 0 auto; margin: 0; width: auto; white-space: nowrap; }
  .demo-toolbar { flex-wrap: wrap; }
  .demo-point { width: 28px; height: 28px; border-width: 2px; font-size: 11px; }
  .demo-hint { display: none; }
  .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .float-label,
  .float-up,
  .app-frame,
  .demo-point {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
    animation: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (view-transition-name: page) {
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: fade-old .15s ease; }
    ::view-transition-new(root) { animation: fade-new .22s ease; }
    @keyframes fade-old { to { opacity: 0; } }
    @keyframes fade-new { from { opacity: 0; } }
  }
}

[hidden] { display: none !important; }

img[data-zoom] { cursor: zoom-in; }
dialog:modal {
  overscroll-behavior: contain;
}
dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(4, 19, 29, 0.78);
  backdrop-filter: blur(8px);
}
#image-lightbox::backdrop { background: rgba(4, 19, 29, 0.84); backdrop-filter: blur(8px); }

@media print {
  .site-header, .site-footer, .nav-actions, .hero-actions, .demo-controls, .cta-panel { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-intro { padding: 20px 0; margin: 0; }
  .page-intro { background: #fff; color: #000; }
  .page-intro .lead { color: #333; }
  .card, .feature-tile, .feature-deep { break-inside: avoid; }
}
