/* Brand accent: InZeMobile family — warm amber/gold */
:root {
  --brand: #f5b335;
  --brand-strong: #e9a420;

  /* Light mode (default) */
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --fg: #0a0a0a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: var(--brand);
  --accent-fg: #0a0a0a;

  --radius: 10px;
  --max: 1100px;
  --pad-x: clamp(20px, 5vw, 48px);
}

/* System preference: applied only when user has not chosen explicitly */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #000000;
    --bg-alt: #141414;
    --fg: #ffffff;
    --muted: #a0a0a0;
    --line: #262626;
    --accent: var(--brand);
    --accent-fg: #000000;
  }
}

/* Manual override via the toggle */
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #141414;
  --fg: #ffffff;
  --muted: #a0a0a0;
  --line: #262626;
  --accent: var(--brand);
  --accent-fg: #000000;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --fg: #0a0a0a;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: var(--brand);
  --accent-fg: #0a0a0a;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Avenir Next", "Avenir", "Nunito", "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Trebuchet MS", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.7; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(36px, 5.5vw, 64px); line-height: 1.1; font-weight: 600; }
h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; margin-bottom: 40px; color: var(--accent); }
h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
p { margin: 0; color: var(--muted); }

/* Nav */
.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-transform: uppercase;
}
.brand-mark {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--brand);
  border-radius: 1px;
}
.brand-name { font-weight: 600; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}
.nav-links a { color: var(--muted); }
.nav-cta {
  color: var(--fg) !important;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
}
.nav-cta:hover { opacity: 1; background: var(--bg-alt); }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Sections */
main { display: block; }
.hero, .section { max-width: var(--max); margin: 0 auto; padding: 96px var(--pad-x); }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

@media (max-width: 720px) {
  .hero, .section { padding: 64px var(--pad-x); }
}

/* Hero */
.hero { text-align: left; padding-top: 80px; padding-bottom: 120px; }
.hero h1 { margin-bottom: 24px; max-width: 18ch; }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 60ch;
  color: var(--muted);
  margin-bottom: 32px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.15s ease, opacity 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
}
.btn-primary:hover { background: var(--brand-strong); opacity: 1; }
.btn-ghost {
  color: var(--fg);
  border-color: var(--line);
}
.btn-ghost:hover { background: var(--bg-alt); opacity: 1; }

/* Problem */
.problem { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad-x) 96px; }
.problem p { font-size: 18px; color: var(--muted); }
.problem strong { color: var(--fg); font-weight: 600; }

/* Grid utilities */
.grid { display: grid; gap: 32px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; gap: 24px; }
}

/* Cards */
.cards .card { padding: 0; }
.card-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--fg);
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; }

/* Rows (Scale) */
.rows { display: grid; gap: 32px; max-width: 760px; }
.row { padding: 24px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 160px 1fr; gap: 24px; }
.row:first-child { border-top: none; }
.row h3 { margin: 0; }
.row p { font-size: 16px; }
@media (max-width: 720px) {
  .row { grid-template-columns: 1fr; gap: 8px; }
}

/* Channels list */
.channels {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  max-width: 760px;
}
.channels li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.channels li:last-child { border-bottom: none; }
.channels .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); display: inline-block;
  transform: translateY(-2px);
}
.channels strong { font-weight: 600; }
.channels .muted { color: var(--muted); }

/* Final CTA */
.cta-final { text-align: center; padding-top: 120px; padding-bottom: 120px; }
.cta-final h2 { margin-bottom: 16px; }
.cta-final .lede { margin-left: auto; margin-right: auto; margin-bottom: 32px; }

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--pad-x) 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer a { color: var(--muted); }
.footer-sep { color: var(--line); }

/* Theme toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Default (light): show moon, hide sun */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
/* Dark theme (either explicit or system, when not explicitly overridden to light) */
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
}
