/* GestureKey: shared design system.
   Loaded by every page. Change once here, changes everywhere. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg:        #0a0a0f;
  --surface:   #111118;
  --surface2:  #16161f;
  --border:    rgba(255,255,255,0.06);
  --border2:   rgba(255,255,255,0.10);
  --purple:    #7c6ff7;
  --purple2:   #a89cf8;
  --green:     #1db87a;
  --green2:    #24d48e;
  --text:      #f0eff8;
  --muted:     #8884a0;
  --dim:       #44425a;
  --gold:      #c9a84c;

  --side:      80px;
  --section-gap: 96px;
  --card-gap:  16px;
  --card-pad:  28px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --nav-h:     64px;
}

@media (max-width: 720px) {
  :root {
    --side: 24px;
    --section-gap: 64px;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 16px 0;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p { margin: 0 0 16px 0; color: var(--muted); }

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

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */

.page {
  padding-top: var(--nav-h);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--side);
}

.section {
  padding: var(--section-gap) 0;
}

.section-tight {
  padding: calc(var(--section-gap) / 2) 0;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--purple);
  color: var(--text);
}
.btn-primary:hover { background: var(--purple2); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border2);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple2); }

.btn-nav {
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: var(--purple);
  color: var(--text);
}
.btn-nav:hover { background: var(--purple2); }

.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--card-pad);
}

.card-grid {
  display: grid;
  gap: var(--card-gap);
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .card-grid-3 { grid-template-columns: 1fr; }
}

.card-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
  .card-grid-2 { grid-template-columns: 1fr; }
}

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

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Nav bar ────────────────────────────────────────────────────────────── */

#site-nav-root { position: relative; z-index: 100; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10,10,15,0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--side);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  height: 26px;
  width: auto;
  display: block;
}

.nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px rgba(124,111,247,0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
}

.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }

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

.nav-burger {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
}

.nav-mobile-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(78vw, 320px);
  background: var(--surface);
  border-left: 1px solid var(--border2);
  z-index: 200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.nav-mobile-panel.open { transform: translateX(0); }

.nav-mobile-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-mobile-scrim.open { opacity: 1; pointer-events: auto; }

.nav-mobile-close {
  align-self: flex-end;
  width: 32px; height: 32px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  margin-bottom: 16px;
}

.nav-mobile-panel a {
  padding: 14px 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  /* The mobile panel has its own "Get early access" button, showing this
     one too just crowds the burger and overflows narrow screens. */
  .nav-right .btn-nav { display: none; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--dim);
  max-width: 280px;
}

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

.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 12px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0;
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Waitlist modal ─────────────────────────────────────────────────────── */

.waitlist-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 24px;
}

.waitlist-scrim.open { opacity: 1; pointer-events: auto; }

.waitlist-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-md);
  padding: 32px;
}

.waitlist-card h3 { font-size: 18px; margin-bottom: 8px; }
.waitlist-card p { font-size: 13px; margin-bottom: 20px; }

.waitlist-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

#waitlist-form { display: flex; flex-direction: column; gap: 12px; }

#waitlist-email {
  height: 44px;
  padding: 0 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

#waitlist-email:focus { outline: none; border-color: var(--purple); }

/* ── Step icon badges (How it works flow, home page 3-step summary) ──────── */

.flow-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ── Blog post figures ──────────────────────────────────────────────────── */

.post-figure {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 28px 0;
}

.post-figure svg { width: 100%; height: auto; display: block; }

.post-figure figcaption {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--dim);
  text-align: center;
}

/* ── Utility ────────────────────────────────────────────────────────────── */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple2);
  margin-bottom: 12px;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

@media (max-width: 720px) {
  .footer-inner { flex-direction: column; }
}
