:root {
  --bg: #0a0e14; --bg2: #0d1218; --panel: #11161d; --panel2: #151b24; --line: #232b36;
  --text: #eef1f5; --muted: #8b95a3; --accent: #7db4ff; --accent2: #b7a6ff;
  --red: #ff5f57; --yellow: #febc2e; --green: #28c840;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1180px; color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px 12px; z-index: 99; border-radius: 6px; }

/* header */
header.site { position: sticky; top: 0; z-index: 50; background: rgba(10,14,20,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav nav a { text-decoration: none; color: var(--muted); } .nav nav a:hover { color: var(--text); }
.nav nav a.btn { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; background: var(--accent); color: #07101c; font-weight: 700; text-decoration: none; border: 1px solid transparent; font-size: 15px; cursor: pointer; transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn.big { padding: 13px 24px; font-size: 16px; }
.btn.small { padding: 7px 13px; font-size: 13px; }
.btn.ghost { background: transparent; color: var(--text); border-color: #34404f; }
.btn.ghost:hover { background: #151b24; }
.btn.disabled { background: #1a212b; color: var(--muted); cursor: default; pointer-events: none; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(900px 420px at 80% 0, rgba(125,180,255,.10), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.03em; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 12px; }
h3 { margin: 0 0 6px; font-size: 18px; }
.grad { background: linear-gradient(90deg, var(--red), var(--yellow), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: #c4ccd8; max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.trust { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.trust b { color: var(--text); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { position: relative; width: min(100%, 460px); filter: drop-shadow(0 20px 50px rgba(0,0,0,.5)); }
.deck-glow { position: absolute; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(125,180,255,.28), transparent 65%); filter: blur(30px); }
.marquee { border-top: 1px solid var(--line); background: var(--bg2); overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 13px; color: var(--muted); padding: 12px 0; }
.marquee-track { display: inline-block; animation: slide 40s linear infinite; }
.marquee-track span { padding-right: 0; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } html { scroll-behavior: auto; } }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 28px; max-width: 70ch; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* featured */
.featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s; }
.feat:hover { transform: translateY(-3px); border-color: hsl(var(--h) 70% 60% / .6); }
.feat-img { background: linear-gradient(160deg, hsl(var(--h) 55% 16%), #0b1017); padding: 14px; }
.feat-img img { display: block; border-radius: 10px; width: 100%; }
.feat-body { display: flex; align-items: center; gap: 12px; padding: 16px; }
.feat-body p { margin: 0; color: var(--muted); font-size: 14px; }
.feat-body .arrow { margin-left: auto; color: var(--accent); font-size: 20px; }

/* catalog */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 24px; }
#app-search { flex: 1 1 240px; max-width: 340px; background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 14px; font-size: 15px; }
#app-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--panel); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--text); color: #0a0e14; border-color: var(--text); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); border-color: hsl(var(--h) 70% 60% / .55); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.card[hidden] { display: none; }
.card-visual { display: block; text-decoration: none; background: linear-gradient(160deg, hsl(var(--h) 55% 15%), #0b1017); padding: 14px; aspect-ratio: 16 / 9.5; overflow: hidden; }
.card-visual .shot { display: block; width: 100%; border-radius: 10px; }
.shot.glow, .hero-shot.glow { display: grid; place-items: center; min-height: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, hsl(var(--h) 80% 55% / .35), transparent 62%); }
.hero-shot.glow { min-height: 300px; border-radius: 18px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, hsl(var(--h) 80% 55% / .35), transparent 62%), var(--panel); }
.app-icon { border-radius: 22%; flex: none; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.app-icon.big { width: 96px; height: 96px; }
.hero-shot .app-icon.big { width: 160px; height: 160px; }
.app-icon.ph { display: inline-grid; place-items: center; width: 44px; height: 44px; font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(145deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 70% 35%)); }
.app-icon.big.ph { font-size: 44px; } .hero-shot .app-icon.big.ph { font-size: 72px; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-head { display: flex; gap: 12px; align-items: center; }
.card-head h3 a { text-decoration: none; }
.card-head .app-icon { width: 44px; height: 44px; }
.meta { display: flex; gap: 8px; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pill { border: 1px solid #3a4658; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-family: var(--sans); }
.pill.beta { color: var(--yellow); border-color: rgba(254,188,46,.45); }
.pill.soon { color: var(--accent2); border-color: rgba(183,166,255,.45); }
.tagline { margin: 4px 0 0; font-weight: 600; }
.card-body p { margin: 0; color: #b6bfcc; font-size: 14.5px; }
.card-cta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 16px; }
.link { color: var(--accent); text-decoration: none; font-size: 14px; }
.none { color: var(--muted); }

/* why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.why p { color: var(--muted); margin: 0; }
.why > div { border-top: 2px solid var(--line); padding-top: 14px; }
.why > div:nth-child(3n+1) { border-color: var(--red); } .why > div:nth-child(3n+2) { border-color: var(--yellow); } .why > div:nth-child(3n) { border-color: var(--green); }

/* more */
.more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.more-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.more-card p { color: #b6bfcc; }
.more-card .kicker { margin-bottom: 8px; }

.section.tip { text-align: center; }
.section.tip p { color: var(--muted); font-size: 17px; }

/* app page */
.app-hero { border-bottom: 1px solid var(--line); background: radial-gradient(800px 380px at 85% 0, hsl(var(--h) 80% 55% / .16), transparent 60%), var(--bg); }
.app-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.crumb { color: var(--muted); text-decoration: none; font-size: 14px; }
.title-row { display: flex; gap: 16px; align-items: center; margin: 18px 0 14px; }
.title-row .app-icon { width: 72px; height: 72px; }
.title-row h1 { margin: 0; font-size: clamp(34px, 4.5vw, 52px); }
.hero-shot { display: block; width: 100%; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.small-print { color: var(--muted); font-size: 13px; }
.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; }
.long { font-size: 17px; color: #c4ccd8; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(40,200,64,.18); }
aside { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; align-self: start; }
.facts { width: 100%; border-collapse: collapse; font-size: 14px; }
.facts th { text-align: left; color: var(--muted); font-weight: 500; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; width: 38%; }
.facts td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts a { color: var(--accent); }

/* prose */
.prose p, .prose li { color: #c4ccd8; font-size: 17px; }
.prose h2 { font-size: 24px; margin-top: 34px; }
.prose a { color: var(--accent); }
.prose.center { text-align: center; }

/* footer */
footer.site { border-top: 1px solid var(--line); background: var(--bg2); padding: 48px 0 28px; margin-top: 0; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.foot-brand img { margin-bottom: 8px; }
.foot-col h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-col:nth-child(2) { display: grid; grid-template-columns: 1fr 1fr; align-content: start; } .foot-col:nth-child(2) h4 { grid-column: 1 / -1; }
.foot-col a { text-decoration: none; color: #c4ccd8; } .foot-col a:hover { color: var(--accent); }
.foot-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; max-width: 90ch; }

@media (max-width: 900px) {
  .hero-grid, .app-hero-grid, .two { grid-template-columns: 1fr; }
  .hero-art { order: -1; } .hero-art img { width: 240px; }
  .grid, .grid.three, .featured, .why { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; }
  .nav nav a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .grid, .grid.three, .featured, .why, .more, .foot-top { grid-template-columns: 1fr; }
  .section { padding: 52px 0; } .hero-grid { padding-top: 40px; }
  .brand em { display: none; }
}
