/* IceCore — site styles. Same palette and type as the launcher. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --deep: #081634;
  --navy: #0d2050;
  --blue: #2f6bdc;
  --ice: #cfe0ff;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .12);
  --line: rgba(255, 255, 255, .16);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1180px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: radial-gradient(1200px 800px at 75% -10%, #1d4596 0%, transparent 60%), linear-gradient(180deg, var(--navy), var(--deep) 70%);
  background-color: var(--deep);
  color: var(--fg);
  font: 450 17px/1.6 "Inter", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ice); color: var(--navy); }

/* Animated background (WebGL) + film grain */
#ice { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity 1.4s var(--ease); }
#ice.on { opacity: 1; }
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Brand */
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 750 19px/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: -.01em;
}
.logo svg { width: 22px; height: 22px; fill: #fff; stroke: none; }
.logo.small { font-size: 16px; }
.logo.small svg { width: 18px; height: 18px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  max-width: var(--wrap); margin: 0 auto; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(8, 22, 52, .6); backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--faint); transition: opacity .3s var(--ease);
  left: calc(50% - 50vw); right: calc(50% - 50vw);
}
.nav.scrolled::before { opacity: 1; }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); padding: 8px 12px; border-radius: 10px; transition: color .2s, background-color .2s; }
.nav nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav .nav-cta { color: var(--navy); background: #fff; font-weight: 650; margin-left: 6px; }
.nav .nav-cta:hover { color: var(--navy); background: var(--ice); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  height: 54px; padding: 0 26px; border-radius: 16px;
  background: #fff; color: var(--blue); font-weight: 750; font-size: 17px; letter-spacing: -.01em;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn svg { width: 20px; height: 20px; stroke-width: 2.2; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.big { height: 60px; padding: 0 32px; font-size: 18px; }

/* Hero */
.hero {
  max-width: var(--wrap); margin: 0 auto; padding: 56px 28px 120px;
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center;
}
h1, h2 { font-family: "Archivo", sans-serif; font-stretch: 125%; letter-spacing: -.035em; line-height: .98; }
h1 { font-size: clamp(44px, 6.2vw, 84px); font-weight: 850; }
.lede { margin-top: 24px; max-width: 30ch; font-size: 20px; color: var(--muted); }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.meta { font-size: 14px; color: var(--muted); }

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.mock-wrap { animation: rise 1.1s .12s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Live launcher copy — same metrics as the app, scaled to fit */
.mock-wrap { position: relative; width: 100%; aspect-ratio: 980 / 600; }
.mock {
  position: absolute; left: 0; top: 0; width: 980px; height: 600px;
  transform-origin: 0 0; transform: scale(var(--s, .6));
  border-radius: 18px; overflow: hidden; color: #fff; font-family: "Inter", sans-serif;
  background:
    radial-gradient(900px 500px at 82% 30%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(155deg, rgba(81, 129, 225, .72), rgba(27, 62, 128, .78));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .22), 0 50px 100px -40px rgba(0, 0, 0, .7);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-user-select: none; user-select: none;
}
.m-bar { height: 48px; padding: 0 22px 0 26px; display: flex; align-items: center; justify-content: space-between; }
.m-brand { display: flex; align-items: center; gap: 9px; font: 750 15px/1 "Archivo", sans-serif; font-stretch: 125%; letter-spacing: -.01em; }
.m-brand svg { width: 18px; height: 18px; fill: #fff; stroke: none; }
.m-icons { display: flex; align-items: center; gap: 18px; color: rgba(255, 255, 255, .62); }
.m-icons svg { width: 16px; height: 16px; }
.m-icons i { width: 1px; height: 14px; background: var(--line); }
.m-left { position: absolute; left: 52px; top: 82px; bottom: 44px; display: flex; flex-direction: column; align-items: flex-start; }
.m-clock { font-weight: 900; font-size: 148px; line-height: .9; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.m-date { margin: 14px 0 0 6px; font-size: 16px; font-weight: 500; color: var(--muted); }
.m-pill {
  margin-top: auto; height: 34px; padding: 0 12px 0 14px; border-radius: 34px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 550;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--faint);
}
.m-pill svg { width: 14px; height: 14px; color: var(--muted); }
.m-play {
  margin-top: 14px; height: 56px; min-width: 220px; border-radius: 16px; display: grid; place-items: center;
  background: #fff; color: var(--blue); font-size: 17px; font-weight: 800; text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); transition: transform .25s var(--ease);
}
.m-play:hover { transform: translateY(-1px); }
.m-right { position: absolute; right: 40px; bottom: 44px; width: 360px; display: flex; flex-direction: column; align-items: center; }
#mSkin { width: 340px; height: 420px; cursor: grab; position: relative; z-index: 1; filter: saturate(.72) contrast(.94) brightness(1.02) drop-shadow(0 18px 24px rgba(0, 0, 0, .18)); }
#mSkin:active { cursor: grabbing; }
.m-floor { position: absolute; bottom: 62px; width: 150px; height: 22px; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); filter: blur(2px); }
.m-name { margin-top: 6px; }
.hint { position: absolute; right: 0; bottom: -36px; font-size: 13px; color: var(--muted); }

/* Features */
.features { max-width: var(--wrap); margin: 0 auto; padding: 40px 28px 40px; display: flex; flex-direction: column; gap: 140px; }
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.feature.flip .f-text { order: 2; }
.kicker { display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ice); margin-bottom: 16px; }
.feature h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; margin-bottom: 22px; }
.feature p { color: var(--muted); max-width: 42ch; }
.feature p + p { margin-top: 14px; }
.f-shot { position: relative; }
.f-shot img { width: 100%; border-radius: 18px; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .45)); }

/* Specs */
.specs { max-width: var(--wrap); margin: 160px auto 0; padding: 0 28px; }
.specs h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-bottom: 36px; }
.specs dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.specs dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--faint); }
.specs dt { font-weight: 650; }
.specs dd { color: var(--muted); }

/* Download */
.download { max-width: var(--wrap); margin: 160px auto 0; padding: 0 28px; }
.dl-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 28px 56px; border-radius: 28px;
  background: linear-gradient(155deg, rgba(81, 129, 225, .55), rgba(27, 62, 128, .6));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, .2);
  backdrop-filter: blur(20px) saturate(1.2);
}
.dl-mark { width: 56px; height: 56px; fill: #fff; stroke: none; margin: 0 auto 22px; display: block; }
.dl-card h2 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 850; }
.dl-card > p { margin: 14px auto 34px; color: var(--muted); max-width: 44ch; }
.dl-meta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.sum { margin: 22px auto 0; max-width: 640px; font-size: 13px; color: var(--muted); }
.sum summary { cursor: pointer; display: inline-block; text-decoration: underline; text-underline-offset: 3px; }
.sum code { display: block; margin-top: 10px; font: 12px/1.5 ui-monospace, Consolas, monospace; word-break: break-all; color: #fff; user-select: all; }
.copy { margin-top: 8px; font: inherit; color: #fff; background: rgba(255, 255, 255, .1); border: 0; border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.small { margin-top: 26px !important; font-size: 13px; color: var(--muted); }
.small a { color: #fff; }

/* Footer */
.foot { max-width: var(--wrap); margin: 140px auto 0; padding: 0 28px 44px; }
.foot-row { border-top: 1px solid var(--faint); padding-top: 32px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot nav a:hover { color: #fff; }
.disclaimer { margin-top: 22px; font-size: 13px; color: rgba(255, 255, 255, .45); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Help page */
.page { max-width: 780px; margin: 0 auto; padding: 48px 28px 0; }
.page h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 18px; }
.page .lede { margin: 0 0 56px; }
.page h2 { font-size: 30px; font-weight: 800; margin: 72px 0 18px; scroll-margin-top: 100px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 20px; margin-top: 10px; }
.page strong { color: #fff; font-weight: 600; }
.page code { font: 14px ui-monospace, Consolas, monospace; color: #fff; background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 6px; }
.faq details { border-top: 1px solid var(--faint); }
.faq details:last-child { border-bottom: 1px solid var(--faint); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font-weight: 600; font-size: 18px; scroll-margin-top: 100px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 300; color: var(--muted); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 22px; }
.page h2 .fr { font: 500 15px/1 "Inter", sans-serif; color: var(--muted); letter-spacing: 0; margin-left: 10px; }
.page a { color: #fff; text-underline-offset: 3px; }
.legal-grid { display: grid; grid-template-columns: 160px 1fr; gap: 10px 24px; margin-top: 12px; }
.legal-grid dt { color: #fff; font-weight: 600; }
.legal-grid dd { color: var(--muted); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 0 28px; }
.lost h1 { font-size: clamp(80px, 14vw, 180px); }
.lost p { color: var(--muted); margin: 10px 0 30px; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 64px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .f-text { order: 0; }
  .features { gap: 100px; }
  .specs dl { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { padding: 16px 20px; }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero, .features, .specs, .download, .page, .foot { padding-left: 20px; padding-right: 20px; }
  .lede { font-size: 18px; }
  .specs dl > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-grid { grid-template-columns: 1fr; gap: 2px; }
  .legal-grid dd { margin-bottom: 10px; }
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
