:root {
  --hot-bg: #19130f;
  --hot-bg2: #241a12;
  --hot-accent: #ff8a3d;
  --hot-accent2: #ffcf6b;
  --hot-glow: rgba(255, 138, 61, 0.35);
  --cold-bg: #0e1416;
  --cold-bg2: #16232a;
  --cold-accent: #6fd3ff;
  --cold-accent2: #9fb8c9;
  --cold-glow: rgba(111, 211, 255, 0.3);
  --text: #f3ece4;
  --text-dim: #a89e93;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);

  --bg: var(--hot-bg);
  --bg2: var(--hot-bg2);
  --accent: var(--hot-accent);
  --accent2: var(--hot-accent2);
  --glow: var(--hot-glow);
}
/* The page cools down while you scroll into sorting — same metaphor as the app. */
body.cold {
  --bg: var(--cold-bg);
  --bg2: var(--cold-bg2);
  --accent: var(--cold-accent);
  --accent2: var(--cold-accent2);
  --glow: var(--cold-glow);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  transition: background-color 0.8s ease;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(90% 60% at 50% 0%, var(--bg2) 0%, transparent 70%);
  pointer-events: none;
  transition: background 0.8s ease;
  z-index: -1;
}
a { color: var(--accent); transition: color 0.6s ease; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.display { font-family: 'Space Grotesk', sans-serif; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--line);
  transition: background 0.8s ease;
}
header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: calc(env(safe-area-inset-top) + 14px);
  padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 20px;
  color: var(--text); text-decoration: none;
}
.spark-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px 3px var(--glow);
  transition: background 0.8s ease, box-shadow 0.8s ease;
}
nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
nav a { color: var(--text-dim); text-decoration: none; }
nav a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background 0.6s ease, color 0.6s ease, transform 0.15s ease, border-color 0.6s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #14100c; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.16); color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn-ghost .soon { color: var(--text-dim); font-weight: 500; font-size: 13px; }
nav .btn { padding: 9px 16px; font-size: 14px; color: #14100c; }

/* Phone frame for the screenshots */
.phone {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 506 / 1100;
  border-radius: 44px;
  padding: 8px;
  background: linear-gradient(160deg, #3a332d, #15110e);
  box-shadow: 0 30px 80px -20px var(--glow), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.8s ease;
}
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--accent2); letter-spacing: 0.06em; text-transform: uppercase; transition: color 0.8s ease; }
h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(40px, 6vw, 68px); line-height: 1.03; margin: 14px 0 22px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--accent); transition: color 0.8s ease; }
.lead { font-size: 19px; color: var(--text-dim); max-width: 520px; margin: 0 0 32px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin-top: 18px; font-size: 14px; color: var(--text-dim); }
.hero-visual { display: flex; justify-content: center; }

/* Sections */
section { padding: 88px 0; }
h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.01em; }
.section-lead { color: var(--text-dim); max-width: 620px; margin: 0 0 44px; font-size: 18px; }

.problems { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px;
}
.card .num { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 14px; transition: color 0.8s ease; }
.card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 22px; margin: 10px 0 8px; }
.card p { margin: 0; color: var(--text-dim); }

.step { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; padding: 40px 0; }
.step.flip { grid-template-columns: 1.15fr 0.85fr; }
.step.flip .step-visual { order: 2; }
.step-visual { display: flex; justify-content: center; }
.step h3 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(26px, 3vw, 34px); margin: 8px 0 14px; line-height: 1.15; }
.step p { color: var(--text-dim); margin: 0 0 14px; max-width: 480px; }
.step ul { margin: 0; padding-left: 20px; color: var(--text-dim); }
.step li { margin: 6px 0; }
.tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--accent2); transition: color 0.8s ease; }

.widget-row { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.widget-img { width: 260px; max-width: 100%; border-radius: 32px; box-shadow: 0 24px 60px -20px var(--glow); transition: box-shadow 0.8s ease; display: block; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 20px 60px -30px var(--glow); }
.plan h3 { font-family: 'Space Grotesk', sans-serif; font-size: 26px; margin: 0 0 4px; }
.plan .price { color: var(--text-dim); margin: 0 0 20px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: '✦'; position: absolute; left: 4px; color: var(--accent); transition: color 0.8s ease; }

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

.final { text-align: center; padding: 96px 0 104px; }
.final h2 { margin-bottom: 12px; }
.final p { color: var(--text-dim); margin: 0 auto 32px; max-width: 520px; }
.final .ctas { justify-content: center; }
.final .note { margin: 18px auto 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 calc(env(safe-area-inset-bottom) + 28px); color: var(--text-dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer a { color: var(--text-dim); }
.todo { background: rgba(255, 207, 107, 0.18); color: var(--hot-accent2); border-radius: 4px; padding: 0 4px; }

/* Phones */
@media (max-width: 860px) {
  nav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero .wrap, .step, .step.flip, .widget-row { grid-template-columns: 1fr; gap: 36px; }
  .step.flip .step-visual { order: 0; }
  .hero-visual .phone { max-width: 260px; }
  .problems, .plans, .privacy { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .step { padding: 28px 0; }
  .widget-row { justify-items: center; text-align: left; }
  .lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Language switch + extras */
nav a.lang { font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.06em; }
.fineprint { margin: 22px 0 0; font-size: 13px; color: var(--text-dim); max-width: 620px; }
.sub-block { margin-top: 40px; padding: 28px; }
.sub-block h3 { margin-top: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.checks { list-style: none; margin: 0; padding: 0; color: var(--text-dim); }
.checks li { padding: 8px 0 8px 28px; position: relative; }
.checks li::before { content: '✦'; position: absolute; left: 2px; color: var(--accent); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

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