:root {
  --ink: #0f1b2d;
  --ink-soft: #33415c;
  --muted: #6b7a90;
  --line: #e6e9ef;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --accent: #1f6feb;
  --accent-ink: #0b3d91;
  --accent-soft: #eef4ff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 12px 32px rgba(15, 27, 45, 0.06);
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
img, svg { max-width: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 620px; }
.hidden { display: none !important; }
.small { font-size: 0.85rem; }
.muted { color: var(--muted); font-weight: 400; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(180%) blur(12px); background: rgba(251,251,253,0.82); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.nav-cta { white-space: nowrap; }
.brand { min-width: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; color: var(--accent); }
.byline { font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; }
.nav-cta { font-weight: 600; font-size: 0.92rem; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.nav-cta:hover { text-decoration: none; border-color: var(--accent); color: var(--accent-ink); }

/* Hero */
.hero { padding: 84px 0 40px; }
.hero-inner { max-width: 760px; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid #d9e6ff; padding: 5px 12px; border-radius: 999px; margin: 0 0 20px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 800; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--ink-soft); margin: 0 0 28px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.support { color: var(--muted); font-size: 0.95rem; margin: 0; max-width: 560px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 1rem; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(31,111,235,0.25); }
.btn-primary:hover { background: #1a5fd0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-secondary { background: var(--ink); color: #fff; }

/* Diagram */
.diagram { padding: 32px 0 56px; }
.diagram-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; max-width: 820px; margin: 0 auto; }
.diagram-col { display: flex; flex-direction: column; gap: 12px; }
.diagram-col.ais { align-items: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 0.92rem; box-shadow: var(--shadow); width: fit-content; }
.diagram-col.ais .chip { flex-direction: row-reverse; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-mail { background: #ea4335; } .dot-cal { background: #1a73e8; } .dot-notes { background: #f2b705; } .dot-tasks { background: #16a34a; }
.dot-ai1 { background: #6d28d9; } .dot-ai2 { background: #0ea5e9; } .dot-ai3 { background: #f97316; }
.diagram-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.flow-line { width: 2px; height: 40px; background: linear-gradient(var(--line), var(--accent), var(--line)); }
.hub { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--surface); border: 1px solid #d9e6ff; color: var(--accent-ink); border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow); font-weight: 700; }

/* Features */
.features { padding: 40px 0 24px; }
.features .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.feature h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--ink-soft); }

/* Copy strip */
.marquee { padding: 8px 0 0; }
.marquee p { text-align: center; color: var(--muted); font-size: 0.95rem; font-weight: 500; }

/* Waitlist */
.waitlist { padding: 64px 0 72px; }
.waitlist h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -0.02em; text-align: center; margin: 0 0 6px; }
.waitlist .lede { text-align: center; margin: 0 auto 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.card input[type="email"], .card textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); }
.card input[type="email"]:focus, .card textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,111,235,0.15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); margin: 16px 0 18px; }
.check input { margin-top: 3px; }
.card .btn-primary { width: 100%; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.form-status { margin: 12px 0 0; font-weight: 600; font-size: 0.92rem; text-align: center; min-height: 1.2em; }
.form-status.ok { color: #12813a; }
.form-status.err { color: #c02626; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.research { margin-top: 22px; position: relative; }
.research h3 { margin: 0 0 4px; font-size: 1.15rem; }
.research fieldset { border: none; padding: 0; margin: 18px 0; }
.research legend { font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }
.pack { display: flex; flex-wrap: wrap; gap: 8px; }
.pack button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); cursor: pointer; }
.pack button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.research textarea { margin-bottom: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-inner .small { max-width: 460px; color: var(--muted); margin: 12px 0 0; }
.small-brand { font-size: 0.95rem; }
.footer-links { display: flex; gap: 20px; align-items: flex-start; }
.footer-links a { color: var(--ink-soft); font-weight: 500; }

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .features .wrap { grid-template-columns: 1fr; }
  .diagram-grid { grid-template-columns: 1fr; gap: 14px; }
  .diagram-mid { flex-direction: row; }
  .flow-line { width: 40px; height: 2px; background: linear-gradient(90deg, var(--line), var(--accent), var(--line)); }
  .diagram-col.ais { align-items: flex-start; }
  .diagram-col.ais .chip { flex-direction: row; }
  .hero { padding: 56px 0 24px; }
  .nav-cta { padding: 7px 13px; font-size: 0.85rem; }
  .hero h1 { font-size: clamp(1.9rem, 8.5vw, 2.7rem); }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .chrome-reveal { opacity: 0; transform: translateY(8px); animation: reveal .5s ease forwards; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}
