/* BLAX landing page: the app's dark theme (src/theme.ts). Near-black page, charcoal outlined cards,
   brushed-silver primary buttons with dark text, red accent. */
:root {
  --bg: #020202;
  --card: #0e0e0f;
  --card-top: #18181b;
  --card-bottom: #0c0c0d;
  --border: #2f2f33;
  --chip: #1a1a1d;
  --fg: #ffffff;
  --text: #ececee;
  --muted: #a1a1a8;
  --faint: #6c6c74;
  --on-silver: #0a0a0b;
  --accent: #ee2630;
  --silver: linear-gradient(180deg, #fafafa 0%, #dadadd 55%, #b4b4b9 100%);
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--fg); margin: 0; letter-spacing: -0.02em; }

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--silver); color: var(--on-silver);
  font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(255, 255, 255, 0.14), inset 0 1px 0 #fff; }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { background: var(--chip); box-shadow: none; }

/* --- nav --- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  background: rgba(2, 2, 2, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img:first-child { border-radius: 9px; }
.wordmark { width: 99px; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav nav a:not(.btn):hover { color: var(--fg); }

/* --- hero --- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 40px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; font-weight: 800; }
.silver-text {
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 22px 0 32px; font-size: 18px; color: var(--muted); max-width: 520px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; }
.hero-art img { position: relative; width: 100%; }
.glow {
  position: absolute; inset: 12% 18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(238, 38, 48, 0.28), transparent);
  filter: blur(30px);
}

/* --- sections --- */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 24px; }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; text-align: center; }
.sub { margin: 12px auto 0; max-width: 560px; text-align: center; color: var(--muted); font-size: 17px; }

.grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--card-top), var(--card-bottom));
}
.card h3 { margin: 18px 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.chip {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--chip); border: 1px solid var(--border);
}
.chip svg, .store svg { width: 22px; height: 22px; fill: none; stroke: var(--fg); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* --- steps --- */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li {
  display: flex; gap: 16px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--card);
}
.num {
  flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--silver); color: var(--on-silver); font-weight: 800;
}
.steps h3 { font-size: 18px; font-weight: 700; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* --- download --- */
.download {
  margin: 24px auto 72px; padding: 56px 24px; text-align: center;
  border: 1px solid var(--border); border-radius: 28px;
  background: radial-gradient(ellipse at top, rgba(238, 38, 48, 0.14), transparent 60%), linear-gradient(180deg, var(--card-top), var(--card-bottom));
  width: calc(100% - 48px);
}
.shield { width: 96px; margin: 0 auto 20px; }
.stores { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 18px; min-width: 200px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 17px; text-align: left; line-height: 1.2; opacity: 0.85; cursor: default;
}
.store small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

/* --- footer --- */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 32px 24px 48px;
  border-top: 1px solid var(--border); text-align: center; color: var(--muted); font-size: 14px;
}
.footer .brand { justify-content: center; color: var(--fg); font-weight: 800; letter-spacing: 0.06em; }
.footer .brand img { border-radius: 7px; }
.footer p { margin: 10px 0 0; }
.footer .fine { color: var(--faint); font-size: 13px; }

/* --- responsive --- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .lead { margin-left: auto; margin-right: auto; }
  .ctas { justify-content: center; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .nav { padding: 12px 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero, .section { padding-left: 16px; padding-right: 16px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .download { width: calc(100% - 32px); padding: 44px 18px; }
  .store { min-width: 0; width: 100%; max-width: 280px; }
}
