/* ============================================================
   N of 1 — Shared Stylesheet
   Brand palette mirrors the iOS app exactly.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg:        #0B0C10;
  --surface:   #1A1D21;
  --surface-hl:#2A2D31;
  --cyan:      #00D9FF;
  --purple:    #8B5CF6;
  --green:     #39FF14;
  --red:       #FF3131;
  --white:     #FFFFFF;
  --slate:     #94A3B8;
  --dim:       #64748B;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  24px;
  --radius-full: 999px;

  --glow-cyan:   0 0 20px rgba(0,217,255,0.45);
  --glow-purple: 0 0 20px rgba(139,92,246,0.45);
  --glow-green:  0 0 20px rgba(57,255,20,0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography helpers ───────────────────────────────────── */
.text-cyan   { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-green  { color: var(--green); }
.text-slate  { color: var(--slate); }
.text-dim    { color: var(--dim); }
.text-center { text-align: center; }
.mono        { font-family: var(--font-mono); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--tight {
  padding: 64px 0;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,12,16,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-hl);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav__logo span { color: var(--cyan); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); text-decoration: none; }

.nav__cta {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bg) !important;
  background: var(--cyan);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  transition: opacity 0.2s, box-shadow 0.2s;
}
.nav__cta:hover {
  opacity: 0.9;
  box-shadow: var(--glow-cyan);
  text-decoration: none !important;
}

.nav__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--white);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn--lg { font-size: 1.0625rem; padding: 16px 36px; }
.btn--md { font-size: 0.9375rem; padding: 12px 28px; }
.btn--sm { font-size: 0.875rem;  padding: 9px 20px; }

.btn--primary {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: var(--glow-cyan);
}
.btn--primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--surface-hl);
}
.btn--secondary:hover { border-color: var(--cyan); color: var(--cyan); }

.btn--ghost {
  background: rgba(0,217,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,217,255,0.3);
}
.btn--ghost:hover { background: rgba(0,217,255,0.18); }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-hl);
  border-radius: var(--radius-md);
  padding: 28px;
}

.card--glow-cyan   { box-shadow: 0 0 32px rgba(0,217,255,0.12); }
.card--glow-purple { box-shadow: 0 0 32px rgba(139,92,246,0.12); }

/* ── Badge / Pill ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
}
.badge--cyan   { background: rgba(0,217,255,0.12); color: var(--cyan); border: 1px solid rgba(0,217,255,0.3); }
.badge--purple { background: rgba(139,92,246,0.12); color: #C4B5FD;   border: 1px solid rgba(139,92,246,0.3); }
.badge--green  { background: rgba(57,255,20,0.12);  color: var(--green); border: 1px solid rgba(57,255,20,0.3); }

/* ── Section headings ─────────────────────────────────────── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { color: var(--slate); line-height: 1.75; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--surface-hl);
  margin: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--surface-hl);
  padding: 48px 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--white);
}
.footer__logo span { color: var(--cyan); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.footer__links a {
  font-size: 0.875rem;
  color: var(--dim);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); text-decoration: none; }
.footer__copy {
  font-size: 0.8125rem;
  color: var(--dim);
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ── Legal pages ──────────────────────────────────────────── */
.legal {
  padding-top: 112px;
  padding-bottom: 96px;
}
.legal h1 { margin-bottom: 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.legal .meta { color: var(--dim); font-size: 0.875rem; margin-bottom: 48px; }
.legal h2 { font-size: 1.25rem; color: var(--white); margin: 40px 0 12px; }
.legal h3 { font-size: 1.0625rem; color: var(--slate); margin: 28px 0 8px; }
.legal p, .legal li { color: var(--slate); margin-bottom: 12px; line-height: 1.8; }
.legal ul, .legal ol { padding-left: 20px; margin-bottom: 16px; }
.legal a { color: var(--cyan); }
.legal strong { color: var(--white); }
.legal .highlight-box {
  background: rgba(0,217,255,0.07);
  border: 1px solid rgba(0,217,255,0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.legal .highlight-box p { margin: 0; }

/* ── Glow orb backgrounds ─────────────────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}

/* ── Utilities ────────────────────────────────────────────── */
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-12 { gap: 48px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--surface-hl);
    padding: 24px;
    gap: 20px;
  }
  .nav__menu-toggle { display: block; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
