/* ══════════════════════════════════════════════════════════════════
   GroupGPT — shared site stylesheet (single source of truth)
   Linked by every page. Change brand colors in :root below and the
   whole site updates. Brand: monochrome grayscale, dark-first.
   "Lux not crunchy" — no hue accent anywhere. The --purple-* tokens
   are LEGACY ALIASES kept for back-compat; they resolve to grey/black.
   ══════════════════════════════════════════════════════════════════ */

/* ── Font import ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Italiana&display=swap');

    /* ── Reset & tokens ───────────────────────────────────────── */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --rich-black:    #0F1218;
      --silver-lake:   #8d8d8d;
      --eggshell:      #F0EAD6;
      --white:         #ffffff;
      /* Monochrome brand — "lux not crunchy". Legacy purple-* names kept as grayscale aliases. */
      --accent:        #1a1a1a;
      --accent-soft:   #525252;
      --purple-mid:    #1a1a1a;
      --purple-light:  #525252;
      --purple-pale:   rgba(255,255,255,0.55);
      --purple-border: rgba(255,255,255,0.14);
      --text-main:     #1a1a1a;
      --text-muted:    #666666;
      --radius-sm:     8px;
      --radius-md:     12px;
      --radius-lg:     20px;
      --shadow-card:   0 8px 32px rgba(0,0,0,0.10);
      --shadow-dark:   0 8px 32px rgba(0,0,0,0.30);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'League Spartan', Geneva, Verdana, sans-serif;
      color: var(--text-main);
      background: var(--white);
      line-height: 1.6;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }
    ::selection { background: var(--accent); color: #fff; }

    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); }
    ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 4px; }

    /* ── Utility ──────────────────────────────────────────────── */
    .section { padding: 96px 24px; }
    .container { max-width: 1100px; margin: 0 auto; }

    .tag {
      display: inline-block;
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #1a1a1a;
      background: rgba(0,0,0,0.05);
      border: 1px solid rgba(0,0,0,0.14);
      border-radius: 99px;
      padding: 4px 14px;
      margin-bottom: 16px;
    }

    .section-title {
      font-family: 'League Spartan', sans-serif;
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 800;
      line-height: 1.1;
      margin-bottom: 16px;
      letter-spacing: -0.02em;
    }

    .section-sub {
      font-size: 1.05rem;
      color: var(--text-muted);
      max-width: 560px;
      line-height: 1.7;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      border-radius: var(--radius-sm);
      font-family: 'League Spartan', sans-serif;
      font-size: 0.88rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      cursor: pointer;
      border: none;
      transition: all 0.2s;
    }
    .btn-primary  { background: var(--accent); color: var(--white); }
    .btn-primary:hover { background: #000; transform: translateY(-2px); }
    .btn-outline  { background: transparent; color: var(--rich-black); border: 1.5px solid var(--rich-black); }
    .btn-outline:hover { background: rgba(0,0,0,0.05); transform: translateY(-2px); }
    .btn-purple   { background: var(--accent); color: var(--white); }
    .btn-purple:hover { background: #000; transform: translateY(-2px); }

    /* ── Nav ──────────────────────────────────────────────────── */
    nav {
      position: sticky; top: 0; z-index: 100;
      background: #ffffff;
      border-bottom: 1px solid rgba(0,0,0,0.07);
    }
    .nav-inner {
      width: 100%; padding: 0 40px;
      height: 64px; display: flex; align-items: center; justify-content: space-between;
    }
    .nav-logo {
      display: flex; align-items: center; gap: 10px;
      font-family: 'League Spartan', sans-serif;
      font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em;
      color: var(--rich-black);
    }
    .nav-logo img { width: 34px; height: 34px; border-radius: 7px; }
    .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
    .nav-links a {
      font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em;
      text-transform: uppercase; color: var(--text-muted); transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--rich-black); }
    .nav-cta { display: flex; align-items: center; gap: 12px; }
    .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
    .hamburger span { display: block; width: 22px; height: 2px; background: var(--text-main); border-radius: 2px; }

    /* ── Hero ─────────────────────────────────────────────────── */
    .hero {
      background: linear-gradient(160deg, #0d0d0d 0%, #1c1c1c 50%, #0F1218 100%);
      color: var(--white); padding: 120px 24px 100px; text-align: center;
      position: relative; overflow: hidden;
    }
    .hero::before {
      content: ''; position: absolute; width: 700px; height: 700px;
      background: radial-gradient(circle, rgba(255,255,255,0.07) 0%, transparent 70%);
      top: -200px; left: 50%; transform: translateX(-50%); pointer-events: none;
    }
    .hero::after {
      content: ''; position: absolute; width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
      bottom: -100px; right: 10%; pointer-events: none;
    }
    .hero-content { position: relative; z-index: 1; }
    .hero-logo {
      width: 80px; height: 80px; border-radius: 20px;
      margin: 0 auto 28px;
      box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 12px 40px rgba(0,0,0,0.4);
    }
    .hero-eyebrow {
      font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em;
      text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 20px;
    }
    .hero-title {
      font-family: 'League Spartan', sans-serif;
      font-size: clamp(3.2rem, 9vw, 6.5rem);
      font-weight: 800; line-height: 0.95; letter-spacing: -0.03em;
      margin-bottom: 24px;
      background: linear-gradient(135deg, #ffffff 30%, rgba(200,200,200,0.85) 100%);
      -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    }
    .hero-sub {
      font-size: 1.15rem; color: rgba(255,255,255,0.6);
      max-width: 540px; margin: 0 auto 40px; line-height: 1.7;
    }
    .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
    .hero-actions .btn-primary { background: #fff; color: #0F1218; }
    .hero-actions .btn-primary:hover { background: rgba(255,255,255,0.85); }
    .hero-actions .btn-outline { color: rgba(255,255,255,0.75); border-color: rgba(255,255,255,0.2); }
    .hero-actions .btn-outline:hover { background: rgba(255,255,255,0.08); color: #fff; }
    .hero-badge {
      margin-top: 56px; display: flex; align-items: center;
      justify-content: center; gap: 32px; flex-wrap: wrap;
    }
    .hero-stat { display: flex; flex-direction: column; align-items: center; }
    .hero-stat-num {
      font-family: 'League Spartan', sans-serif;
      font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em;
      color: var(--white); line-height: 1;
    }
    .hero-stat-label {
      font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; color: rgba(255,255,255,0.38); margin-top: 4px;
    }
    .hero-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.12); }

    /* ── Demo section ─────────────────────────────────────────── */
    .demo-section { background: #f7f7f9; }
    .demo-wrap {
      display: grid; grid-template-columns: 1fr 1.5fr;
      gap: 64px; align-items: center;
    }
    /* Let grid items shrink below their content's intrinsic min-width so the
       mockup column can't force the track (and the page) wider than the viewport. */
    .demo-wrap > * { min-width: 0; }
    .demo-feature-list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
    .demo-feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
    .feat-icon {
      width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--radius-sm);
      background: var(--rich-black); display: flex; align-items: center; justify-content: center; font-size: 1rem;
    }
    .feat-text strong { display: block; margin-bottom: 2px; }
    .feat-text span { color: var(--text-muted); font-size: 0.88rem; }

    /* ── App mockup (pixel-matched to real UI) ────────────────── */
    .app-mockup {
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: var(--shadow-dark);
      border: 1px solid #e0e0e0;
      background: #fff;
      font-family: Geneva, Verdana, sans-serif;
      font-size: 13px;
    }

    /* ── Demo video (clickable, autoplay-muted) ───────────────── */
    .demo-video {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: var(--shadow-dark);
      background: #000;
      cursor: pointer;
      outline: none;
    }
    .demo-video:focus-visible {
      box-shadow: var(--shadow-dark), 0 0 0 3px var(--rich-black);
    }
    .demo-video-el {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    /* Mute toggle — sits above the click-to-open layer */
    .demo-video-mute {
      position: absolute;
      bottom: 12px; right: 12px;
      z-index: 2;
      width: 40px; height: 40px;
      display: flex; align-items: center; justify-content: center;
      border: none; border-radius: 50%;
      background: rgba(0,0,0,0.55);
      color: #fff; font-size: 18px; line-height: 1;
      cursor: pointer;
      transition: background 0.15s ease, transform 0.15s ease;
      -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    }
    .demo-video-mute:hover { background: rgba(0,0,0,0.75); transform: scale(1.06); }
    /* Default: muted → show the muted icon; hide the unmuted icon */
    .demo-video-mute .demo-icon-unmuted { display: none; }
    .demo-video.is-unmuted .demo-icon-muted { display: none; }
    .demo-video.is-unmuted .demo-icon-unmuted { display: inline; }
    /* Click-to-open hint */
    .demo-video-cta {
      position: absolute;
      left: 12px; bottom: 12px;
      z-index: 1;
      display: flex; align-items: center;
      padding: 8px 14px;
      border-radius: var(--radius-sm);
      background: rgba(0,0,0,0.55);
      color: #fff; font-size: 0.82rem; font-weight: 600;
      letter-spacing: 0.01em;
      pointer-events: none;
      opacity: 0.9;
      transition: opacity 0.15s ease, transform 0.15s ease;
      -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    }
    .demo-video:hover .demo-video-cta { opacity: 1; transform: translateY(-2px); }

    /* Window chrome dots */
    .mock-chrome {
      display: flex; align-items: center; gap: 6px;
      padding: 10px 14px;
      background: #f0f0f0;
      border-bottom: 1px solid #ddd;
    }
    .dot { width: 12px; height: 12px; border-radius: 50%; }
    .dot-r { background: #ff5f57; }
    .dot-y { background: #febc2e; }
    .dot-g { background: #28c840; }

    /* Logo bar */
    .mock-logo-bar {
      display: flex; flex-direction: column; justify-content: center; align-items: center;
      gap: 3px; padding: 10px 20px 8px;
      background: #fff;
      position: relative;
    }
    .mock-logo-bar img { width: 100px; height: auto; }
    .mock-room-path {
      font-size: 0.62rem; font-weight: 600; letter-spacing: 0.01em; color: #1a1a1a;
    }
    .mock-username {
      position: absolute; right: 16px;
      font-size: 0.78rem; font-weight: 500; color: #1a1a1a;
      padding: 5px 10px; border-radius: 6px; cursor: pointer;
    }
    .mock-username:hover { background: rgba(0,0,0,0.1); }

    /* App header: online count + user section */
    .mock-app-header {
      display: flex; justify-content: space-between; align-items: center;
      margin: 0 20px 8px; gap: 20px;
    }
    .mock-user-count {
      font-size: 0.72rem; padding: 3px 10px; border-radius: 20px;
      background: transparent; color: #1a1a1a; font-weight: 700;
      display: flex; align-items: center; gap: 5px;
      border: 1px solid transparent;
    }

    /* Top controls: mode buttons + subscription panel */
    .mock-top-controls {
      display: flex; justify-content: space-between; align-items: center;
      margin: 0 20px 12px; gap: 20px; min-height: 24px;
    }
    .mock-mode-btns { display: flex; align-items: center; gap: 8px; }
    .mock-mode-btn {
      padding: 0 14px; height: 24px; line-height: 24px;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 6px; background: var(--rich-black);
      color: #fff; font-size: 0.72rem; font-weight: 500; font-family: Geneva, Verdana, sans-serif;
      min-width: 110px; text-align: center; cursor: pointer;
      box-shadow: 0 8px 32px rgba(0,0,0,0.2);
      display: flex; align-items: center; justify-content: center; gap: 6px;
    }
    .mock-mode-btn.chat-active {
      border-color: #1a1a1a;
      box-shadow: 0 0 0 1px #1a1a1a;
    }
    .mock-sub-panel {
      background: var(--rich-black); border-radius: 6px;
      padding: 0 12px; height: 24px;
      border: 1px solid rgba(255,255,255,0.1);
      display: flex; align-items: center; gap: 10px;
      font-size: 0.68rem; color: #fff;
    }
    .mock-sub-username { font-weight: 500; font-size: 0.72rem; white-space: nowrap; }
    .mock-sub-tier {
      background: rgba(255,255,255,0.1); padding: 1px 7px;
      border-radius: 4px; font-size: 0.65rem; font-weight: 500;
    }
    .mock-sub-tokens { opacity: 0.7; font-size: 0.65rem; white-space: nowrap; }
    .mock-upgrade-btn {
      height: 16px; padding: 0 10px;
      background: rgba(255,255,255,0.1); border: none; border-radius: 4px;
      color: #fff; font-size: 0.65rem; font-weight: 500; cursor: pointer;
      font-family: Geneva, Verdana, sans-serif;
    }
    .mock-upgrade-btn:hover { background: #1a1a1a; }

    /* Chat layout (flex: content + sidebar) */
    .mock-chat-layout {
      display: flex; height: 512px; overflow: hidden;
      border: 1px solid #e0e0e0; margin: 0 20px 20px;
      border-radius: var(--radius-sm);
      box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    }

    /* White chat area (left) */
    .mock-chat-area {
      flex: 1; display: flex; flex-direction: column; overflow: hidden;
      background: #fff;
    }
    .mock-messages {
      flex: 1; overflow-y: hidden; padding: 14px 16px;
      display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
    }
    /* Live chat entrance — JS reveals each message top-to-bottom and the
       container scrolls down to follow the newest one. */
    .mock-messages.animate { justify-content: flex-start; }
    .mock-messages.animate .mock-msg { display: none; }
    .mock-messages.animate .mock-msg.shown {
      display: block;
      animation: mockMsgIn 0.4s cubic-bezier(0.22,1,0.36,1) both;
    }
    @keyframes mockMsgIn {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @media (prefers-reduced-motion: reduce) {
      .mock-messages.animate .mock-msg { display: block; }
      .mock-messages.animate .mock-msg.shown { animation: none; }
    }
    .mock-msg {
      padding: 10px 12px; border-radius: 8px;
      max-width: 82%; width: fit-content;
      outline: 1px solid rgba(255,255,255,0.1);
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .mock-msg.user {
      background: #4a3aaa; align-self: flex-end;
    }
    .mock-msg.bot {
      background: rgba(15,18,24,0.9); align-self: flex-start;
      border-left: 3px solid #1a1a1a; max-width: 88%;
    }
    .mock-msg.other {
      background: #4a3aaa; align-self: flex-end;
    }
    .mock-msg.system {
      background: rgba(100,100,100,0.6); align-self: center;
      text-align: center; font-style: italic; max-width: 90%;
    }
    .mock-msg-header {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 5px;
    }
    .mock-msg-sender { font-weight: 500; color: #fff; font-size: 0.75rem; }
    .mock-msg-time { font-size: 0.65rem; color: rgba(255,255,255,0.5); margin-left: 8px; }
    .mock-msg-body { color: rgba(255,255,255,0.95); font-size: 0.8rem; line-height: 1.5; }
    .mock-msg.system .mock-msg-body { color: rgba(255,255,255,0.9); }

    /* Input bar */
    .mock-input-bar {
      display: flex; gap: 8px; padding: 10px 14px;
      background: #f5f5f5; border-top: 1px solid #e0e0e0;
      border-bottom-left-radius: var(--radius-sm);
      align-items: center; flex-wrap: nowrap;
    }
    .mock-input-group { display: flex; gap: 8px; flex: 1; }
    .mock-input-field {
      flex: 1; background: #fff; border: 1px solid #e0e0e0;
      border-radius: 6px; padding: 7px 12px;
      font-size: 0.78rem; font-family: Geneva, Verdana, sans-serif;
      color: #333;
    }
    .mock-input-field::placeholder { color: rgba(51,51,51,0.5); }
    .mock-send-btn {
      background: #1a1a1a; color: #fff; border: none;
      border-radius: 8px; padding: 0 16px; height: 34px; font-size: 0.74rem;
      font-weight: 600; cursor: pointer; flex-shrink: 0;
      letter-spacing: 0.3px; font-family: Geneva, Verdana, sans-serif;
      display: inline-flex; align-items: center; gap: 6px;
    }
    .mock-send-btn .mico { width: 13px; height: 13px; }
    .mock-dl-btn {
      background: #1a1a1a; color: #fff; border: none; border-radius: 6px;
      width: 34px; height: 34px; font-size: 1rem; cursor: pointer;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }

    /* Dark room sidebar (right) */
    .mock-sidebar {
      width: 190px; min-width: 190px;
      background: rgba(15,15,30,0.92);
      border-left: 1px solid rgba(255,255,255,0.25);
      display: flex; flex-direction: column;
      padding: 10px 8px 0; gap: 6px;
      overflow: hidden;
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }
    .mock-sidebar-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 0 4px 8px;
      border-bottom: 1px solid rgba(255,255,255,0.2);
    }
    .mock-sidebar-title {
      font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; color: rgba(255,255,255,0.55);
    }
    .mock-sidebar-header-btns { display: flex; align-items: center; gap: 4px; }
    .mock-sidebar-btn {
      width: 22px; height: 22px; border-radius: 5px;
      border: 1px solid rgba(255,255,255,0.4);
      background: rgba(255,255,255,0.35); color: #e0e0e0;
      font-size: 0.95rem; cursor: pointer; display: flex;
      align-items: center; justify-content: center;
    }
    .mock-sidebar-btn.minimize {
      background: rgba(255,255,255,0.06);
      border-color: rgba(255,255,255,0.1);
      color: rgba(200,180,255,0.6);
    }
    .mock-room-list {
      list-style: none; display: flex; flex-direction: column; gap: 1px;
      flex: 1; overflow-y: hidden;
    }
    .mock-room-item {
      display: flex; align-items: center; justify-content: space-between;
      border-radius: 7px; padding: 2px 4px; transition: background 0.15s;
    }
    .mock-room-item.active,
    .mock-room-item:hover { background: rgba(255,255,255,0.2); }
    .mock-room-name-btn {
      flex: 1; background: none; border: none;
      color: rgba(220,210,255,0.85); font-size: 0.78rem;
      text-align: left; cursor: pointer; padding: 5px 4px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
      max-width: 108px; font-family: Geneva, Verdana, sans-serif;
    }
    .mock-room-item.active .mock-room-name-btn { color: #e0e0e0; font-weight: 600; }
    .mock-room-actions { display: flex; gap: 1px; }
    .mock-room-action {
      background: none; border: none; cursor: pointer;
      display: inline-flex; padding: 3px; opacity: 0.5;
      color: #cbb8ff; border-radius: 4px; transition: opacity 0.15s;
    }
    .mock-room-action svg { width: 13px; height: 13px; display: block; }
    .mock-room-action:hover { opacity: 1; background: rgba(255,255,255,0.08); }
    .mock-sidebar-btn svg { width: 13px; height: 13px; }
    .mock-invite-section {
      display: flex; gap: 4px; padding: 8px 0 8px;
      border-top: 1px solid rgba(255,255,255,0.15); flex-shrink: 0;
    }
    .mock-invite-input {
      flex: 1; padding: 5px 7px; border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.35);
      background: rgba(255,255,255,0.05); color: #ddd;
      font-size: 0.65rem; outline: none; font-family: Geneva, Verdana, sans-serif;
    }
    .mock-invite-input::placeholder { color: rgba(200,180,255,0.35); }
    .mock-join-btn {
      padding: 5px 9px; background: rgba(255,255,255,0.4);
      border: 1px solid rgba(255,255,255,0.4); border-radius: 6px;
      color: #e0e0e0; font-size: 0.65rem; cursor: pointer; font-family: Geneva, Verdana, sans-serif;
    }

    /* ── Mockup: real app icons (from groupgpt-cortex/src/assets/icons) ──
       Monochrome potrace SVGs tinted to currentColor via CSS mask. */
    .mico {
      display: inline-block; width: 14px; height: 14px; flex-shrink: 0;
      vertical-align: -2px;
      background-color: currentColor;
      -webkit-mask: var(--mi) center / contain no-repeat;
              mask: var(--mi) center / contain no-repeat;
    }
    .mico-sm { width: 13px; height: 13px; cursor: pointer; }
    .mico-chat      { --mi: url(assets/icons/019-chat.svg); }
    .mico-users     { --mi: url(assets/icons/012-group.svg); }
    .mico-chats     { --mi: url(assets/icons/048-chats.svg); }
    .mico-translate { --mi: url(assets/icons/032-translating.svg); }
    .mico-refresh   { --mi: url(assets/icons/024-refresh.svg); }
    .mico-ai        { --mi: url(assets/icons/020-brain.svg); }
    .mico-bin       { --mi: url(assets/icons/021-bin.svg); }
    .mico-send      { --mi: url(assets/icons/031-send.svg); }
    .mico-command   { --mi: url(assets/icons/037-commands.svg); }
    .mico-eye       { --mi: url(assets/icons/014-eye.svg); }
    .mico-reply     { --mi: url(assets/icons/034-reply.svg); }
    .mico-edit      { --mi: url(assets/icons/033-editing.svg); }
    .mico-link      { --mi: url(assets/icons/010-link.svg); }
    .mico-lock      { --mi: url(assets/icons/010-padlock.svg); }

    /* Published-chats link in the top controls */
    .mock-chats-link {
      display: flex; align-items: center; gap: 5px;
      color: #1a1a1a; font-weight: 700; font-size: 0.72rem;
      padding: 3px 8px; cursor: pointer;
    }

    /* Private-room toolbar (Translate / refresh / Neurons / Clear) */
    .mock-toolbar {
      display: flex; align-items: center; gap: 8px;
      padding: 9px 12px; background: #fff;
      border-bottom: 1px solid #eee; flex-wrap: wrap;
    }
    .mock-tool-btn {
      display: flex; align-items: center; gap: 5px;
      font-size: 0.68rem; font-weight: 600;
      padding: 5px 11px; border-radius: 16px; cursor: pointer;
      font-family: Geneva, Verdana, sans-serif;
      border: 1px solid rgba(0,0,0,0.18);
      background: rgba(0,0,0,0.04); color: #1a1a1a;
    }
    .mock-tool-btn.clear {
      color: #d6455d; border-color: rgba(214,69,93,0.3);
      background: rgba(214,69,93,0.06);
    }
    .mock-tool-icon {
      display: flex; align-items: center; justify-content: center;
      width: 27px; height: 27px; border-radius: 50%;
      border: 1px solid #e4e4ee; background: #fff; color: #8a8a98; cursor: pointer;
    }

    /* Per-message action icons (edit / reply / delete) */
    .mock-msg-actions {
      display: flex; gap: 9px; justify-content: flex-end;
      margin-top: 7px; color: rgba(255,255,255,0.45);
    }
    .mock-msg.system .mock-msg-actions { display: none; }
    .mock-link { color: #cdbcff; text-decoration: underline; word-break: break-all; }

    /* YouTube "Watch together" embed card */
    .mock-yt-card {
      width: 240px; max-width: 100%; margin-top: 4px;
      border-radius: 8px; overflow: hidden;
      background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08);
    }
    .mock-yt-thumb {
      position: relative; aspect-ratio: 16 / 9;
      background: linear-gradient(135deg, #4a2f7a 0%, #1a1530 55%, #3a1f5e 100%);
      display: flex; align-items: center; justify-content: center;
    }
    .mock-yt-titles { position: absolute; top: 8px; left: 10px; right: 10px; }
    .mock-yt-title {
      color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1.2;
      text-shadow: 0 1px 4px rgba(0,0,0,0.7);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mock-yt-channel {
      color: rgba(255,255,255,0.85); font-size: 0.62rem; margin-top: 2px;
      text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    }
    .mock-yt-play {
      width: 46px; height: 32px; border-radius: 7px; background: #ff0000;
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 2px 10px rgba(0,0,0,0.45);
    }
    .mock-yt-play svg { width: 22px; height: 22px; }
    .mock-yt-ep {
      position: absolute; bottom: 6px; left: 10px;
      color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
      text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    }
    .mock-yt-footer {
      display: flex; align-items: center; justify-content: space-between;
      padding: 7px 9px;
    }
    .mock-yt-watch {
      display: flex; align-items: center; gap: 5px;
      font-size: 0.7rem; color: rgba(255,255,255,0.78);
    }
    .mock-yt-actions { display: flex; gap: 9px; color: rgba(255,255,255,0.45); }

    /* Input bar buttons */
    .mock-input-field {
      height: 34px; box-sizing: border-box; padding: 0 12px; align-self: center;
      min-width: 0; /* allow the composer row to shrink below the input's intrinsic width on mobile */
    }
    .mock-chevron-btn {
      width: 30px; height: 34px; flex-shrink: 0; cursor: pointer;
      border-radius: 8px; border: 1px solid rgba(0,0,0,0.2);
      background: #fff; color: #1a1a1a;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.1rem; font-weight: 700; line-height: 1; padding-bottom: 2px;
    }
    .mock-cmd-btn {
      width: 38px; height: 34px; flex-shrink: 0; cursor: pointer;
      border-radius: 8px; border: none; background: #1a1a1a; color: #fff;
      display: flex; align-items: center; justify-content: center;
    }

    /* Collapsed room sidebar (thin toggle strip) */
    .mock-sidebar-collapsed {
      width: 26px; min-width: 26px;
      background: rgba(15,15,30,0.92);
      border-left: 1px solid rgba(255,255,255,0.25);
      display: flex; align-items: flex-start; justify-content: center;
      padding-top: 8px;
    }
    .mock-sidebar-expand {
      width: 20px; height: 32px; border-radius: 5px; cursor: pointer;
      border: 1px solid rgba(255,255,255,0.4);
      background: rgba(255,255,255,0.35); color: #e0e0e0;
      display: flex; align-items: center; justify-content: center;
    }

    /* ── Features grid ────────────────────────────────────────── */
    .features-grid {
      display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px; margin-top: 56px;
    }
    .feature-card {
      background: var(--white); border: 1px solid #e8e8f0;
      border-radius: var(--radius-md); padding: 32px 28px;
      box-shadow: var(--shadow-card); transition: transform 0.2s, box-shadow 0.2s;
    }
    .feature-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
    .feature-icon {
      width: 44px; height: 44px; border-radius: var(--radius-sm);
      background: var(--rich-black); display: flex; align-items: center;
      justify-content: center; font-size: 1.3rem; margin-bottom: 20px;
    }
    .feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
    .feature-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }

    /* ── Pricing ──────────────────────────────────────────────── */
    .pricing-section { background: #f7f7f9; }
    .pricing-grid {
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 18px; margin-top: 56px;
    }
    .pricing-card.enterprise {
      background: var(--rich-black);
      border-color: rgba(255,255,255,0.14); color: var(--white);
    }
    .pricing-card.enterprise .pricing-tier { color: rgba(255,255,255,0.55); }
    .pricing-card.enterprise .pricing-period { color: rgba(255,255,255,0.45); }
    .pricing-card.enterprise .pricing-tokens {
      background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22);
      color: rgba(255,255,255,0.9);
    }
    .pricing-card.enterprise .pricing-features li { color: rgba(255,255,255,0.8); }
    .pricing-card.enterprise .pricing-features li::before { color: rgba(255,255,255,0.7); }
    .pricing-card {
      background: var(--white); border: 1px solid #e8e8f0;
      border-radius: var(--radius-md); padding: 28px 20px;
      box-shadow: var(--shadow-card); position: relative;
      display: flex; flex-direction: column;
    }
    .pricing-card.featured {
      background: var(--rich-black); border-color: rgba(255,255,255,0.14);
      color: var(--white);
    }
    .pricing-badge {
      position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
      background: #fff; color: #0F1218;
      font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; padding: 3px 12px; border-radius: 99px;
      white-space: nowrap;
    }
    .pricing-emoji { font-size: 1.4rem; margin-bottom: 8px; }
    .pricing-tier {
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--silver-lake); margin-bottom: 10px;
    }
    .pricing-card.featured .pricing-tier { color: rgba(255,255,255,0.55); }
    .pricing-price {
      font-family: 'League Spartan', sans-serif;
      font-size: 2.4rem; font-weight: 800; line-height: 1;
      letter-spacing: -0.03em; margin-bottom: 4px;
    }
    .pricing-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
    .pricing-card.featured .pricing-period { color: rgba(255,255,255,0.45); }
    .pricing-tokens {
      font-size: 0.78rem; font-weight: 700; color: #1a1a1a;
      margin-bottom: 20px;
      background: rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.12);
      border-radius: 6px; padding: 4px 10px; display: inline-block;
    }
    .pricing-card.featured .pricing-tokens {
      background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.22);
      color: rgba(255,255,255,0.9);
    }
    .pricing-features {
      list-style: none; display: flex; flex-direction: column;
      gap: 8px; margin-bottom: 24px; flex: 1;
    }
    .pricing-features li {
      font-size: 0.82rem; display: flex; align-items: flex-start; gap: 7px; line-height: 1.4;
    }
    .pricing-features li::before { content: '✓'; color: var(--silver-lake); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
    .pricing-card.featured .pricing-features li::before { color: rgba(255,255,255,0.7); }
    .pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.8); }
    .pricing-card .btn { width: 100%; justify-content: center; margin-top: auto; }

    /* ── FAQ ──────────────────────────────────────────────────── */
    .faq-list {
      margin-top: 48px; border: 1px solid #e8e8f0;
      border-radius: var(--radius-md); overflow: hidden;
    }
    .faq-item { border-bottom: 1px solid #e8e8f0; }
    .faq-item:last-child { border-bottom: none; }
    .faq-question {
      width: 100%; text-align: left; background: var(--white); border: none;
      padding: 20px 28px; font-family: 'League Spartan', sans-serif;
      font-size: 0.95rem; font-weight: 700; color: var(--text-main);
      cursor: pointer; display: flex; justify-content: space-between;
      align-items: center; gap: 16px; transition: background 0.15s;
    }
    .faq-question:hover { background: #fafafa; }
    .faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--silver-lake); transition: transform 0.2s; }
    .faq-item.open .faq-chevron { transform: rotate(180deg); }
    .faq-answer {
      display: none; padding: 0 28px 20px; font-size: 0.92rem;
      color: var(--text-muted); line-height: 1.7; background: var(--white);
    }
    .faq-item.open .faq-answer { display: block; }

    /* ── Build Log ────────────────────────────────────────────── */
    .buildlog-section { background: #f7f7f9; }
    .buildlog-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: flex-start; }
    .buildlog-sticky { position: sticky; top: 88px; }
    .timeline { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
    .tl-item { display: flex; gap: 20px; padding-bottom: 32px; }
    .tl-item:last-child { padding-bottom: 0; }
    .tl-item:last-child .tl-line { display: none; }
    .tl-left { display: flex; flex-direction: column; align-items: center; width: 28px; flex-shrink: 0; }
    .tl-dot {
      width: 12px; height: 12px; border-radius: 50%; background: var(--rich-black);
      border: 2px solid #f7f7f9; box-shadow: 0 0 0 2px var(--rich-black); flex-shrink: 0;
    }
    .tl-dot.purple {
      background: var(--accent);
      box-shadow: 0 0 0 2px var(--accent), 0 0 8px rgba(0,0,0,0.25);
    }
    .tl-dot.silver { background: var(--silver-lake); box-shadow: 0 0 0 2px var(--silver-lake); }
    .tl-line { width: 1px; flex: 1; min-height: 24px; background: #e0e0ea; margin-top: 4px; }
    .tl-content { flex: 1; }
    .tl-date {
      font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
      text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
    }
    .tl-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
    .tl-body { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
    .tl-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .pill {
      font-size: 0.67rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
      padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,0.1);
      color: var(--silver-lake); border: 1px solid rgba(0,0,0,0.2);
    }
    .pill.purple {
      background: rgba(0,0,0,0.06); color: #1a1a1a;
      border-color: rgba(0,0,0,0.18);
    }

    /* ── Contact ──────────────────────────────────────────────── */
    .contact-section {
      background: linear-gradient(160deg, #0d0d0d 0%, #1c1c1c 100%); color: var(--white);
    }
    .contact-section .section-title { color: var(--white); text-align: center; }
    .contact-section .section-sub { color: rgba(255,255,255,0.55); text-align: center; max-width: 100%; }
    .contact-section .tag { display: block; text-align: center; }
    .contact-grid { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: start; margin-top: 56px; max-width: 640px; margin-left: auto; margin-right: auto; }
    .contact-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 28px; }
    .contact-info-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .contact-info-item:last-child { border-bottom: none; }
    .ci-icon {
      width: 36px; height: 36px; border-radius: var(--radius-sm);
      background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
      display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
    }
    .ci-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
    .ci-value { font-size: 0.9rem; color: rgba(255,255,255,0.85); }
    .contact-form { display: flex; flex-direction: column; gap: 16px; }
    .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    .form-field { display: flex; flex-direction: column; gap: 6px; }
    .form-field label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
    .form-field input, .form-field textarea, .form-field select {
      background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
      border-radius: var(--radius-sm); padding: 11px 14px;
      color: rgba(255,255,255,0.9); font-size: 0.9rem; font-family: 'League Spartan', sans-serif;
      transition: border-color 0.2s, background 0.2s;
    }
    .form-field input:focus, .form-field textarea:focus, .form-field select:focus {
      outline: none; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.09);
    }
    .form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.3); }
    .form-field select { cursor: pointer; }
    .form-field textarea { resize: vertical; min-height: 120px; }
    .form-submit {
      background: #fff; color: #0F1218; border: none;
      border-radius: var(--radius-sm); padding: 14px 28px;
      font-family: 'League Spartan', sans-serif; font-size: 0.9rem; font-weight: 700;
      letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: all 0.2s;
      display: flex; align-items: center; gap: 8px; justify-content: center;
    }
    .form-submit:hover { background: rgba(255,255,255,0.85); transform: translateY(-2px); }
    .form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
    .form-success { display: none; text-align: center; padding: 32px; color: rgba(255,255,255,0.8); }
    .form-success .success-icon { font-size: 2.5rem; margin-bottom: 12px; }

    /* ── Footer ───────────────────────────────────────────────── */
    /* ── Stay-in-the-loop CTA band ─────────────────────────────────── */
    .newsletter-band { background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%); color: var(--white); padding: 64px 24px; text-align: center; }
    .newsletter-inner { max-width: 620px; margin: 0 auto; }
    .newsletter-band h2 { font-family: 'League Spartan', sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.02em; }
    .newsletter-band p { color: rgba(255,255,255,0.85); font-size: 1.02rem; margin: 0 0 28px; }
    .newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
    .newsletter-form input[type="email"] { flex: 1 1 280px; min-width: 0; padding: 14px 18px; border: 1px solid rgba(255,255,255,0.4); border-radius: var(--radius-sm); background: rgba(255,255,255,0.12); color: var(--white); font-size: 1rem; font-family: 'League Spartan', sans-serif; }
    .newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
    .newsletter-form input[type="email"]:focus { outline: none; border-color: var(--white); background: rgba(255,255,255,0.18); }
    .newsletter-form button { padding: 14px 28px; border: none; border-radius: var(--radius-sm); background: #fff; color: #0F1218; font-family: 'League Spartan', sans-serif; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform 0.2s, background 0.2s; }
    .newsletter-form button:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255,255,255,0.85); }
    .newsletter-form button:disabled { opacity: 0.6; cursor: default; }
    .newsletter-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
    .newsletter-msg { margin-top: 18px; min-height: 1.2em; font-weight: 600; color: var(--white); }
    .newsletter-msg.error { color: #ffd7d7; }
    footer { background: var(--rich-black); color: rgba(255,255,255,0.5); padding: 48px 24px; }
    .footer-inner {
      max-width: 1100px; margin: 0 auto;
      display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
    }
    .footer-logo {
      font-family: 'League Spartan', sans-serif; font-size: 1.3rem; font-weight: 800;
      letter-spacing: -0.02em; color: rgba(255,255,255,0.85);
      display: flex; align-items: center; gap: 10px;
    }
    .footer-logo img { width: 28px; height: 28px; border-radius: 6px; opacity: 0.9; }
    .footer-links { display: flex; flex-wrap: wrap; gap: 28px; list-style: none; }
    .footer-links a { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; transition: color 0.2s; }
    .footer-links a:hover { color: rgba(255,255,255,0.9); }
    .footer-copy { font-size: 0.8rem; }

    /* ── Responsive ───────────────────────────────────────────── */
    @media (max-width: 1050px) {
      .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 900px) {
      .demo-wrap { grid-template-columns: 1fr; }
      .app-mockup { max-width: 560px; margin: 0 auto; }
      .demo-video { max-width: 560px; margin: 0 auto; }
      .buildlog-inner { grid-template-columns: 1fr; }
      .buildlog-sticky { position: static; }
    }
    @media (max-width: 700px) {
      .nav-inner { padding: 0 16px; }
      .nav-logo { font-size: 1.1rem; gap: 7px; }
      .nav-logo img { width: 28px; height: 28px; }
      .nav-cta .btn { padding: 9px 16px; font-size: 0.78rem; }
      .nav-links { display: none; }
      .nav-cta .btn-outline { display: none; }
      .hamburger { display: flex; }
      .hero { padding: 80px 20px 72px; }
      .section { padding: 72px 20px; }
      .form-row { grid-template-columns: 1fr; }
      .hero-badge { gap: 20px; }
      .hero-divider { display: none; }
      .pricing-grid { grid-template-columns: 1fr 1fr; }
      footer { padding: 40px 20px; }
      .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
      .footer-links { gap: 14px 22px; }
      /* Keep the full desktop two-pane shape on mobile — just scale it down
         (see scaleMock() in the inline script). The mockup keeps its 720px
         design width and is transform-scaled to fit the column. */
      .mock-scaler { overflow: hidden; }
      .app-mockup {
        width: 720px; max-width: none; margin: 0;
        transform-origin: top left;
      }
    }
    @media (max-width: 480px) {
      .hero-title { font-size: 2.8rem; }
      .pricing-grid { grid-template-columns: 1fr; }
    }

    /* ── Mobile nav ───────────────────────────────────────────── */
    .mobile-nav {
      display: none; position: fixed; inset: 0;
      background: rgba(14,10,26,0.97); z-index: 200;
      flex-direction: column; align-items: center; justify-content: center; gap: 32px;
    }
    .mobile-nav.open { display: flex; }
    .mobile-nav a {
      font-family: 'League Spartan', sans-serif;
      font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: rgba(255,255,255,0.9);
    }
    .mobile-nav-close {
      position: absolute; top: 24px; right: 24px;
      background: none; border: none; color: rgba(255,255,255,0.6); font-size: 1.8rem; cursor: pointer;
    }
    .mobile-nav .btn-purple { font-size: 1rem; }

    /* ── Animations ───────────────────────────────────────────── */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .fade-up   { animation: fadeUp 0.6s ease both; }
    .fade-up-2 { animation: fadeUp 0.6s 0.12s ease both; }
    .fade-up-3 { animation: fadeUp 0.6s 0.24s ease both; }
    .fade-up-4 { animation: fadeUp 0.6s 0.36s ease both; }
