:root {
      --bg: #0b0b0c;
      --surface: #121214;
      --surface-hover: #18181b;
      --border: #222226;
      --border-strong: #323238;

      --text: #f2f2f5;
      --text-secondary: #bcbcc6;
      --text-muted: #9a9aa4;

      --accent: #d46a58;

      --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      --serif: 'Cormorant Garamond', Georgia, serif;
      --mono: 'JetBrains Mono', monospace;
    }

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

    html {
      scroll-behavior: smooth;
      background-color: var(--bg);
      color: var(--text);
      font-family: var(--sans);
      font-size: 15px;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
    }

    body {
      background-color: var(--bg);
      color: var(--text);
    }

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

    .container {
      max-width: 1020px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* ─── Header ─── */
    .header {
      border-bottom: 1px solid var(--border);
      height: 56px;
      display: flex;
      align-items: center;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      background: rgba(11, 11, 12, 0.88);
      backdrop-filter: blur(10px);
      z-index: 50;
    }

    .header-inner {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      line-height: 1;
      user-select: none;
    }

    .brand-mark {
      width: 26px;
      height: 26px;
      display: block;
      flex-shrink: 0;
    }

    .brand-mark .wbar {
      fill: var(--accent);
      transform-origin: center;
      transition: transform 0.25s ease;
    }

    .brand:hover .brand-mark .wbar-1 {
      transform: scaleY(1.12);
    }

    .brand:hover .brand-mark .wbar-2 {
      transform: scaleY(1.28);
    }

    .brand:hover .brand-mark .wbar-3 {
      transform: scaleY(1.12);
    }

    .brand-word {
      font-family: var(--serif);
      font-weight: 600;
      font-size: 1.3rem;
      letter-spacing: -0.015em;
      color: var(--text);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 28px;
      list-style: none;
      font-size: 0.88rem;
    }

    .nav a {
      color: var(--text-secondary);
      transition: color 0.15s ease;
    }

    .nav a:hover {
      color: var(--text);
    }

    .nav-btn {
      color: #fff !important;
      background: var(--accent);
      border: 1px solid var(--accent);
      padding: 7px 16px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 0.86rem;
      transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
      box-shadow: 0 0 0 rgba(212, 106, 88, 0);
    }

    .nav-btn:hover {
      filter: brightness(1.1);
      transform: translateY(-1px);
      box-shadow: 0 4px 18px rgba(212, 106, 88, 0.35);
    }

    .nav-auth {
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .nav-login {
      font-size: 0.86rem;
    }

    .nav-logout {
      background: none;
      border: none;
      color: var(--text-2);
      font-family: var(--sans);
      font-size: 0.9rem;
      cursor: pointer;
      padding: 4px 0;
    }
    .nav-logout:hover {
      color: var(--text);
    }

    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 5px;
      width: 40px;
      height: 40px;
      background: transparent;
      border: 1px solid var(--border-strong);
      border-radius: 6px;
      cursor: pointer;
      flex-shrink: 0;
    }

    .nav-toggle-bar {
      display: block;
      width: 18px;
      height: 2px;
      background: var(--text);
      border-radius: 2px;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    /* ─── Hero ─── */
    .hero {
      padding: 72px 0 64px;
      border-bottom: 1px solid var(--border);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 44px;
      align-items: center;
    }

    .eyebrow {
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 14px;
    }

    .hero h1 {
      font-family: var(--serif);
      font-weight: 500;
      font-size: clamp(2.25rem, 3.6vw, 3.1rem);
      line-height: 1.08;
      letter-spacing: -0.015em;
      margin-bottom: 18px;
    }

    .hero-lead {
      font-size: 0.98rem;
      line-height: 1.65;
      color: var(--text-secondary);
      max-width: 480px;
      margin-bottom: 28px;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--text);
      color: var(--bg);
      padding: 9px 18px;
      border-radius: 6px;
      font-size: 0.88rem;
      font-weight: 500;
      transition: opacity 0.15s ease;
    }

    .btn-primary:hover {
      opacity: 0.9;
    }

    .btn-secondary {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
      padding: 9px 16px;
      border-radius: 6px;
      font-size: 0.88rem;
      font-weight: 500;
      transition: background 0.15s ease, border-color 0.15s ease;
    }

    .btn-secondary:hover {
      background: var(--surface-hover);
      border-color: var(--border-strong);
    }

    /* ─── Voices Catalog (#voices) ─── */
    .section {
      padding: 64px 0;
      border-bottom: 1px solid var(--border);
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 24px;
      margin-bottom: 32px;
    }

    .section-title {
      font-family: var(--serif);
      font-size: 2rem;
      font-weight: 500;
      line-height: 1.15;
      letter-spacing: -0.01em;
    }

    .section-sub {
      color: var(--text-secondary);
      font-size: 0.92rem;
      max-width: 460px;
      margin-top: 6px;
    }

    .voices-columns {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }

    .voice-group {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
    }

    .voice-group-header {
      padding: 12px 18px;
      border-bottom: 1px solid var(--border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-family: var(--mono);
      font-size: 0.75rem;
      color: var(--text-secondary);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      background: rgba(255, 255, 255, 0.015);
    }

    .voice-item {
      width: 100%;
      background: transparent;
      border: none;
      border-bottom: 1px solid var(--border);
      padding: 15px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      text-align: left;
      color: var(--text);
      font-family: inherit;
      cursor: pointer;
      position: relative;
      transition: background 0.15s ease;
    }

    .voice-item:last-child {
      border-bottom: none;
    }

    .voice-item:hover {
      background: var(--surface-hover);
    }

    .voice-item.is-playing {
      background: var(--surface-hover);
    }

    .voice-info {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .voice-name-row {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .voice-name {
      font-weight: 500;
      font-size: 0.96rem;
    }

    .voice-id {
      font-family: var(--mono);
      font-size: 0.72rem;
      color: var(--text-muted);
      background: var(--bg);
      padding: 1px 6px;
      border-radius: 4px;
      border: 1px solid var(--border);
    }

    .voice-desc {
      font-size: 0.84rem;
      color: var(--text-secondary);
    }

    .play-pill {
      font-family: var(--mono);
      font-size: 0.75rem;
      padding: 5px 11px;
      border-radius: 4px;
      border: 1px solid var(--border-strong);
      background: var(--bg);
      color: var(--text-secondary);
      flex-shrink: 0;
      transition: all 0.15s ease;
    }

    .voice-item:hover .play-pill {
      color: var(--text);
      border-color: var(--text-muted);
    }

    .voice-item.is-playing .play-pill {
      border-color: var(--accent);
      color: var(--accent);
    }

    .voice-bar {
      position: absolute;
      left: 0;
      bottom: 0;
      height: 2px;
      width: 0%;
      background: var(--accent);
      transition: width 0.1s linear;
    }

    .voice-more {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 16px 18px;
      background: transparent;
      border: none;
      border-top: 1px solid var(--border);
      color: var(--text-secondary);
      font-family: var(--sans);
      font-size: 0.95rem;
      text-align: left;
      cursor: pointer;
      transition: color 0.15s ease, background 0.15s ease;
    }

    .voice-more:hover {
      color: var(--text);
      background: var(--surface-hover);
    }

    .voice-more-count {
      font-family: var(--mono);
      font-size: 0.8rem;
      color: var(--accent);
      flex-shrink: 0;
    }

    /* ─── Styles / Acoustic Profiles (#styles) ─── */
    .styles-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .style-block {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 24px;
    }

    .style-block h3 {
      font-size: 1.05rem;
      font-weight: 600;
      margin-bottom: 8px;
      letter-spacing: -0.01em;
    }

    .style-block p {
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.6;
    }

    /* ─── Voice Agents & Technical Architecture (#agents) ─── */
    .agents-grid {
      display: grid;
      grid-template-columns: 1fr 1.1fr;
      gap: 40px;
      align-items: start;
    }

    .spec-list {
      margin-top: 24px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .spec-item {
      border-left: 2px solid var(--border-strong);
      padding-left: 16px;
    }

    .spec-item h4 {
      font-size: 0.92rem;
      font-weight: 600;
      margin-bottom: 4px;
      color: var(--text);
    }

    .spec-item p {
      font-size: 0.86rem;
      color: var(--text-secondary);
      line-height: 1.55;
    }

    .code-card {
      background: #0e0e10;
      border: 1px solid #9a9aa6;
      border-radius: 10px;
      box-shadow: 0 10px 34px rgba(0, 0, 0, 0.7);
      overflow: hidden;
      font-family: var(--mono);
    }

    .code-head {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 13px 16px;
      background: #16161a;
      border-bottom: 1px solid #9a9aa6;
      font-size: 1rem;
      white-space: nowrap;
      overflow: hidden;
    }

    .code-method {
      color: #ff9e85;
      font-weight: 700;
      font-size: 0.82rem;
      letter-spacing: 0.06em;
      flex-shrink: 0;
    }

    .code-path {
      color: #ffffff;
      font-weight: 600;
    }

    .code-body {
      padding: 16px;
      color: #ffffff;
      white-space: pre-wrap;
      font-size: 0.95rem;
      line-height: 1.7;
    }

    .code-listen {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin: 4px 16px 16px;
      padding: 9px 16px;
      background: #16161a;
      color: #ffffff;
      border: 1px solid #9a9aa6;
      border-radius: 6px;
      font-family: var(--sans);
      font-size: 0.92rem;
      font-weight: 500;
      cursor: pointer;
      transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    }

    .code-listen:hover {
      border-color: #ff9e85;
      color: #ff9e85;
    }

    .code-listen.is-playing {
      border-color: #ff9e85;
      color: #ff9e85;
      background: #2e2e35;
    }

    .c-key { color: #ff9e85; }
    .c-str { color: #b9e08f; }
    .c-num { color: #ecc370; }
    .c-dim { color: #c9c9d1; }
    .c-comment { color: #a6a6b0; }

    .lang-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }

    .pricing-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 20px;
    }

    .pricing-card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .pricing-card.featured {
      border-color: var(--accent);
      background: rgba(212, 106, 88, 0.05);
    }

    .pricing-name {
      font-family: var(--serif);
      font-size: 1.2rem;
      font-weight: 600;
      color: var(--text);
    }

    .pricing-price {
      font-family: var(--serif);
      font-size: 2rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.1;
    }

    .pricing-period {
      font-family: var(--sans);
      font-size: 0.85rem;
      font-weight: 400;
      color: var(--text-muted);
      margin-left: 4px;
    }

    .pricing-credits {
      font-family: var(--mono);
      font-size: 0.8rem;
      color: var(--accent);
    }

    .pricing-desc {
      font-size: 0.9rem;
      color: var(--text-secondary);
      line-height: 1.55;
      margin-bottom: 14px;
    }

    .pricing-card .btn-primary {
      margin-top: auto;
      text-align: center;
      justify-content: center;
      background: var(--surface);
      color: var(--text);
      border: 1px solid var(--border);
      transition: border-color 0.15s ease, background 0.15s ease;
    }
    .pricing-card .btn-primary:hover {
      opacity: 1;
      border-color: var(--accent);
      color: var(--accent);
      background: var(--surface);
    }

    .pricing-note {
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    .code-card.lang .code-head {
      font-size: 0.88rem;
      padding: 12px 14px;
    }

    .code-card.lang .code-body {
      font-size: 0.88rem;
      padding: 14px;
    }

    .code-card.lang .code-listen {
      font-size: 0.84rem;
      padding: 8px 14px;
      margin: 2px 14px 14px;
    }

    /* ─── Closing CTA (#api) ─── */
    .cta-section {
      padding: 64px 0;
      border-bottom: 1px solid var(--border);
    }

    .cta-banner {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 36px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }

    .cta-banner h2 {
      font-family: var(--serif);
      font-size: 1.85rem;
      font-weight: 500;
      margin-bottom: 6px;
    }

    .cta-banner p {
      color: var(--text-secondary);
      font-size: 0.92rem;
      max-width: 520px;
    }

    /* ─── Footer ─── */
    .footer {
      padding: 32px 0 48px;
      font-size: 0.84rem;
      color: var(--text-muted);
    }

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

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px 20px;
    }

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

    /* ─── Responsive ─── */
    @media (max-width: 820px) {
      .hero-grid,
      .voices-columns,
      .styles-grid,
      .agents-grid,
      .lang-grid,
      .pricing-grid {
        grid-template-columns: 1fr;
      }

      .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
      }

      .section-header {
        flex-direction: column;
        align-items: flex-start;
      }

      /* Hamburger navigation */
      .nav-toggle {
        display: inline-flex;
      }

      .nav-toggle.open .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
      }

      .nav-toggle.open .nav-toggle-bar:nth-child(2) {
        opacity: 0;
      }

      .nav-toggle.open .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
      }

      .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        display: none;
        background: rgba(11, 11, 12, 0.97);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        padding: 6px 0 10px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
      }

      .nav.open {
        display: flex;
      }

      .nav a {
        display: block;
        padding: 14px 24px;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
      }

      .nav .nav-logout {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 1rem;
        text-align: left;
        border-bottom: 1px solid var(--border);
        color: var(--text-2);
      }
      .nav .nav-logout:hover {
        color: var(--text);
      }

      .nav li:last-child a {
        border-bottom: none;
      }

      .nav .nav-btn {
        margin: 12px 24px 4px;
        padding: 12px;
        text-align: center;
        font-size: 1rem;
      }

      .nav-auth {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
      }

      /* General mobile fixes */
      .hero-actions {
        flex-wrap: wrap;
      }

      .code-head {
        flex-wrap: wrap;
        white-space: normal;
      }

      .code-path {
        white-space: normal;
        word-break: break-word;
      }

      .voice-item {
        flex-wrap: wrap;
      }

      .voice-info {
        min-width: 0;
        flex: 1;
      }

      .voice-desc {
        line-height: 1.4;
      }

      .footer-inner {
        flex-direction: column;
        align-items: flex-start;
      }
    }
