:root {
  --bg-0: #0a0a0c;
  --bg-1: #121215;
  --bg-2: #1a1a1f;
  --ink: #f2efe7;
  --ink-mute: #a0a2a6;
  --ink-faint: #5e6064;
  --red: #ef4444;
  --red-deep: #dc2626;
  --orange: #f59e0b;
  --orange-deep: #d97706;
  --line: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.025);
  --glass-strong: rgba(255, 255, 255, 0.05);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 14% -6%, rgba(239, 68, 68, 0.18), transparent 60%),
    radial-gradient(900px 700px at 92% 4%, rgba(245, 158, 11, 0.10), transparent 65%),
    radial-gradient(1100px 800px at 50% 110%, rgba(239, 68, 68, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, #0d0d10 50%, var(--bg-0) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(239, 68, 68, 0.30);
  transition: border-color 160ms ease, color 160ms ease;
}
a:hover { border-bottom-color: var(--red); color: #ff6b6b; }

h1, h2, h3 {
  font-family: "New York", "Iowan Old Style", "Palatino", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1em; color: var(--ink-mute); }
strong { color: var(--ink); font-weight: 600; }

/* ─── Layout primitives ─────────────────────────────────────────── */

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 980px;
  margin: 0 auto;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.65), rgba(10, 10, 12, 0));
}
.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  border: none;
  font-family: "New York", Georgia, serif;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav .brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav .links { display: flex; gap: 22px; }
.nav .links a {
  color: var(--ink-mute);
  border: none;
  font-size: 15px;
}
.nav .links a:hover { color: var(--ink); }

footer {
  margin-top: 100px;
  padding: 40px 28px 60px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 14px;
  text-align: center;
}
footer a { color: var(--ink-mute); border: none; }
footer a:hover { color: var(--ink); }
footer .row { display: flex; gap: 22px; justify-content: center; margin-bottom: 12px; flex-wrap: wrap; }

/* ─── Hero ──────────────────────────────────────────────────────── */

.hero {
  text-align: center;
  padding: 80px 28px 100px;
  position: relative;
}
.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow:
    0 30px 80px -22px rgba(239, 68, 68, 0.35),
    0 12px 30px -10px rgba(245, 158, 11, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.95;
  margin: 0 0 18px;
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .tagline {
  font-family: "New York", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--ink);
  margin: 0 auto 14px;
  max-width: 28ch;
  font-weight: 300;
}
.hero .sub {
  max-width: 56ch;
  margin: 0 auto 36px;
  color: var(--ink-mute);
  font-size: 17px;
}

/* ─── App Store badge ───────────────────────────────────────────── */

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.appstore:hover {
  transform: translateY(-1px);
  border-color: rgba(239, 68, 68, 0.35);
  box-shadow: 0 14px 40px -10px rgba(239, 68, 68, 0.25);
}
.appstore .apple-logo { width: 22px; height: 22px; flex-shrink: 0; }
.appstore .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.appstore .small { font-size: 11px; opacity: 0.78; letter-spacing: 0.04em; }
.appstore .big { font-size: 19px; font-weight: 500; margin-top: 3px; letter-spacing: -0.01em; }
.appstore.pending {
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-mute);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  cursor: default;
}
.appstore.pending:hover { transform: none; box-shadow: none; border-color: rgba(255, 255, 255, 0.18); }

/* ─── Feature cards ─────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 28px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
}
.card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  overflow: hidden;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.30), rgba(245, 158, 11, 0.05) 35%, rgba(255, 255, 255, 0.04));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  background: var(--glass-strong);
  border-color: rgba(239, 68, 68, 0.20);
}
.card .glyph {
  width: 36px; height: 36px;
  margin-bottom: 18px;
  color: var(--red);
}
.card h3 {
  font-size: 19px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-mute);
}

/* ─── Legal / support pages ─────────────────────────────────────── */

.page {
  padding: 60px 28px 40px;
}
.page-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 40px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  position: relative;
}
.page-inner::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.22), rgba(245, 158, 11, 0.04) 35%, rgba(255, 255, 255, 0.03));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
@media (max-width: 640px) {
  .page-inner { padding: 32px 24px; }
}
.page h1 {
  font-size: clamp(34px, 5vw, 44px);
  margin-bottom: 8px;
}
.page .updated {
  display: block;
  color: var(--ink-faint);
  font-size: 14px;
  margin-bottom: 32px;
}
.page h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  color: var(--red);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.page h3 {
  font-size: 16px;
  margin: 20px 0 8px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
.page p, .page li { color: var(--ink-mute); }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.page .pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.10);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.20);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* ─── Selection / focus ─────────────────────────────────────────── */

::selection { background: rgba(239, 68, 68, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
