:root {
  --bg: #fbf8f4;
  --bg-elev: #ffffff;
  --text: #1d1410;
  --muted: #6e5f55;
  --line: rgba(60, 35, 20, 0.1);
  --sand: #f3c78a;
  --clay: #c56a3c;
  --ember: #a9542e;
  --accent-text: #9a4a22;
  --shadow: 0 30px 80px -30px rgba(80, 35, 10, 0.45);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0c0a;
    --bg-elev: #1a1512;
    --text: #f5efea;
    --muted: #a8988c;
    --line: rgba(255, 225, 200, 0.1);
    --accent-text: #f0b582;
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 26px; font-size: 15px; }

.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }

.nav-links a:hover { color: var(--text); }

/* Hero */

.hero {
  text-align: center;
  padding: clamp(56px, 10vw, 110px) 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 700px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sand) 45%, transparent), transparent);
  opacity: 0.55;
  pointer-events: none;
  z-index: -1;
}

.app-icon {
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  filter: drop-shadow(0 18px 30px rgba(120, 50, 15, 0.35));
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-8px); }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 750;
  margin: 0 auto 22px;
  max-width: 14ch;
}

.gradient-text {
  background: linear-gradient(100deg, var(--clay), #e08a4f 45%, var(--sand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 auto 34px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.shortcut {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  margin: 0 2px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  background: var(--bg-elev);
  font: 600 15px var(--font);
  color: var(--text);
}

/* Product stage */

.stage {
  position: relative;
  margin: clamp(48px, 7vw, 80px) auto 0;
  border-radius: 28px;
  background: linear-gradient(170deg, var(--sand), #d98a55 55%, var(--ember));
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 640px;
}

.menubar {
  position: absolute;
  inset: 0 0 auto;
  height: 34px;
  background: rgba(30, 20, 15, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding: 0 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.menubar .rock {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}

.menubar .rock svg { width: 18px; height: 18px; }

.menubar .dot {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.85;
}

.popover {
  position: absolute;
  top: 40px;
  width: min(36%, 386px);
  filter: drop-shadow(0 30px 40px rgba(60, 20, 0, 0.45));
}

.popover.front { right: 14%; z-index: 2; }

.popover.back {
  right: calc(15% + 31%);
  top: 70px;
  transform: rotate(-3deg) scale(0.92);
  opacity: 0.95;
}

/* Sections */

section { padding: clamp(72px, 10vw, 120px) 0 0; }

.section-title {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  font-weight: 720;
  margin: 0 0 14px;
  text-align: center;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 48px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 32px;
}

.card .glyph {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: linear-gradient(150deg, var(--sand), var(--clay));
  color: #fff;
}

.card .glyph svg { width: 24px; height: 24px; }

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.card p { margin: 0; color: var(--muted); font-size: 16px; }

.privacy-band {
  border-radius: 28px;
  padding: clamp(36px, 6vw, 64px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.privacy-band .section-title,
.privacy-band .section-lede { text-align: left; margin-inline: 0; }

.privacy-band .section-lede { margin-bottom: 0; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.checks li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
}

.checks svg { width: 22px; height: 22px; color: var(--clay); margin-top: 3px; }

.checks strong { display: block; font-weight: 640; }

.checks span { color: var(--muted); font-size: 15.5px; }

.requirements {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding-bottom: 20px;
}

.requirements strong { color: var(--text); }

/* Document pages (privacy, support) */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 0 20px;
}

.doc h1 {
  font-size: clamp(36px, 5vw, 52px);
  text-align: left;
  margin: 0 0 8px;
  max-width: none;
}

.doc .updated { color: var(--muted); margin: 0 0 36px; }

.doc h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 44px 0 10px;
}

.doc p, .doc li { color: color-mix(in srgb, var(--text) 82%, var(--muted)); }

.doc ul { padding-left: 1.2em; }

.doc li { margin: 6px 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.doc th, .doc td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc th { font-weight: 640; }

.doc tr:last-child td { border-bottom: none; }

.callout {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

details summary {
  cursor: pointer;
  font-weight: 620;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

details summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}

details[open] summary::after { transform: rotate(45deg); }

details p { margin: 12px 0 0; }

/* Footer */

footer {
  margin-top: clamp(72px, 10vw, 120px);
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

footer nav { display: flex; gap: 22px; }

footer a { text-decoration: none; }

footer a:hover { color: var(--text); }

.disclaimer { width: 100%; font-size: 12.5px; opacity: 0.8; }

.built-by {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 22px;
  display: flex;
  justify-content: center;
}

.built-by a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.built-by img { height: 22px; width: auto; opacity: 0.85; transition: opacity 0.2s; }

.built-by a:hover { color: var(--text); }

.built-by a:hover img { opacity: 1; }

/* Responsive */

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; }
  .stage { aspect-ratio: 4 / 5; max-height: none; }
  .popover { width: 62%; }
  .popover.front { right: 6%; }
  .popover.back { display: none; }
  .nav-links { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-icon { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 420px) {
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links a[href$="#features"] { display: none; }
}
