    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg:        #07080a;
      --bg-1:      #0f1012;
      --bg-2:      #171a1d;
      --bg-3:      #1f2328;
      --amber:     #f0a500;
      --amber-2:   #ffc94a;
      --amber-dim: #7a5100;
      --green:     #3ddc84;
      --red:       #ff5f57;
      --cyan:      #5bcefa;
      --text:      #d9dce1;
      --text-dim:  #626773;
      --border:    #252930;
      --border-2:  #303540;
      --font-mono: 'JetBrains Mono', monospace;
      --font-disp: 'Syne', sans-serif;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: var(--font-mono);
      font-size: 15px;
      line-height: 1.6;
      overflow-x: hidden;
    }

    /* ── NOISE TEXTURE ── */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
      opacity: 0.035;
      pointer-events: none;
      z-index: 9999;
    }

    /* ── SCROLLBAR ── */
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--bg); }
    ::-webkit-scrollbar-thumb { background: var(--amber-dim); border-radius: 3px; }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 3rem;
      height: 60px;
      background: rgba(7, 8, 10, 0.88);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }

    .nav-logo {
      font-family: var(--font-disp);
      font-weight: 800;
      font-size: 1.15rem;
      letter-spacing: 0.12em;
      color: #fff;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .nav-logo .logo-bracket {
      color: var(--amber);
      font-family: var(--font-mono);
      font-weight: 300;
      font-size: 1.1rem;
    }

    .nav-links {
      display: flex;
      gap: 2.5rem;
      list-style: none;
    }
    .nav-links a {
      color: var(--text-dim);
      text-decoration: none;
      font-size: 0.78rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--amber); }

    .nav-cta {
      background: var(--amber);
      color: #000;
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 0.75rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 0.5rem 1.2rem;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: background 0.2s, transform 0.1s;
    }
    .nav-cta:hover { background: var(--amber-2); transform: translateY(-1px); }

    /* ── HERO ── */
    .hero {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: center;
      padding: 6rem 5rem 4rem;
      padding-left: 6rem;
      position: relative;
      overflow: hidden;
    }

    /* Film sprocket decoration */
    .hero::before {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 32px;
      background:
        repeating-linear-gradient(
          to bottom,
          transparent 0px,
          transparent 20px,
          var(--bg-2) 20px,
          var(--bg-2) 22px,
          transparent 22px,
          transparent 50px
        );
      border-right: 1px solid var(--border);
    }
    .hero::after {
      content: '';
      position: absolute;
      left: 0; top: 0; bottom: 0;
      width: 32px;
      background:
        repeating-linear-gradient(
          to bottom,
          transparent 0px,
          transparent 26px,
          var(--border-2) 26px,
          var(--border-2) 42px,
          transparent 42px,
          transparent 68px
        );
    }

    /* Ambient glow */
    .hero-glow {
      position: absolute;
      width: 600px; height: 600px;
      background: radial-gradient(circle, rgba(240, 165, 0, 0.06) 0%, transparent 70%);
      top: -100px; right: -100px;
      pointer-events: none;
    }

    .hero-left { padding-left: 2rem; position: relative; z-index: 1; }

    .hero-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(240, 165, 0, 0.08);
      border: 1px solid rgba(240, 165, 0, 0.25);
      color: var(--amber);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      padding: 0.35rem 0.8rem;
      margin-bottom: 2rem;
    }
    .hero-tag::before { content: '▶'; font-size: 0.55rem; }

    h1 {
      font-family: var(--font-disp);
      font-size: clamp(3rem, 5vw, 4.5rem);
      font-weight: 800;
      line-height: 1.02;
      letter-spacing: -0.02em;
      color: #fff;
      margin-bottom: 1.5rem;
    }
    h1 .accent { color: var(--amber); }
    h1 .dim { color: var(--text-dim); }

    .hero-desc {
      color: var(--text-dim);
      font-size: 0.88rem;
      line-height: 1.8;
      max-width: 460px;
      margin-bottom: 2.5rem;
    }
    .hero-desc strong { color: var(--text); }

    .hero-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .btn-primary {
      background: var(--amber);
      color: #000;
      font-family: var(--font-mono);
      font-weight: 700;
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      padding: 0.85rem 2rem;
      border: none;
      cursor: pointer;
      text-decoration: none;
      transition: all 0.2s;
      position: relative;
      overflow: hidden;
    }
    .btn-primary::after {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255,255,255,0.15);
      opacity: 0;
      transition: opacity 0.2s;
    }
    .btn-primary:hover::after { opacity: 1; }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240, 165, 0, 0.25); }

    .btn-ghost {
      color: var(--text-dim);
      font-family: var(--font-mono);
      font-size: 0.8rem;
      letter-spacing: 0.08em;
      text-decoration: none;
      border-bottom: 1px solid var(--border);
      padding-bottom: 2px;
      transition: color 0.2s, border-color 0.2s;
    }
    .btn-ghost:hover { color: var(--text); border-color: var(--text-dim); }

    .hero-stats {
      display: flex;
      gap: 2rem;
      margin-top: 3rem;
      padding-top: 2rem;
      border-top: 1px solid var(--border);
    }
    .stat-item { display: flex; flex-direction: column; gap: 0.2rem; }
    .stat-num {
      font-family: var(--font-disp);
      font-size: 1.6rem;
      font-weight: 800;
      color: #fff;
    }
    .stat-num span { color: var(--amber); }
    .stat-label { font-size: 0.7rem; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }

    /* ── APP WINDOW MOCKUP ── */
    .hero-right { position: relative; z-index: 1; }

    .app-window {
      background: #1a1b1f;
      border: 1px solid #38393f;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 32px 80px rgba(0,0,0,0.75), 0 0 0 1px rgba(240,165,0,0.06);
      font-family: var(--font-mono);
      font-size: 0.7rem;
    }
    .app-titlebar {
      display: flex;
      align-items: center;
      background: #26272c;
      padding: 0 0 0 10px;
      height: 32px;
      border-bottom: 1px solid #38393f;
      gap: 8px;
      user-select: none;
    }
    .app-icon {
      width: 16px; height: 16px;
      background: #1976d2;
      border-radius: 3px;
      font-size: 0.5rem;
      color: white;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      font-weight: 700;
    }
    .app-win-title { font-size: 0.68rem; color: #c0c0c0; flex: 1; }
    .win-btns { display: flex; height: 32px; margin-left: auto; }
    .win-btn {
      width: 44px;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.62rem; color: #aaa; cursor: default;
    }
    .win-btn:hover { background: #3a3b40; }
    .win-btn-close:hover { background: #e81123; color: white; }

    .app-tabs {
      display: flex;
      background: #20212a;
      border-bottom: 1px solid #38393f;
      padding: 0 10px;
      gap: 2px;
    }
    .app-tab {
      padding: 7px 13px;
      font-size: 0.68rem;
      color: #888;
      cursor: pointer;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      white-space: nowrap;
      transition: color 0.2s;
    }
    .app-tab.active { color: #5ba4f5; border-bottom-color: #5ba4f5; }

    .app-body { background: #1a1b1f; min-height: 390px; position: relative; }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; }

    /* ── FILES PANEL ── */
    .files-panel { padding: 10px 14px 6px; }
    .app-row {
      display: flex; align-items: center; gap: 6px;
      margin-bottom: 6px; font-size: 0.67rem;
    }
    .app-row-label { color: #999; white-space: nowrap; }
    .app-textfield {
      flex: 1; min-width: 0;
      background: #111215; border: 1px solid #38393f;
      color: #c8c8c8; padding: 3px 7px;
      font-size: 0.63rem; font-family: var(--font-mono);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .app-btn {
      background: #1d6fb8; color: white; border: none;
      padding: 3px 11px; font-size: 0.64rem; font-family: var(--font-mono);
      cursor: pointer; border-radius: 3px; white-space: nowrap; flex-shrink: 0;
    }
    .app-radio-group { display: flex; align-items: center; gap: 10px; }
    .app-radio { display: flex; align-items: center; gap: 4px; color: #aaa; font-size: 0.67rem; }
    .radio-dot {
      width: 14px; height: 14px; border-radius: 50%;
      border: 2px solid #555;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .radio-dot.on { border-color: #1d6fb8; }
    .radio-dot.on::after { content:''; width:6px; height:6px; border-radius:50%; background:#1d6fb8; }

    .app-table-wrap { border: 1px solid #38393f; margin: 5px 0; overflow: hidden; }
    .app-table { width: 100%; border-collapse: collapse; font-size: 0.63rem; }
    .app-table th {
      background: #26272c; border-bottom: 1px solid #38393f;
      border-right: 1px solid #38393f; color: #999;
      padding: 4px 8px; font-weight: 400; text-align: left;
    }
    .app-table th:last-child { border-right: none; }
    .app-table td {
      border-bottom: 1px solid #25262a; border-right: 1px solid #25262a;
      color: #c0c0c0; padding: 4px 8px; font-family: var(--font-mono);
    }
    .app-table td:last-child { border-right: none; }
    .app-table tr:last-child td { border-bottom: none; }
    .app-table .chkcol { width: 22px; text-align: center; color: #1d6fb8; }
    .app-table .sizecol { width: 80px; text-align: right; white-space: nowrap; }
    .app-table .trackcol { width: 90px; }
    .app-table .statcol { width: 80px; }
    .st-pending   { color: #888; }
    .st-analyzing { color: var(--amber); }
    .st-ready     { color: #4ade80; }
    .st-encoding  { color: var(--cyan); }
    .st-done      { color: #4ade80; font-weight: 600; }
    .st-error     { color: var(--red); }

    .btn-row { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
    .btn-row2 { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
    .app-statusbar {
      border-top: 1px solid #38393f; padding: 4px 14px;
      font-size: 0.61rem; color: #666; background: #1a1b1f;
    }

    /* ── FFMPEG PANEL ── */
    .ffmpeg-panel { padding: 10px 14px 0; }
    .app-cmd-editor {
      background: #111215; border: 1px solid #38393f;
      color: #7dd3fc; font-size: 0.6rem; font-family: var(--font-mono);
      line-height: 1.6; padding: 7px 9px; height: 66px;
      overflow: hidden; margin-bottom: 8px; word-break: break-all;
    }
    .cmd-preview-header {
      display: flex; align-items: center;
      justify-content: space-between; margin-bottom: 3px;
    }
    .cmd-preview-label { font-size: 0.64rem; color: #888; font-weight: 600; }
    .app-cmd-preview {
      background: #111215; border: 1px solid #38393f;
      color: #9ca3af; font-size: 0.57rem; font-family: var(--font-mono);
      line-height: 1.6; padding: 6px 9px; height: 60px;
      overflow: hidden; margin-bottom: 7px; word-break: break-all;
    }
    .ph-row {
      display: flex; align-items: center; gap: 4px;
      flex-wrap: wrap; margin-bottom: 7px;
      font-size: 0.6rem; color: #888;
    }
    .ph-btn {
      background: #1d6fb8; color: white; font-size: 0.58rem;
      padding: 2px 7px; border-radius: 3px; white-space: nowrap;
    }
    .ff-controls {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 6px; flex-wrap: nowrap;
    }
    .app-check { display: flex; align-items: center; gap: 4px; color: #aaa; font-size: 0.65rem; }
    .check-box {
      width: 14px; height: 14px; border: 2px solid #1d6fb8;
      background: #1d6fb8; color: white;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.52rem; flex-shrink: 0;
    }
    .check-box.off { background: #111215; border-color: #555; }
    .suffix-lbl { color: #888; font-size: 0.64rem; white-space: nowrap; }
    .suffix-field {
      background: #111215; border: 1px solid #38393f;
      color: #c8c8c8; padding: 2px 7px;
      font-size: 0.63rem; font-family: var(--font-mono); width: 82px;
    }
    .encode-btns { margin-left: auto; display: flex; gap: 5px; flex-shrink: 0; }
    .btn-encode {
      background: #1d6fb8; color: white; border: none;
      padding: 3px 13px; font-size: 0.63rem; border-radius: 3px; cursor: pointer;
    }
    .btn-stop {
      background: #2e2f34; color: #888; border: none;
      padding: 3px 10px; font-size: 0.63rem; border-radius: 3px; cursor: pointer;
    }
    .app-prog-track {
      width: 100%; height: 5px;
      background: #26272c; border: 1px solid #38393f; overflow: hidden;
    }
    .app-prog-fill {
      height: 100%;
      background: linear-gradient(90deg, #1d6fb8, #5ba4f5);
      width: 0%; transition: width 0.55s ease;
    }
    .prog-status { font-size: 0.61rem; color: #777; text-align: center; padding: 3px 0 5px; }
    .log-header {
      display: flex; align-items: center; gap: 8px;
      padding: 5px 0 4px; border-top: 1px solid #38393f;
      font-size: 0.66rem; font-weight: 600; color: #ccc;
    }
    .app-log-area {
      background: #111215; border: 1px solid #38393f;
      padding: 6px 9px; font-size: 0.58rem; font-family: var(--font-mono);
      color: #888; line-height: 1.75; height: 88px; overflow: hidden;
    }
    .log-info    { color: #5ba4f5; }
    .log-success { color: #4ade80; }
    .log-warn    { color: var(--amber); }

    /* ── INSTALL STRIP ── */
    .install-strip {
      padding: 3.5rem 5rem;
      background: var(--bg-1);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .install-strip h2 { margin-bottom: 0.5rem; }
    .install-strip .section-sub { margin-top: 0.75rem; max-width: 640px; }
    .install-pre {
      margin-top: 1.5rem;
      background: var(--bg);
      border: 1px solid var(--border);
      padding: 1.25rem 1.5rem;
      font-size: 0.78rem;
      color: var(--cyan);
      line-height: 1.9;
      overflow-x: auto;
      white-space: pre-wrap;
      word-break: break-word;
    }

    /* ── SECTION COMMON ── */
    section { padding: 7rem 5rem; }

    .section-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      color: var(--amber);
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      margin-bottom: 1.2rem;
    }
    .section-tag::before { content: '//'; color: var(--amber-dim); }

    h2 {
      font-family: var(--font-disp);
      font-size: clamp(2rem, 3.5vw, 3rem);
      font-weight: 800;
      line-height: 1.1;
      color: #fff;
      letter-spacing: -0.02em;
      margin-bottom: 1rem;
    }
    h2 .accent { color: var(--amber); }

    .section-sub {
      color: var(--text-dim);
      font-size: 0.85rem;
      max-width: 540px;
      line-height: 1.8;
    }

    /* ── FEATURES ── */
    .features { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .features-header { margin-bottom: 4rem; }

    .features-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1px;
      background: var(--border);
    }

    .feat-card {
      background: var(--bg-1);
      padding: 2.5rem;
      position: relative;
      overflow: hidden;
      transition: background 0.25s;
    }
    .feat-card:hover { background: var(--bg-2); }
    .feat-card::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 2px;
      background: var(--amber);
      transform: scaleX(0);
      transition: transform 0.3s ease;
      transform-origin: left;
    }
    .feat-card:hover::after { transform: scaleX(1); }

    .feat-icon {
      width: 44px; height: 44px;
      background: rgba(240, 165, 0, 0.1);
      border: 1px solid rgba(240, 165, 0, 0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
      margin-bottom: 1.4rem;
    }

    .feat-number {
      position: absolute;
      top: 2rem; right: 2rem;
      font-family: var(--font-disp);
      font-size: 5rem;
      font-weight: 800;
      color: rgba(240, 165, 0, 0.04);
      line-height: 1;
      pointer-events: none;
      user-select: none;
    }

    .feat-title {
      font-family: var(--font-disp);
      font-size: 1.1rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.7rem;
      letter-spacing: -0.01em;
    }

    .feat-desc {
      font-size: 0.8rem;
      color: var(--text-dim);
      line-height: 1.8;
      margin-bottom: 1.4rem;
    }

    .feat-code {
      background: var(--bg);
      border: 1px solid var(--border);
      padding: 0.8rem 1rem;
      font-size: 0.72rem;
      color: var(--cyan);
      overflow-x: auto;
      white-space: nowrap;
    }

    /* ── HOW IT WORKS ── */
    .how-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 3rem;
      margin-top: 4rem;
      position: relative;
    }
    .how-grid::before {
      content: '';
      position: absolute;
      top: 28px;
      left: calc(16.66% + 1.5rem);
      right: calc(16.66% + 1.5rem);
      height: 1px;
      background: linear-gradient(90deg, var(--amber-dim), var(--border), var(--amber-dim));
    }

    .how-step { position: relative; }

    .how-num {
      width: 56px; height: 56px;
      background: var(--bg-2);
      border: 1px solid var(--border-2);
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--font-disp);
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--amber);
      margin-bottom: 1.5rem;
      position: relative;
      z-index: 1;
    }

    .how-title {
      font-family: var(--font-disp);
      font-size: 1rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.6rem;
    }

    .how-desc {
      font-size: 0.8rem;
      color: var(--text-dim);
      line-height: 1.8;
    }

    .how-detail {
      margin-top: 1rem;
      padding: 0.7rem 0.9rem;
      background: rgba(240, 165, 0, 0.05);
      border-left: 2px solid var(--amber-dim);
      font-size: 0.72rem;
      color: var(--amber);
    }

    /* ── VIDEO DEMO SECTION ── */
    .video-section {
      background: var(--bg-1);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      text-align: center;
    }
    .video-section h2 { margin-bottom: 0.5rem; }
    .video-section .section-sub { margin: 0.75rem auto 2.5rem; max-width: 600px; }
    .video-wrap {
      max-width: 960px;
      margin: 0 auto;
      border: 1px solid var(--border-2);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    }
    .video-wrap video {
      display: block;
      width: 100%;
      background: #000;
    }

    /* ── REGEX DEMO ── */
    .demo { background: var(--bg-1); border-top: 1px solid var(--border); }
    .demo-layout {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      margin-top: 4rem;
    }

    .demo-panel {
      background: var(--bg);
      border: 1px solid var(--border);
    }

    .demo-panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.8rem 1.2rem;
      background: var(--bg-2);
      border-bottom: 1px solid var(--border);
      font-size: 0.72rem;
      color: var(--text-dim);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .demo-panel-header .badge {
      background: rgba(240, 165, 0, 0.12);
      color: var(--amber);
      padding: 0.2rem 0.5rem;
      font-size: 0.65rem;
      letter-spacing: 0.1em;
    }

    .regex-config { padding: 1.2rem; }

    .config-row {
      margin-bottom: 1.2rem;
    }
    .config-label {
      font-size: 0.7rem;
      color: var(--text-dim);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 0.4rem;
    }
    .config-input {
      width: 100%;
      background: var(--bg-2);
      border: 1px solid var(--border-2);
      color: var(--cyan);
      font-family: var(--font-mono);
      font-size: 0.78rem;
      padding: 0.6rem 0.8rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .config-input:focus { border-color: var(--amber-dim); }

    .stream-list { padding: 1.2rem; }
    .stream-list-label {
      font-size: 0.7rem;
      color: var(--text-dim);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 0.8rem;
    }

    .stream-item {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      padding: 0.5rem 0;
      border-bottom: 1px solid var(--border);
      font-size: 0.75rem;
      transition: background 0.15s;
    }
    .stream-item:last-child { border-bottom: none; }

    .stream-type {
      font-size: 0.65rem;
      letter-spacing: 0.08em;
      padding: 0.2rem 0.4rem;
      flex-shrink: 0;
    }
    .type-audio { background: rgba(91, 206, 250, 0.1); color: var(--cyan); border: 1px solid rgba(91,206,250,0.2); }
    .type-sub   { background: rgba(240,165,0,0.1);    color: var(--amber); border: 1px solid rgba(240,165,0,0.2); }

    .stream-name { flex: 1; color: var(--text); }
    .stream-name mark {
      background: rgba(240, 165, 0, 0.25);
      color: var(--amber-2);
      border-radius: 0;
    }

    .stream-match {
      font-size: 0.65rem;
      letter-spacing: 0.08em;
      flex-shrink: 0;
    }
    .match-yes { color: var(--green); }
    .match-no  { color: var(--text-dim); }

    /* ── REGEX PATTERNS SECTION ── */
    .patterns-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 4rem;
      margin-bottom: 4rem;
    }

    .pattern-examples {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
    }

    .pattern-card {
      background: var(--bg-2);
      border: 1px solid var(--border);
      padding: 1.5rem;
      position: relative;
    }

    .pattern-title {
      font-size: 0.7rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--amber);
      margin-bottom: 0.8rem;
    }

    .pattern-regex {
      font-size: 0.75rem;
      color: var(--cyan);
      background: var(--bg);
      padding: 0.5rem 0.7rem;
      border: 1px solid var(--border);
      display: block;
      overflow-x: auto;
      white-space: nowrap;
      margin-bottom: 0.8rem;
    }

    .pattern-matches {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
    }

    .pattern-match-item {
      font-size: 0.65rem;
      padding: 0.2rem 0.5rem;
      background: rgba(61, 220, 132, 0.08);
      color: var(--green);
      border: 1px solid rgba(61, 220, 132, 0.2);
    }

    /* ── FOOTER ── */
    footer {
      background: var(--bg-1);
      border-top: 1px solid var(--border);
      padding: 4rem 5rem 3rem;
    }

    .footer-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 4rem;
      margin-bottom: 3rem;
      padding-bottom: 3rem;
      border-bottom: 1px solid var(--border);
    }

    .footer-brand .logo {
      font-family: var(--font-disp);
      font-weight: 800;
      font-size: 1.4rem;
      color: #fff;
      letter-spacing: 0.1em;
      margin-bottom: 0.6rem;
    }
    .footer-brand .logo span { color: var(--amber); }

    .footer-tagline {
      font-size: 0.78rem;
      color: var(--text-dim);
      max-width: 280px;
      line-height: 1.7;
    }

    .footer-links-group { }
    .footer-links-title {
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-dim);
      margin-bottom: 1rem;
    }
    .footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
    .footer-links-list a {
      font-size: 0.8rem;
      color: var(--text-dim);
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-links-list a:hover { color: var(--amber); }

    .footer-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .footer-copy {
      font-size: 0.72rem;
      color: var(--text-dim);
    }
    .footer-copy span { color: var(--amber-dim); }

    .footer-version {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.4rem;
      font-size: 0.7rem;
      color: var(--text-dim);
    }
    .footer-app-release a,
    .footer-app-release { color: var(--text-dim); }
    .footer-app-release a {
      text-decoration: none;
      transition: color 0.2s;
    }
    .footer-app-release a:hover { color: var(--amber); }
    .footer-release-prefix { margin-right: 0.15em; }
    .version-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s ease infinite; }
    @keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

    /* ── DIVIDER ── */
    .film-divider {
      height: 24px;
      background:
        repeating-linear-gradient(
          90deg,
          transparent 0px, transparent 18px,
          var(--bg-2) 18px, var(--bg-2) 20px,
          transparent 20px, transparent 48px
        );
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    /* ── ANIMATIONS ON LOAD ── */
    .fade-up {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeUp 0.6s ease forwards;
    }
    @keyframes fadeUp { to { opacity: 1; transform: none; } }

    .fade-up:nth-child(1) { animation-delay: 0.1s; }
    .fade-up:nth-child(2) { animation-delay: 0.2s; }
    .fade-up:nth-child(3) { animation-delay: 0.3s; }
    .fade-up:nth-child(4) { animation-delay: 0.4s; }

    /* ── RESPONSIVE ── */
    @media (max-width: 900px) {
      .hero { grid-template-columns: 1fr; padding: 5rem 2rem 3rem; }
      .hero::before, .hero::after { display: none; }
      .hero-left { padding-left: 0; }
      section { padding: 5rem 2rem; }
      nav { padding: 0 1.5rem; }
      .nav-links { display: none; }
      .install-strip { padding: 2.5rem 2rem; }
      .features-grid { grid-template-columns: 1fr; }
      .how-grid { grid-template-columns: 1fr; }
      .how-grid::before { display: none; }
      .demo-layout { grid-template-columns: 1fr; }
      .video-wrap { border-radius: 4px; }
      .patterns-header { flex-direction: column; }
      .pattern-examples { grid-template-columns: 1fr; }
      footer { padding: 3rem 2rem; }
      .footer-top { flex-direction: column; gap: 2rem; }
    }

    /* ── Extracted from inline markup ── */
    .nav-logo-accent {
      color: var(--amber);
    }

    .hero-code {
      color: var(--amber);
      font-size: 0.85em;
    }

    .app-textfield--compact {
      font-size: 0.6rem;
    }

    .app-btn--copy-preview {
      padding: 2px 9px;
      font-size: 0.6rem;
    }

    .app-radio-group--tight {
      margin-left: 4px;
    }

    .app-btn--log-copy {
      padding: 1px 8px;
      font-size: 0.6rem;
    }

    .link-amber {
      color: var(--amber);
    }

    .config-row--flush {
      margin-bottom: 0;
    }

    .add-stream-row {
      display: flex;
      gap: 0.5rem;
    }

    .config-input--stream-type {
      width: auto;
      flex-shrink: 0;
      color: var(--text);
    }

    .btn-add-stream {
      background: var(--amber);
      color: #000;
      border: none;
      padding: 0 1rem;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 700;
      cursor: pointer;
      flex-shrink: 0;
    }

    .demo-output-stack {
      margin-top: 1.5rem;
    }

    .cmd-section-label {
      font-size: 0.7rem;
      color: var(--text-dim);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 0.8rem;
    }

    .btn-copy-cmd {
      background: none;
      border: none;
      color: var(--amber);
      font-family: var(--font-mono);
      font-size: 0.65rem;
      letter-spacing: 0.08em;
      cursor: pointer;
      text-transform: uppercase;
    }

    .cmd-output {
      padding: 1rem 1.2rem;
      font-size: 0.72rem;
      color: var(--cyan);
      line-height: 1.9;
    }

    .section-docs {
      padding-top: 5rem;
      padding-bottom: 5rem;
    }

    .section-sub--docs-offset {
      margin-top: 2.5rem;
    }

    .cmd-output-footnote {
      color: var(--text-dim);
      font-size: 0.68rem;
      line-height: 1.6;
    }

    .log-plain {
      color: #888;
    }

    /* ── STATS SECTION ── */
    .stats-section {
      padding: 5rem 2rem;
    }

    .stats-container {
      margin-top: 3rem;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      margin-bottom: 2rem;
    }

    .stats-card {
      background: var(--bg-2);
      border: 1px solid var(--border-2);
      border-radius: 8px;
      padding: 2rem;
      text-align: center;
      transition: all 0.3s ease;
    }

    .stats-card:hover {
      border-color: var(--amber);
      background: var(--bg-3);
    }

    .stat-value {
      font-family: var(--font-disp);
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--amber);
      margin-bottom: 1rem;
      line-height: 1;
    }

    .stat-title {
      color: var(--text-dim);
      font-size: 0.85rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .stats-loading {
      text-align: center;
      color: var(--text-dim);
      font-size: 0.9rem;
      padding: 2rem;
    }

    .stats-error {
      text-align: center;
      color: var(--red);
      font-size: 0.9rem;
      padding: 2rem;
    }

    @media (max-width: 900px) {
      .stats-grid { grid-template-columns: 1fr; }
      .stats-section { padding: 5rem 2rem; }
    }
