/* AlbumDesigner Landing Page — Luxury Darkroom Editorial Stylesheet */
@layer reset, tokens, base, layout, components, animations, utilities;

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    color-scheme: dark;
  }

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

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  figure,
  blockquote,
  ul,
  ol,
  dl,
  dd {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
    list-style: none;
  }

  img,
  picture,
  svg {
    display: block;
    max-width: 100%;
  }

  img {
    height: auto;
  }

  button,
  input {
    font: inherit;
    color: inherit;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

@layer tokens {
  :root {
    --bg: #08090c;
    --bg-elevated: #101218;
    --bg-surface: #151821;
    --bg-glass: rgba(12, 14, 19, 0.78);
    --ink: #f5f3ee;
    --ink-secondary: #b7b5ae;
    --ink-muted: #84858d;

    --gold: #dfc083;
    --gold-strong: #f3dba7;
    --gold-soft: rgba(223, 192, 131, 0.12);
    --gold-border: rgba(223, 192, 131, 0.34);

    --accent: #4c8dff;
    --accent-soft: rgba(76, 141, 255, 0.14);
    --accent-border: rgba(76, 141, 255, 0.38);

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 30px;

    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    --shadow-window: 0 36px 100px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.09);

    --container: 1180px;
    --header-h: 68px;
  }
}

@layer base {
  body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
  }

  :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
  }

  .skip-link {
    position: fixed;
    top: -100px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: var(--gold);
    color: #0b0c10;
    font-weight: 600;
  }

  .skip-link:focus {
    top: 16px;
  }

  .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;
  }
}

@layer layout {
  .container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
  }

  section[id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
  }

  .section {
    padding-block: clamp(72px, 9vw, 128px);
    position: relative;
  }

  .section-bordered {
    border-top: 1px solid var(--border);
  }

  .section-head {
    max-width: 700px;
    margin-bottom: clamp(36px, 5vw, 60px);
  }

  .section-head.centered {
    margin-inline: auto;
    text-align: center;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
  }

  .eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
  }

  .section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--ink);
    text-wrap: balance;
  }

  .section-lead {
    margin-top: 16px;
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    color: var(--ink-secondary);
    line-height: 1.68;
    text-wrap: pretty;
  }
}

@layer components {
  /* ==================== STICKY GLASS HEADER ==================== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--bg-glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border);
  }

  .header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
    flex: none;
  }

  .brand img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .brand strong {
    font-weight: 680;
    color: var(--ink);
  }

  .brand span {
    font-weight: 350;
    color: var(--ink-secondary);
  }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 480;
    color: var(--ink-secondary);
    transition: color 0.16s ease, background-color 0.16s ease;
  }

  .nav-link:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-link-docs {
    color: var(--gold-strong);
  }

  .nav-link-docs:hover {
    color: #fff3d4;
    background: var(--gold-soft);
  }

  .header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    color: var(--ink);
    cursor: pointer;
  }

  /* ==================== BUTTONS ==================== */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.93rem;
    font-weight: 580;
    line-height: 1;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
      transform 0.16s ease,
      background-color 0.16s ease,
      border-color 0.16s ease,
      box-shadow 0.2s ease;
    white-space: nowrap;
  }

  .btn:active {
    transform: translateY(1px);
  }

  .btn-sm {
    padding: 9px 16px;
    font-size: 0.86rem;
  }

  .btn-primary {
    background: linear-gradient(135deg, #ebd096 0%, #c9a15a 100%);
    color: #0b0c10;
    box-shadow: 0 8px 28px rgba(223, 192, 131, 0.26);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #f5deb0 0%, #d8b26d 100%);
    box-shadow: 0 10px 36px rgba(223, 192, 131, 0.38);
  }

  .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-strong);
    color: var(--ink);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.26);
  }

  .btn-ghost {
    background: transparent;
    border-color: var(--gold-border);
    color: var(--gold-strong);
  }

  .btn-ghost:hover {
    background: var(--gold-soft);
  }

  /* ==================== HERO ==================== */
  .hero {
    padding-top: clamp(56px, 8vw, 108px);
    padding-bottom: clamp(64px, 8vw, 112px);
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: -140px 50% auto auto;
    transform: translateX(50%);
    width: min(1240px, 140vw);
    height: 620px;
    background:
      radial-gradient(ellipse 52% 45% at 48% 28%, rgba(223, 192, 131, 0.14), transparent 72%),
      radial-gradient(ellipse 40% 42% at 72% 45%, rgba(76, 141, 255, 0.11), transparent 70%);
    pointer-events: none;
    z-index: 0;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
  }

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--gold-border);
    background: rgba(223, 192, 131, 0.08);
    color: var(--gold-strong);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 26px;
  }

  .hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
  }

  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.65rem, 6.2vw, 4.85rem);
    font-weight: 460;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
  }

  .hero h1 em {
    font-style: italic;
    font-weight: 420;
    background: linear-gradient(125deg, #f6e2b7 10%, #d4aa62 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-sub {
    max-width: 660px;
    margin: 24px auto 0;
    font-size: clamp(1.04rem, 1.45vw, 1.2rem);
    color: var(--ink-secondary);
    line-height: 1.66;
    text-wrap: pretty;
  }

  .hero-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .hero-pills {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    font-size: 0.84rem;
    color: var(--ink-muted);
  }

  .hero-pills span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .hero-pills svg {
    color: var(--gold);
    flex: none;
  }

  .hero-visual {
    position: relative;
    z-index: 1;
    margin-top: clamp(44px, 6vw, 72px);
  }

  .hero-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-window);
  }

  .hero-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .hero-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(8, 9, 12, 0.72) 0%,
      rgba(8, 9, 12, 0.12) 32%,
      transparent 60%
    );
    pointer-events: none;
  }

  .hero-caption-bar {
    position: absolute;
    inset: auto 20px 18px 20px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .hero-caption-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(11, 13, 18, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    color: var(--ink);
  }

  .hero-caption-pill strong {
    color: var(--gold-strong);
    font-weight: 600;
  }

  /* ==================== METRICS STRIP ==================== */
  .metrics-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    padding-block: clamp(32px, 4.5vw, 50px);
  }

  .metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .metric {
    padding-inline: 12px;
    border-inline-start: 1px solid var(--border);
  }

  .metric:first-child {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .metric-value {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.75rem);
    font-weight: 480;
    line-height: 1.05;
    color: var(--gold-strong);
    letter-spacing: -0.02em;
  }

  .metric-label {
    margin-top: 6px;
    font-size: 0.88rem;
    color: var(--ink-secondary);
    line-height: 1.45;
  }

  /* ==================== INTERACTIVE STUDIO PREVIEW ==================== */
  .studio-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
  }

  .studio-tab {
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--ink-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.16s ease;
  }

  .studio-tab:hover {
    border-color: var(--border-strong);
    color: var(--ink);
  }

  .studio-tab[aria-selected='true'] {
    background: var(--gold-soft);
    border-color: var(--gold-border);
    color: var(--gold-strong);
  }

  .studio-window {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-window);
  }

  .studio-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    background: #13161e;
    border-bottom: 1px solid var(--border);
  }

  .window-dots {
    display: flex;
    gap: 7px;
  }

  .window-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
  }

  .window-dots i:nth-child(1) { background: #ff5f57; }
  .window-dots i:nth-child(2) { background: #febc2e; }
  .window-dots i:nth-child(3) { background: #28c840; }

  .window-title {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--ink-muted);
  }

  .studio-panel[hidden] {
    display: none;
  }

  .studio-panel img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0d0f14;
  }

  .studio-panel-caption {
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--ink-secondary);
  }

  .studio-panel-caption strong {
    color: var(--ink);
  }

  /* ==================== WORKFLOW 3-STEP ==================== */
  .workflow-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .workflow-card {
    padding: 30px 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .workflow-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--gold-border);
    background: var(--gold-soft);
    align-self: flex-start;
  }

  .workflow-card h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  .workflow-card p {
    font-size: 0.94rem;
    color: var(--ink-secondary);
    line-height: 1.65;
  }

  .workflow-list {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--ink-secondary);
  }

  .workflow-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .workflow-list li::before {
    content: '→';
    color: var(--gold);
    font-size: 0.82rem;
    flex: none;
  }

  /* ==================== DEEP EDITORIAL FEATURE SPLIT ==================== */
  .feature-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(64px, 8vw, 112px);
  }

  .feature-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
  }

  .feature-split.reversed .feature-media {
    order: -1;
  }

  .feature-copy h3 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 2.8vw, 2.45rem);
    font-weight: 480;
    line-height: 1.14;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-wrap: balance;
  }

  .feature-copy p {
    margin-top: 16px;
    font-size: 0.99rem;
    color: var(--ink-secondary);
    line-height: 1.7;
  }

  .feature-bullets {
    margin-top: 22px;
    display: grid;
    gap: 12px;
  }

  .feature-bullets li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    font-size: 0.93rem;
    color: var(--ink-secondary);
  }

  .feature-bullets svg {
    color: var(--gold);
    margin-top: 3px;
  }

  .feature-bullets strong {
    color: var(--ink);
    font-weight: 600;
  }

  .feature-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-window);
  }

  .feature-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .feature-media figcaption {
    padding: 12px 16px;
    font-size: 0.8rem;
    color: var(--ink-muted);
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
  }

  /* ==================== BENTO CAPABILITIES GRID ==================== */
  .bento-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
  }

  .bento-card {
    grid-column: span 4;
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.2s ease;
  }

  .bento-card:hover {
    border-color: var(--border-strong);
  }

  .bento-card.wide {
    grid-column: span 6;
  }

  .bento-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--gold-soft);
    border: 1px solid var(--gold-border);
    color: var(--gold-strong);
    display: grid;
    place-items: center;
    margin-bottom: 4px;
  }

  .bento-card h3 {
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
  }

  .bento-card p {
    font-size: 0.9rem;
    color: var(--ink-secondary);
    line-height: 1.62;
  }

  .tag-row {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ink-muted);
  }

  /* ==================== PLATFORM SPECS ==================== */
  .specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .spec-card {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
  }

  .spec-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
  }

  .spec-card-head h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
  }

  .spec-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--ink-secondary);
  }

  .spec-list {
    display: grid;
    gap: 12px;
  }

  .spec-row {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 12px;
    font-size: 0.9rem;
  }

  .spec-row dt {
    color: var(--ink-muted);
    font-weight: 500;
  }

  .spec-row dd {
    color: var(--ink-secondary);
  }

  /* ==================== DEDICATED BETA DOWNLOAD SECTION ==================== */
  .beta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(36px, 6vw, 68px);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gold-border);
    background:
      radial-gradient(ellipse 68% 72% at 50% 0%, rgba(223, 192, 131, 0.14), transparent 65%),
      linear-gradient(180deg, #141720 0%, #0e1017 100%);
    box-shadow: 0 32px 96px rgba(0, 0, 0, 0.65);
    text-align: center;
  }

  .beta-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(2.05rem, 4.2vw, 3.3rem);
    font-weight: 480;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--ink);
  }

  .beta-lead {
    max-width: 650px;
    margin: 18px auto 0;
    font-size: clamp(1rem, 1.35vw, 1.14rem);
    color: var(--ink-secondary);
    line-height: 1.7;
  }

  .beta-email-highlight {
    color: var(--gold-strong);
    font-weight: 600;
    border-bottom: 1px dashed var(--gold-border);
  }

  .beta-email-highlight:hover {
    color: #fff3d4;
    border-bottom-color: var(--gold-strong);
  }

  .beta-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .copy-feedback {
    min-height: 22px;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--gold-strong);
  }

  .beta-steps {
    margin: 34px auto 0;
    max-width: 820px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
  }

  .beta-step {
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: rgba(8, 9, 12, 0.52);
  }

  .beta-step span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold);
    margin-bottom: 6px;
  }

  .beta-step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
  }

  .beta-step p {
    font-size: 0.84rem;
    color: var(--ink-secondary);
    line-height: 1.5;
  }

  .beta-platforms {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    color: var(--ink-secondary);
  }

  .platform-badge strong {
    color: var(--ink);
    font-weight: 560;
  }

  /* ==================== FAQ ACCORDION (MODERN WEB GUIDANCE) ==================== */
  .faq-wrap {
    max-width: 820px;
    margin-inline: auto;
  }

  .faq-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
  }

  .faq-toggle-all[aria-expanded='true'] .label-expand,
  .faq-toggle-all[aria-expanded='false'] .label-collapse {
    display: none;
  }

  .accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .accordion details {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    overflow: hidden;
    transition: border-color 0.2s ease;
  }

  .accordion details[open] {
    border-color: var(--gold-border);
  }

  .accordion summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    font-size: 1rem;
    font-weight: 550;
    color: var(--ink);
    cursor: pointer;
    user-select: none;
  }

  .accordion summary::-webkit-details-marker {
    display: none;
  }

  .accordion summary::before {
    content: '';
    inline-size: 14px;
    block-size: 14px;
    flex-shrink: 0;
    background-color: var(--gold);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
    rotate: -90deg;
  }

  .accordion details[open] > summary::before {
    rotate: 0deg;
  }

  .accordion details::details-content {
    interpolate-size: allow-keywords;
    overflow: clip;
    contain: layout;
  }

  .accordion details:not([open])::details-content {
    block-size: 0;
  }

  .accordion-body {
    padding: 0 20px 18px 46px;
    font-size: 0.93rem;
    color: var(--ink-secondary);
    line-height: 1.68;
  }

  .accordion-body a {
    color: var(--gold-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  @media (prefers-reduced-motion: no-preference) {
    .accordion summary::before {
      transition: rotate 0.2s ease;
    }

    .accordion details::details-content {
      transition: block-size 0.28s ease-in-out, content-visibility 0.28s ease-in-out;
      transition-behavior: allow-discrete;
    }
  }

  /* ==================== FOOTER ==================== */
  .site-footer {
    border-top: 1px solid var(--border);
    padding-block: 44px;
    background: #06070a;
  }

  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.88rem;
    color: var(--ink-secondary);
  }

  .footer-links a:hover {
    color: var(--gold-strong);
  }

  .footer-meta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--ink-muted);
  }
}

/* ==================== SCROLL-DRIVEN REVEALS (MODERN WEB GUIDANCE) ==================== */
@layer animations {
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      @keyframes reveal-up {
        from {
          opacity: 0;
          transform: translateY(24px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .reveal {
        animation: reveal-up auto linear backwards;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
      }
    }

    /* IntersectionObserver fallback classes when native scroll-driven animations are unsupported */
    .reveal-fallback-pending {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .reveal-fallback-visible {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 980px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(3) {
    border-inline-start: 0;
    padding-inline-start: 0;
  }

  .workflow-grid,
  .specs-grid,
  .beta-steps {
    grid-template-columns: 1fr;
  }

  .feature-split {
    grid-template-columns: 1fr;
  }

  .feature-split.reversed .feature-media {
    order: 0;
  }

  .bento-card,
  .bento-card.wide {
    grid-column: span 6;
  }
}

@media (max-width: 780px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    background: rgba(10, 12, 17, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-strong);
  }

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

  .header-cta .btn-primary {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .bento-card,
  .bento-card.wide {
    grid-column: span 12;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .hero-caption-bar {
    position: static;
    padding: 12px 14px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
  }

  .hero-frame::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .container {
    width: calc(100% - 28px);
  }

  .btn {
    min-height: 44px;
  }

  .hero-actions,
  .beta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .metric {
    border-inline-start: 0;
    padding-inline-start: 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }

  .metric:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .studio-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .studio-tab {
    flex: none;
  }

  .accordion-body {
    padding: 0 16px 16px 16px;
  }
}
