/* TWT Analytics — shared styles (private beta site) */
:root {
  --bg: #080f14;
  --surface: #0c1820;
  --surface2: #101f2a;
  --border: #1a2f3d;
  --border2: #1f3a4d;
  --accent: #6366f1;
  --accent-soft: #818cf8;
  --accent-text: #a5b4fc;
  --accent-bg: #1e1b4b;
  --accent-border: #312e81;
  --text: #e6edf3;
  --text2: #9fb0bf;
  --muted: #607080;
  --radius: 10px;
  --max: 1440px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 3vw, 48px); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(8, 15, 20, .92); backdrop-filter: blur(8px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.nav a { color: var(--text2); }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent; font-family: inherit; transition: background .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5458e8; }
.btn-outline { border-color: var(--accent); color: var(--accent-text); background: transparent; }
.btn-outline:hover { background: var(--accent-bg); }
.menu-toggle { display: none; background: none; border: 1px solid var(--border2); color: var(--text); border-radius: 8px; width: 38px; height: 38px; font-size: 18px; cursor: pointer; }

/* Hero */
.hero { padding: 88px 0 64px; text-align: center; }
.pill { display: inline-block; font-size: 13px; padding: 5px 14px; border-radius: 999px; background: var(--accent-bg); color: var(--accent-text); border: 1px solid var(--accent-border); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 22px auto 16px; max-width: 760px; }
.hero h1 span { color: var(--accent-soft); }
.hero p.lead { color: var(--text2); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }
.waitlist { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.waitlist input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border2); background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit; outline: none; }
.waitlist input:focus { border-color: var(--accent); }
.waitlist .btn { padding: 12px 20px; font-size: 15px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; min-height: 20px; }
.form-note.error { color: #f87171; }

/* Sections */
section { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.section-head p { color: var(--text2); max-width: 560px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card .icon { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-bg); border: 1px solid var(--accent-border); display: flex; align-items: center; justify-content: center; color: var(--accent-soft); margin-bottom: 14px; }
.card .icon svg { width: 20px; height: 20px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--text2); font-size: 14.5px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step { padding: 22px; border-left: 2px solid var(--accent); background: var(--surface); }
.step .num { font-size: 13px; font-weight: 600; color: var(--accent-text); margin-bottom: 6px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--text2); font-size: 14.5px; }
.cta { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 44px 24px; }
.cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.cta p { color: var(--text2); margin-bottom: 24px; }

/* Content pages (legal, about, contact) */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.page .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.page h2 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.page p, .page li { color: var(--text2); margin-bottom: 12px; }
.page ul { padding-left: 22px; margin-bottom: 12px; }
.page strong { color: var(--text); font-weight: 600; }
.contact-list { display: grid; gap: 12px; margin-top: 24px; }
.contact-item { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.contact-item .icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 9px; background: var(--accent-bg); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.contact-item .icon svg { width: 18px; height: 18px; }
.contact-item .label { font-size: 13px; color: var(--muted); }
.contact-item .value { color: var(--text); font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text2); }
.disclaimer { font-size: 13px; line-height: 1.7; max-width: 820px; }

/* Responsive */
@media (max-width: 860px) {
  .grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .btn { margin-top: 8px; }
  .grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 56px 0 40px; }
  .waitlist { flex-direction: column; }
}
