:root {
  color-scheme: light;
  --ink: #1a1613;
  --paper: #f8f5f0;
  --warm-gray: #e8e2da;
  --muted: #9a918a;
  --accent-amber: #c8713a;
  --accent-amber-hover: #b5632f;
  --card-bg: #fffdf9;
  --surface-strong: rgba(255, 253, 249, 0.9);
  --glow-color: rgba(200, 113, 58, 0.12);
  --nav-bg: rgba(248, 245, 240, 0.86);
  --border: rgba(26, 22, 19, 0.08);
  --code-bg: rgba(200, 113, 58, 0.06);
  --shadow: rgba(26, 22, 19, 0.06);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #ece7df;
  --paper: #131619;
  --warm-gray: #2b313a;
  --muted: #9ea7b3;
  --accent-amber: #f0a35d;
  --accent-amber-hover: #e8933f;
  --card-bg: #1a1e25;
  --surface-strong: rgba(26, 30, 37, 0.92);
  --glow-color: rgba(240, 163, 93, 0.08);
  --nav-bg: rgba(19, 22, 25, 0.9);
  --border: rgba(255, 255, 255, 0.07);
  --code-bg: rgba(240, 163, 93, 0.08);
  --shadow: rgba(0, 0, 0, 0.28);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.7'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  top: 64px;
  right: -180px;
  z-index: 0;
  width: 620px;
  height: 620px;
  pointer-events: none;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
}

a {
  color: inherit;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 1px 20px var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1120px;
  height: 64px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  flex: 1;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent-amber);
  color: var(--ink);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

[data-theme="light"] .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--accent-amber);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent-amber-hover);
  box-shadow: 0 4px 12px rgba(200, 113, 58, 0.3);
  transform: translateY(-1px);
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 134px 32px 80px;
}

.page-shell.wide {
  max-width: 1040px;
}

.page-hero {
  max-width: 760px;
  margin-bottom: 40px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--code-bg);
  color: var(--accent-amber);
  font-size: 13px;
  font-weight: 500;
}

.page-title,
.section-title {
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  letter-spacing: -1px;
}

.page-title {
  max-width: 790px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.04;
}

.page-subtitle {
  max-width: 680px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--accent-amber);
  box-shadow: 0 2px 12px rgba(200, 113, 58, 0.25);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-amber-hover);
  box-shadow: 0 6px 24px rgba(200, 113, 58, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.trust-row,
.grid {
  display: grid;
  gap: 18px;
}

.trust-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 34px 0 8px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
details,
.cta-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: 0 4px 24px var(--shadow);
}

.card,
.cta-card {
  padding: 28px;
}

.trust-pill {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.section-title {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1.12;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--accent-amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

p + p {
  margin-top: 14px;
}

ul {
  margin-top: 14px;
  padding-left: 18px;
}

li + li {
  margin-top: 8px;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--accent-amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
}

.permission-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.permission-item {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.permission-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.warning {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent-amber);
  border-radius: 12px;
  background: var(--code-bg);
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  color: var(--accent-amber);
  font-weight: 700;
}

details[open] summary::after {
  content: "-";
}

details p,
details ul {
  margin-top: 14px;
}

.cta-card {
  margin-top: 24px;
  background:
    radial-gradient(circle at 0% 0%, var(--glow-color), transparent 42%),
    var(--card-bg);
}

.footer {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-inner {
    gap: 18px;
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .page-shell {
    padding: 112px 20px 64px;
  }

  .trust-row,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
