
:root {
    --bg: #0f1117;
    --bg-card: #181b24;
    --bg-elevated: #1e2230;
    --border: #2a3042;
    --text: #e8eaef;
    --text-muted: #9aa3b5;
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --accent: #38bdf8;
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #38bdf8 100%);
    --radius: 12px;
    --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    --max: 1120px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

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

  .container {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
  }

  /* Header */
  header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(12px);
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
  }

  .logo-image {
    height: 40px;
    width: auto;
    display: block;
  }

  nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  nav a {
    font-size: 0.9375rem;
    color: var(--text-muted);
    transition: color 0.15s;
  }

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

  .nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    font-size: 1.125rem;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s, background 0.15s;
  }

  .btn:active { transform: scale(0.98); }

  .btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  }

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

  .btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }

  .btn-outline:hover {
    background: var(--bg-elevated);
    border-color: #3d4660;
  }

  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    border-radius: 12px;
  }

  /* Hero */
  .hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto;
    height: 600px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.18) 0%, transparent 65%);
    pointer-events: none;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
  }

  .badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
  }

  .hero h1 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 32rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
  }

  .hero-visual {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
  }

  .mock-bar {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
  }

  .mock-dot:nth-child(1) { background: #ef4444; }
  .mock-dot:nth-child(2) { background: #eab308; }
  .mock-dot:nth-child(3) { background: #22c55e; }

  .mock-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--bg-elevated);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
  }

  .mock-row:last-child { margin-bottom: 0; }

  .mock-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
  }

  .mock-label { flex: 1; color: var(--text-muted); }
  .mock-value { font-weight: 600; color: var(--text); }

  /* Features */
  .features {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
  }

  .section-head {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 3rem;
  }

  .section-head h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
  }

  .section-head p {
    color: var(--text-muted);
    font-size: 1.0625rem;
  }

  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
  }

  .feature-card:hover {
    border-color: #3d4660;
    transform: translateY(-2px);
  }

  .feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
  }

  /* CTA */
  .cta {
    padding: 4rem 0 5rem;
  }

  .cta-box {
    background: var(--gradient);
    border-radius: 20px;
    padding: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
  }

  .cta-box h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
  }

  .cta-box p {
    font-size: 1.0625rem;
    opacity: 0.9;
    max-width: 32rem;
    margin: 0 auto 1.75rem;
    position: relative;
  }

  .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
    position: relative;
  }

  .btn-white {
    background: #fff;
    color: #312e81;
  }

  .btn-white:hover { background: #f1f5f9; }

  .btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
  }

  .btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

  /* Footer */
  footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
  }

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

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.15s;
  }

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

  .footer-copy {
    font-size: 0.875rem;
    color: var(--text-muted);
  }

  /* Mobile nav */
  @media (max-width: 768px) {
    .nav-toggle { display: block; }

    nav {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      padding: 0.5rem 1rem 1rem;
    }

    nav.open { display: flex; }

    nav a, nav .btn {
      padding: 0.75rem 0;
      text-align: left;
    }

    header { position: relative; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .feature-grid { grid-template-columns: 1fr; }
  }

  /* Legal pages (privacy, terms) */
  body.legal-page header {
    position: static;
  }

  body.legal-page .header-inner {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
  }

  .back-link {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.15s;
  }

  .back-link:hover {
    color: var(--text);
  }

  body.legal-page a:not(.logo):not(.back-link) {
    color: #a5b4fc;
    text-decoration: none;
  }

  body.legal-page a:not(.logo):not(.back-link):hover {
    text-decoration: underline;
  }

  .legal-main {
    width: min(100% - 2rem, 760px);
    margin: 3rem auto 4rem;
    line-height: 1.7;
  }

  .legal-main h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    color: var(--text);
  }

  .legal-main .updated {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
  }

  .legal-main h2 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    color: var(--text);
  }

  .legal-main p,
  .legal-main li {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.875rem;
  }

  .legal-main ul {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
  }

  .legal-main li {
    margin-bottom: 0.5rem;
  }

  .legal-main strong {
    color: var(--text);
    font-weight: 600;
  }

  footer.legal-footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
  }

  footer.legal-footer a {
    color: #a5b4fc;
    text-decoration: none;
  }

  footer.legal-footer a:hover {
    text-decoration: underline;
  }