:root {
  --bg: #0a0c14;
  --surface: #12141f;
  --card: #181b28;
  --border: #252938;
  --text: #f3f4f8;
  --sub: #9ca3b4;
  --dim: #6b7286;
  --accent: #ff6b35;
  --accent-light: #ff8f5e;
  --radius: 18px;
  --phone-w: 262px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* The glow and the tilted phones may reach past the edge; never let them cause sideways scrolling. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-light); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.top img { height: 30px; width: auto; display: block; }
.top a.cta {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text);
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
}
.top a.cta:hover { border-color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 8px 0 96px;
}
.hero::before {
  content: '';
  position: absolute;
  right: 5%;
  top: 10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.22), transparent 65%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-light);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.03em; margin: 18px 0 20px; font-weight: 800; }
h1 span { color: var(--accent); }
.lead { font-size: 18px; color: var(--sub); max-width: 460px; margin: 0 0 32px; }

/* Badge-style store buttons under the phones: black, thin light border, two-line label. */
.showcase { position: relative; }
/* Each badge sits under its own phone: Google Play under the Android, App Store under the iPhone. */
.stores { position: relative; z-index: 2; display: flex; justify-content: center; gap: 18px; margin-top: 44px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 22px 10px 18px; border-radius: 12px; text-decoration: none; color: #fff;
  background: #000; border: 1px solid #5d6274; flex: 0 1 calc(var(--phone-w) - 40px); justify-content: center;
  transition: border-color 0.2s, transform 0.2s;
}
.store:hover { border-color: #fff; transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; color: #c9cdd8; line-height: 1.2; }
.store strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; }
.store.soon { cursor: default; }
.store.soon:hover { border-color: #5d6274; transform: none; }

/* Phones */
.phones { position: relative; height: 600px; }
.phone {
  position: absolute;
  width: var(--phone-w);
  aspect-ratio: 390 / 844;
  padding: 10px;
  background: #05060a;
  border: 2px solid #2c3040;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}
/* The top padding is the phone's status bar, so the camera cutout sits above the app, as on a real phone. */
.phone .screen { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--bg); padding-top: 8%; }
.phone .track { display: flex; height: 100%; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.phone img { width: 100%; height: 100%; flex: none; object-fit: cover; object-position: center bottom; display: block; }

.android { left: 4%; top: 60px; border-radius: 34px; transform: rotate(-6deg); }
.android .screen { border-radius: 26px; }
.android .screen::after {
  content: ''; position: absolute; top: 9px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: #05060a; z-index: 2;
}

.iphone { right: 4%; top: 0; border-radius: 48px; transform: rotate(4deg); z-index: 1; }
.iphone .screen { border-radius: 40px; }
.iphone .screen::after {
  content: ''; position: absolute; top: 9px; left: 50%; width: 86px; height: 24px; margin-left: -43px;
  border-radius: 14px; background: #05060a; z-index: 2;
}


/* Features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-bottom: 96px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 107, 53, 0.12); color: var(--accent); margin-bottom: 14px;
}
.feature .icon svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--sub); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a, footer button {
  color: var(--sub); text-decoration: none; background: none; border: 0; padding: 0;
  font: inherit; cursor: pointer;
}
footer a:hover, footer button:hover { color: var(--text); }

/* Legal popup */
dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(84vh, 900px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop { background: rgba(5, 6, 10, 0.75); backdrop-filter: blur(4px); }
dialog .bar {
  position: sticky; top: 0; display: flex; justify-content: flex-end;
  padding: 12px 12px 0; background: var(--surface);
}
dialog .close {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer;
}
dialog .body { padding: 0 32px 32px; }

/* Legal text (popup and the standalone pages) */
.legal h1 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.02em; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: #c9cdd8; font-size: 15px; }
.legal ul, .legal ol { padding-left: 20px; }
.legal strong { color: var(--text); }
.legal-page { max-width: 760px; padding: 0 24px 64px; margin: 0 auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 72px; }
  .hero::before { right: 50%; margin-right: -260px; top: auto; bottom: 0; }
  .lead { margin-left: auto; margin-right: auto; }
  .eyebrow { justify-content: center; }
  .stores { margin-top: 48px; }
  .phones { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  :root { --phone-w: 240px; }
  .stores { max-width: 520px; margin-left: auto; margin-right: auto; }
  .features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .top img { height: 24px; }
  .phones { height: 430px; }
  :root { --phone-w: 180px; }
  .phone { padding: 7px; }
  .stores { gap: 12px; }
  .store { flex-basis: calc(var(--phone-w) - 14px); }
  .android { left: 0; top: 40px; border-radius: 26px; }
  .android .screen { border-radius: 20px; }
  .iphone { right: 0; border-radius: 34px; }
  .iphone .screen { border-radius: 28px; }
  .iphone .screen::after { width: 58px; height: 16px; margin-left: -29px; top: 7px; }
  .features { grid-template-columns: 1fr; }
  dialog .body { padding: 0 20px 24px; }
  .store { padding: 9px 8px; gap: 8px; }
  .store svg { width: 22px; height: 22px; }
  .store small { font-size: 10px; white-space: nowrap; }
  .store strong { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .phone .track { transition: none; }
  .store { transition: none; }
}
