/* CrushFive — the site wears the app's Focus skin: dark page, quiet surfaces,
   and the four accents from the icon doing all the colour. */
:root {
  --page: #16161a;
  --surface: #1e1e22;
  --surface-2: #26262b;
  --hairline: #2e2e34;
  --ink: #f4f4f1;
  --muted: #a3a3ab;
  --amber: #f2994a;
  --amber-2: #f2c94c;
  --blue: #2d9cdb;
  --blue-2: #56ccf2;
  --green: #27ae60;
  --green-2: #6fcf97;
  --violet: #9b51e0;
  --violet-2: #bb6bd9;
  --radius: 22px;
  --max: 1080px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --page: #fbfbf9;
    --surface: #ffffff;
    --surface-2: #f4f4f1;
    --hairline: #e4e3de;
    --ink: #16161a;
    --muted: #5d5d66;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand img { width: 32px; height: 32px; border-radius: 8px; }

.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 56px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--amber), var(--amber-2) 25%, var(--blue-2) 50%, var(--green-2) 75%, var(--violet-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  max-width: 34em;
  font-size: 20px;
  color: var(--muted);
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.button.primary { background: var(--ink); color: var(--page); border-color: var(--ink); }
.button svg { width: 20px; height: 20px; }

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

.phone {
  position: relative;
  justify-self: center;
  width: min(320px, 78vw);
  border-radius: 44px;
  padding: 10px;
  background: #0b0b0d;
  box-shadow: 0 0 0 1px var(--hairline), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}

.phone img { border-radius: 34px; width: 100%; height: auto; }

.phone::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  background:
    radial-gradient(40% 40% at 20% 20%, color-mix(in srgb, var(--amber) 35%, transparent), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, color-mix(in srgb, var(--blue) 35%, transparent), transparent 70%),
    radial-gradient(40% 40% at 20% 85%, color-mix(in srgb, var(--green) 30%, transparent), transparent 70%),
    radial-gradient(40% 40% at 85% 85%, color-mix(in srgb, var(--violet) 35%, transparent), transparent 70%);
  filter: blur(30px);
}

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--hairline); }

h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.section-lede { margin: 0 0 32px; color: var(--muted); max-width: 40em; }

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

.feature {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.feature h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--c1), var(--c2));
}

.amber { --c1: var(--amber); --c2: var(--amber-2); }
.blue { --c1: var(--blue); --c2: var(--blue-2); }
.green { --c1: var(--green); --c2: var(--green-2); }
.violet { --c1: var(--violet); --c2: var(--violet-2); }

/* Screenshot strip */
.shots {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 20px 18px;
  margin: 0 -20px;
  scrollbar-width: thin;
}

.shots figure {
  flex: 0 0 auto;
  width: 230px;
  margin: 0;
  scroll-snap-align: start;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--hairline);
}

.shots figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

/* Game list */
.shelves { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.shelf {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--hairline);
}

.shelf header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.shelf header .dot { width: 22px; height: 22px; border-radius: 7px; }
.shelf h3 { margin: 0; font-size: 18px; }
.shelf h3 small { color: var(--muted); font-weight: 500; margin-left: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
}

.closing { text-align: center; padding: 72px 0; }
.closing .cta { justify-content: center; }
.closing img { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 22px; }

/* Legal and support pages */
.doc { max-width: 720px; padding: 56px 20px 72px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 86%, var(--muted)); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .intro { font-size: 19px; color: var(--muted); }
.doc a { text-decoration-color: var(--muted); text-underline-offset: 3px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 44px 0 40px; text-align: left; }
  .features { grid-template-columns: 1fr; }
  .shelves { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .lede { font-size: 18px; }
  .shots figure { width: 200px; }
}
