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

:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: #1c1c1e;
  --surface-hi: #2c2c2e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.70);
  --text-muted: rgba(255, 255, 255, 0.38);
  --brand: #ee5f2b;
  --brand-light: #ff7a47;
  --grad-start: #ee5f2b;
  --grad-end: #ff9a5c;
  --success: #30d158;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.56);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.32);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f2f2f7;
    --surface: #ffffff;
    --surface-hi: #f2f2f7;
    --border: rgba(0, 0, 0, 0.07);
    --text: #1c1c1e;
    --text-secondary: rgba(28, 28, 30, 0.68);
    --text-muted: rgba(28, 28, 30, 0.38);
    --grad-start: #ee5f2b;
    --grad-end: #c94e1a;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.09);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.05);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-light);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.75;
}

ul {
  padding-left: 20px;
}

li {
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.65;
}

p {
  color: var(--text-secondary);
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: rgba(238, 95, 43, 0.10);
  border: 1px solid rgba(238, 95, 43, 0.20);
  border-radius: 6px;
  padding: 2px 8px;
  color: var(--brand-light);
}

/* ── Shell ────────────────────────────────────────────────────────────────── */

.shell {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 80px;
}

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

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 40px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.back-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  -webkit-text-fill-color: var(--text-muted);
}

.back-link:hover {
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  border-color: rgba(238, 95, 43, 0.30);
  background: var(--surface-hi);
  opacity: 1;
}

/* ── Hero (home page) ─────────────────────────────────────────────────────── */

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(238, 95, 43, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 154, 92, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

/* ── Document (legal pages) ───────────────────────────────────────────────── */

.document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.document::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end), transparent);
}

/* ── Typography ───────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(238, 95, 43, 0.10);
  border: 1px solid rgba(238, 95, 43, 0.20);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
  -webkit-text-fill-color: var(--brand);
}

h1 {
  font-size: clamp(30px, 6.5vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  color: var(--text);
}

.hero h1 {
  background: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-end) 45%, var(--text) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.document h1 {
  font-size: clamp(26px, 5vw, 40px);
  letter-spacing: -1px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, var(--grad-start), var(--grad-end));
  border-radius: 2px;
  flex-shrink: 0;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.document p,
.document li {
  font-size: 15px;
  line-height: 1.75;
}

.document p {
  margin-bottom: 4px;
}

.meta {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--surface-hi);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.1px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

.button:not(.secondary) {
  background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  box-shadow: 0 4px 20px rgba(238, 95, 43, 0.38);
}

.button:not(.secondary):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(238, 95, 43, 0.50);
  opacity: 1;
}

.button.secondary {
  background: var(--surface-hi);
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  border-color: rgba(238, 95, 43, 0.28);
  transform: translateY(-2px);
  opacity: 1;
}

/* ── Feature grid ─────────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.tile {
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--grad-start), var(--grad-end));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tile:hover {
  border-color: rgba(238, 95, 43, 0.26);
  transform: translateY(-3px);
}

.tile:hover::after {
  opacity: 1;
}

.tile strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.tile p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

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

footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

footer a {
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

footer a:hover {
  color: var(--brand-light);
  -webkit-text-fill-color: var(--brand-light);
  opacity: 1;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .nav {
    padding-bottom: 28px;
  }

  .cta-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  h1 {
    letter-spacing: -0.8px;
  }

  h2 {
    margin-top: 32px;
  }
}

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