:root {
  --bg: #fafbfd;
  --surface: #ffffff;
  --ink: #0b1325;
  --muted: #566078;
  --line: #e3e5ec;
  --accent: #0b6cff;
  --accent-ink: #ffffff;
  /* Brand colors, sampled from the In8 logo */
  --cyan: #01e0fb;
  --blue: #0b6cff;
  --indigo: #4623f9;
  --purple: #9711fb;
  --brand-gradient: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 40%, var(--indigo) 72%, var(--purple) 100%);
  --button-gradient: linear-gradient(90deg, var(--blue) 0%, var(--indigo) 60%, var(--purple) 100%);
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --surface: #111829;
    --ink: #eef1f8;
    --muted: #9ba5bd;
    --line: #232c42;
    --accent: #4fb3ff;
    --accent-ink: #ffffff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: relative; }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--brand-gradient); opacity: 0.9;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 34px; width: auto; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto;
  width: 640px; height: 640px; border-radius: 50%;
  background: var(--brand-gradient); opacity: 0.14; filter: blur(80px);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.grad-text {
  background: var(--button-gradient); -webkit-background-clip: text; background-clip: text;
  color: transparent; white-space: nowrap;
}
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.05;
  letter-spacing: -0.03em; margin: 0 0 20px; max-width: 16ch;
}
.hero p.lede { font-size: 20px; color: var(--muted); max-width: 58ch; margin: 0 0 32px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px;
  background: var(--button-gradient); color: #ffffff;
  font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 20px -8px rgba(70, 35, 249, 0.55);
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary {
  background: transparent; color: var(--ink); box-shadow: none;
  border: 1px solid var(--line); margin-left: 8px;
}

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 12px; }
section .sub { color: var(--muted); max-width: 60ch; margin: 0 0 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px; position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--brand-gradient);
}
.card h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.01em; }
.card .tag { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.card ul { padding-left: 20px; margin: 14px 0 0; color: var(--muted); }
.card li { margin: 4px 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.facts { list-style: none; padding: 0; margin: 0; }
.facts li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.facts li span:first-child { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; }

/* Legal pages */
.optin-proof { margin: 24px 0; }
.optin-proof img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.optin-proof figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.consent-sample {
  margin: 16px 0; padding: 16px 20px; border-left: 4px solid var(--indigo);
  background: var(--surface); border-radius: 0 8px 8px 0; color: var(--ink);
}
.legal { padding: 64px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: 40px; letter-spacing: -0.02em; margin: 0 0 8px; }
.legal .updated { color: var(--muted); margin: 0 0 40px; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink); }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .hero { padding: 64px 0 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .btn.secondary { margin: 10px 0 0; }
  section { padding: 56px 0; }
}
