  :root {
    --ink: #17131f;
    --violet: #7c3aed;
    --violet-strong: #6d28d9;
    --violet-deep: #4c1d95;
    --violet-soft: #ede9fe;
    --bg: #faf8ff;
    --surface: #ffffff;
    --surface-2: #f4f1fb;
    --text: #1c1726;
    --muted: #6b6478;
    --border: #e9e3f5;
    --online: #10b981;
    --shadow: 40px 40px 80px -32px rgba(76, 29, 149, 0.28);
    --radius: 22px;
  }
  :root:not([data-theme="light"]) {
    /* system dark not needed to invert fully; keep the violet world, deepen ground */
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #0d0a14;
      --bg: #0d0a14;
      --surface: #171226;
      --surface-2: #1f1836;
      --text: #f3effb;
      --muted: #a99fc0;
      --border: #2a2340;
      --violet-soft: #241a44;
      --shadow: 40px 40px 90px -30px rgba(0, 0, 0, 0.6);
    }
  }
  :root[data-theme="dark"] {
    --ink: #0d0a14;
    --bg: #0d0a14;
    --surface: #171226;
    --surface-2: #1f1836;
    --text: #f3effb;
    --muted: #a99fc0;
    --border: #2a2340;
    --violet-soft: #241a44;
    --shadow: 40px 40px 90px -30px rgba(0, 0, 0, 0.6);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { width: min(1120px, 92vw); margin: 0 auto; }
  a { color: inherit; text-decoration: none; }

  /* ---- top nav ---- */
  header {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav { display: flex; align-items: center; gap: 28px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 19px; }
  .mark {
    width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
    color: #fff; font-weight: 900; font-size: 15px;
    background: linear-gradient(140deg, var(--violet) 0%, var(--violet-deep) 100%);
    box-shadow: 0 6px 16px -6px var(--violet);
  }
  .brand b { color: var(--violet); }
  .nav .links { display: none; gap: 6px; margin-left: 8px; }
  .nav .links a { color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
  .nav .links a:hover { color: var(--text); background: var(--surface-2); }
  .nav .cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  @media (min-width: 900px) { .nav .links { display: flex; } }
  .btn {
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
    padding: 11px 18px; border-radius: 12px; border: 1px solid transparent; cursor: pointer;
  }
  .btn-ghost { color: var(--muted); }
  .btn-ghost:hover { color: var(--text); }
  .btn-primary {
    color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-strong));
    box-shadow: 0 10px 24px -10px var(--violet);
    transition: transform .12s ease;
  }
  .btn-primary:hover { transform: translateY(-1px); }

  /* ---- hero ---- */
  .hero { position: relative; overflow: hidden; padding: 74px 0 40px; }
  .glow {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      radial-gradient(600px 320px at 18% 8%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 70%),
      radial-gradient(520px 300px at 92% 20%, color-mix(in srgb, var(--violet-deep) 22%, transparent), transparent 70%);
  }
  .hero-grid { position: relative; z-index: 1; display: grid; gap: 44px; grid-template-columns: 1fr; align-items: center; }
  @media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; color: var(--violet);
    background: var(--violet-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
  }
  h1 {
    font-size: clamp(38px, 6vw, 62px); line-height: 1.02; letter-spacing: -0.03em;
    font-weight: 850; margin: 0 0 18px; text-wrap: balance;
  }
  h1 .grad {
    background: linear-gradient(120deg, var(--violet), var(--violet-deep));
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 34ch; margin: 0 0 26px; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
  .hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); box-shadow: 0 0 0 4px color-mix(in srgb, var(--online) 22%, transparent); }

  /* ---- inbox mockup ---- */
  .mock {
    position: relative; z-index: 1; border-radius: var(--radius); overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
  .mock-bar .b { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
  .mock-bar .t { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }
  .mock-body { display: grid; grid-template-columns: 40% 60%; min-height: 340px; }
  .mock-list { border-right: 1px solid var(--border); }
  .mrow { display: flex; gap: 10px; padding: 12px 12px; border-bottom: 1px solid var(--border); align-items: center; }
  .mrow.active { background: var(--violet-soft); }
  .av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
  .mrow .who { font-size: 13px; font-weight: 700; }
  .mrow .prev { font-size: 11.5px; color: var(--muted); }
  .tag { font-size: 10px; font-weight: 800; color: #fff; padding: 2px 7px; border-radius: 999px; }
  .mock-chat { display: flex; flex-direction: column; background:
      color-mix(in srgb, var(--violet-soft) 45%, var(--surface)); }
  .chat-head { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
  .chat-body { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
  .bub { max-width: 78%; padding: 9px 12px; border-radius: 14px; font-size: 12.5px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
  .bub.in { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
  .bub.out { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-strong)); border-bottom-right-radius: 5px; }
  .bub .file { display: flex; align-items: center; gap: 8px; font-weight: 700; }

  /* ---- sections ---- */
  section { padding: 68px 0; }
  .kicker { text-align: center; color: var(--violet); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
  h2 { text-align: center; font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.02em; margin: 10px 0 10px; text-wrap: balance; }
  .sub { text-align: center; color: var(--muted); max-width: 56ch; margin: 0 auto 40px; }
  .features { display: grid; gap: 18px; grid-template-columns: 1fr; }
  @media (min-width: 680px) { .features { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
  .card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px;
    transition: transform .14s ease, box-shadow .14s ease;
  }
  .card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px var(--violet); }
  .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; background: var(--violet-soft); margin-bottom: 14px; }
  .card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.01em; }
  .card p { margin: 0; color: var(--muted); font-size: 13.5px; }

  /* ---- pricing ---- */
  .plans { display: grid; gap: 20px; grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
  @media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
  .plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
  .plan.featured {
    color: #fff; border: none; position: relative;
    background: linear-gradient(155deg, var(--violet) 0%, var(--violet-deep) 100%);
    box-shadow: 0 30px 60px -30px var(--violet);
  }
  .plan h3 { margin: 0 0 4px; font-size: 20px; }
  .plan .desc { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
  .plan.featured .desc { color: color-mix(in srgb, #fff 78%, transparent); }
  .price { font-size: 42px; font-weight: 850; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .price small { font-size: 14px; font-weight: 600; color: var(--muted); }
  .plan.featured .price small { color: color-mix(in srgb, #fff 78%, transparent); }
  .badge { position: absolute; top: 18px; right: 18px; background: #fff; color: var(--violet-deep); font-weight: 800; font-size: 11px; padding: 5px 11px; border-radius: 999px; }
  ul.feat { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
  ul.feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
  ul.feat li::before { content: "✓"; font-weight: 900; color: var(--violet); flex: none; }
  .plan.featured ul.feat li::before { color: #fff; }
  .plan .btn { width: 100%; justify-content: center; }
  .plan.featured .btn-primary { background: #fff; color: var(--violet-deep); box-shadow: none; }

  footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 13px; }
  .foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
