:root {
  color-scheme: dark;
  --paper: #10141c;
  --surface: #171e2a;
  --ink: #f3f6fc;
  --muted: #b4bed0;
  --blue: #92b9ff;
  --line: #303a4c;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, main:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 750; line-height: 1.03; letter-spacing: -.05em; }
.wrap { width: min(1180px, calc(100% - 2 * clamp(18px, 5vw, 68px))); margin-inline: auto; }

.skip-link { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1.4rem; }
.header-inner { min-height: 76px; padding-block: .65rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); font-weight: 750; line-height: 1.2; text-decoration: none; }
.brand img { flex: none; border-radius: 10px; }
nav { display: flex; gap: clamp(.7rem, 3vw, 2rem); align-items: center; }
nav a { color: var(--ink); font-weight: 650; font-size: .91rem; padding-block: .55rem; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); align-items: center; gap: clamp(1.5rem, 4vw, 4.5rem); padding-block: clamp(2.3rem, 6vw, 5.1rem); }
.eyebrow { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin-bottom: 1.25rem; font-size: clamp(2.7rem, 5.4vw, 5.65rem); line-height: 1; }
.hero h1 span { color: var(--blue); }
.hero-description, .stats-copy p { max-width: 35ch; font-size: clamp(1.04rem, 1.7vw, 1.25rem); color: var(--muted); }
.download { display: inline-flex; align-items: center; gap: 1rem; margin-top: 1.65rem; padding: .82rem 1.1rem; background: var(--blue); color: #101a2c; border-radius: .52rem; font-weight: 750; text-decoration: none; }
.download:hover { background: #bbd2ff; }
.store-badge { display: inline-block; margin-top: 1.65rem; vertical-align: top; border-radius: 9px; }
.text-link span { font-size: 1.1em; }

.showcase {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.09;
  overflow: hidden;
  border: 1px solid #355282;
  border-radius: 1.3rem;
  background-color: #1a2d50;
  background-image: linear-gradient(#9ebeff29 1px, transparent 1px), linear-gradient(90deg, #9ebeff29 1px, transparent 1px);
  background-size: 7.7% 8.4%;
}
.phone { border: 4px solid #45526a; border-radius: 12% / 5.6%; background: #08090a; box-shadow: 0 15px 28px #040a15a0; }
.showcase .phone { position: absolute; width: 36%; }
.phone-front { left: 20%; top: 8%; transform: rotate(-8deg); }
.phone-back { left: 49%; top: 13%; transform: rotate(10deg); }
.chip { position: absolute; width: 12%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #76a4fa; box-shadow: inset 0 0 0 5px #1a2d50, inset 0 0 0 7px #76a4fa; }
.chip-one { top: 8%; right: 7%; }
.chip-two { width: 8%; top: 22%; right: 5%; background: #fcc05f; border-color: #674016; box-shadow: inset 0 0 0 4px #fcc05f, inset 0 0 0 6px #674016; }
.die { position: absolute; z-index: 1; right: 9%; bottom: 10%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; width: 15%; aspect-ratio: 1; padding: 1.8%; border-radius: 20%; background: #fbb85c; box-shadow: 0 5px 0 #ae6b26, 0 10px 16px #17253a3d; transform: rotate(12deg); }
.die i { width: 60%; aspect-ratio: 1; border-radius: 50%; background: #3d2b19; }
.die i:nth-child(2) { grid-area: 1 / 3; }
.die i:nth-child(3) { grid-area: 2 / 2; }
.die i:nth-child(4) { grid-area: 3 / 1; }
.die i:nth-child(5) { grid-area: 3 / 3; }

.feature-section { padding-block: clamp(2.3rem, 5vw, 4.5rem); border-block: 1px solid var(--line); background: var(--surface); }
.feature-section h2, .stats-copy h2 { font-size: clamp(2.15rem, 4.1vw, 3.8rem); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); margin-top: 2rem; }
.features article { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.features h3 { font-size: 1.12rem; margin-top: .7rem; }
.features p { color: var(--muted); margin-top: .3rem; max-width: 34ch; }
.feature-icon { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; padding: .65rem; border-radius: 8px; background: #21365c; color: var(--blue); }
.feature-icon i { display: block; background: currentColor; border-radius: 1px; }
.icon-setup { grid-template-columns: repeat(2, 1fr); gap: 3px; }
.icon-setup i { width: 100%; aspect-ratio: 1; }
.icon-score { grid-template-rows: repeat(3, 1fr); gap: 3px; }
.icon-score i { width: 100%; height: 2px; }
.icon-history { display: flex; align-items: flex-end; gap: 3px; }
.icon-history i { flex: 1; height: 35%; }
.icon-history i:nth-child(2) { height: 65%; }
.icon-history i:nth-child(3) { height: 100%; }

.stats-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(2.4rem, 6vw, 5rem); }
.stats-image { display: grid; place-items: center; padding: 1.8rem 1rem; background: radial-gradient(circle at 50% 50%, #6b4c29 0 42%, transparent 42.2%), #30271f; border: 1px solid #584435; border-radius: 1.25rem; }
.stats-image .phone { width: min(43%, 205px); }
.stats-copy p { margin-block: 1rem; }
.text-link { font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1.65rem; }
.footer-inner p { color: var(--muted); margin-top: .25rem; font-size: .87rem; }

.prose { max-width: 720px; padding-block: clamp(2.5rem, 7vw, 5.75rem); }
.prose h1 { margin-block: .5rem 1rem; font-size: clamp(3rem, 8vw, 5rem); }
.prose .intro { color: var(--muted); font-size: 1.2rem; max-width: 55ch; }
.prose section { border-top: 1px solid var(--line); margin-top: 1.8rem; padding-top: 1.3rem; }
.prose h2 { font-size: 1.68rem; margin-bottom: .6rem; }
.prose p + p { margin-top: .65rem; }
.prose a { overflow-wrap: anywhere; }
.error-page { min-height: 50vh; }

@media (max-width: 700px) {
  .hero, .features, .stats-section { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.55rem, 10.8vw, 4.75rem); }
  .hero-description { max-width: 39ch; }
  .showcase { width: min(100%, 510px); }
  .features { gap: 1.15rem; margin-top: 1.4rem; }
  .features article { padding-top: 1rem; }
  .features p { max-width: 50ch; }
  .stats-copy { order: -1; }
  .header-inner { min-height: 62px; column-gap: .65rem; }
}
