:root {
  --bg: #070b16;
  --ink: #eef3fa;
  --muted: #8fa2bd;
  --dim: #6b7a92;
  --ice: #38bdf8;
  --ice-soft: #9fe3ff;
  --live: #ff5a5f;
  --line: rgba(143, 162, 189, 0.16);
  --maxw: 1060px;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1000px 560px at 78% -10%, rgba(56,189,248,0.16), transparent 60%),
    radial-gradient(700px 400px at 6% 6%, rgba(56,189,248,0.06), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* main holds hero + explainer and centres them as one balanced group */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(56px, 9vh, 104px);
  padding: 32px 0 6vh;
}

/* ---- top bar ---- */
.nav {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-dl {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color .15s, color .15s;
}
.nav-dl:hover { border-color: var(--ice); color: var(--ink); }
.nav-soon { cursor: default; }
.nav-soon:hover { border-color: var(--line); color: var(--muted); }

/* ---- hero: two columns on the laptop ---- */
.hero {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
}
h1 {
  font-size: clamp(44px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 720;
  margin: 0;
}
h1 .muted { color: var(--muted); }
.lede { color: var(--muted); font-size: 18px; margin: 18px 0 30px; max-width: 34ch; }
.cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 650; font-size: 16px;
  padding: 14px 26px; border-radius: 12px;
  background: linear-gradient(180deg, var(--ice-soft), var(--ice)); color: #06243a;
  box-shadow: 0 10px 30px rgba(56,189,248,0.28); transition: transform .12s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(56,189,248,0.38); }
.btn-soon {
  background: rgba(56,189,248,0.12);
  color: var(--ice-soft);
  border: 1px solid rgba(56,189,248,0.42);
  box-shadow: none;
  cursor: default;
}
.btn-soon:hover { transform: none; box-shadow: none; }
.fine { color: var(--dim); font-size: 13px; }

/* ---- demo tile ---- */
.hero-demo { display: flex; flex-direction: column; }
.tile {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1120;
  box-shadow: 0 28px 70px rgba(0,0,0,0.5);
}
.scene { position: absolute; inset: 0; background: linear-gradient(160deg, #20324f, #0f1b30); }
.blob { position: absolute; border-radius: 50%; filter: blur(28px); opacity: 0.75; }
.b1 { width: 44%; aspect-ratio: 1; background: #2f6f9e; left: -7%; top: -12%; animation: drift1 7s ease-in-out infinite; }
.b2 { width: 40%; aspect-ratio: 1; background: #6a4f8f; right: -9%; bottom: -14%; animation: drift2 9s ease-in-out infinite; }
.subject {
  position: absolute; left: 50%; bottom: 0;
  width: 60%; height: auto;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35));
  animation: bob 3.8s ease-in-out infinite;
}
@keyframes drift1 { 50% { transform: translate(26px, 20px) scale(1.06); } }
@keyframes drift2 { 50% { transform: translate(-22px, -18px) scale(1.08); } }
@keyframes bob {
  0%,100% { transform: translateX(calc(-50% - 5px)) translateY(0) rotate(2.4deg); }
  50%     { transform: translateX(calc(-50% + 5px)) translateY(-13px) rotate(-2.4deg); }
}

.frost {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(159,227,255,0.10), transparent 60%),
    radial-gradient(80% 80% at 50% 100%, rgba(56,189,248,0.16), transparent 70%);
  box-shadow: inset 0 0 0 2px rgba(159,227,255,0.30), inset 0 0 60px rgba(56,189,248,0.25);
  backdrop-filter: saturate(0.7) brightness(1.04);
}

.pill {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px);
  background: rgba(255,90,95,0.22); color: #ffd9da; border: 1px solid rgba(255,90,95,0.5);
}
.snowflake {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%) scale(0.4);
  font-size: 34px; color: #eafaff; opacity: 0; transition: opacity .4s, transform .4s; z-index: 4;
  text-shadow: 0 0 18px rgba(159,227,255,0.8);
}

/* coffee badge — appears only once you've "stepped out" (frozen) */
.coffee {
  position: absolute; bottom: 12px; left: 12px; z-index: 4;
  width: 38px; height: 38px;
  opacity: 0; transform: translateY(6px) scale(0.9);
  transition: opacity .45s ease, transform .45s ease;
  filter: drop-shadow(0 2px 10px rgba(159,227,255,0.45));
}
.coffee svg { width: 100%; height: 100%; display: block; }
.coffee .steam { opacity: 0.5; animation: steam 2.6s ease-in-out infinite; }
@keyframes steam { 0%,100% { opacity: 0.25; transform: translateY(1px); } 50% { opacity: 0.85; transform: translateY(-2px); } }
.freeze-btn {
  position: absolute; bottom: 14px; right: 14px; z-index: 3;
  border: 1px solid rgba(159,227,255,0.45); background: rgba(8,14,26,0.55);
  color: #eaf6ff; font-weight: 650; font-size: 14px; padding: 9px 16px; border-radius: 10px;
  cursor: pointer; backdrop-filter: blur(6px); transition: background .15s, border-color .15s, transform .1s;
}
.freeze-btn:hover { border-color: var(--ice); background: rgba(56,189,248,0.18); }
.freeze-btn:active { transform: scale(0.97); }

.tile[data-state="frozen"] .scene,
.tile[data-state="frozen"] .scene * { animation-play-state: paused; }
.tile[data-state="frozen"] .frost { opacity: 1; }
.tile[data-state="frozen"] .snowflake { opacity: 0.85; transform: translateX(-50%) scale(1); }
.tile[data-state="frozen"] .coffee { opacity: 1; transform: none; }

.cap { color: var(--dim); font-size: 14px; text-align: center; margin: 16px 0 0; }

/* ---- explainer: a row across the laptop ---- */
.explain {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.explain h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0 0 30px;
  text-align: center;
}
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.steps li {
  background: rgba(17,26,48,0.5);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  font-size: 16px;
  color: #cdd8e7;
  line-height: 1.5;
}
.steps .ic {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  margin-bottom: 14px;
  color: var(--ice-soft);
  background: rgba(56,189,248,0.10);
  border: 1px solid rgba(56,189,248,0.28);
}
.steps .ic svg { width: 24px; height: 24px; display: block; }
.punch {
  margin: 30px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.punch span { color: var(--ice-soft); font-weight: 600; white-space: nowrap; }

/* ---- collapse for narrow / phone ---- */
@media (max-width: 860px) {
  main { justify-content: flex-start; gap: 56px; padding: 8px 0 8vh; }
  .nav { padding: 22px 22px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding: 8px 22px 0;
  }
  h1 { font-size: clamp(38px, 11vw, 52px); }
  .explain { padding: 0 22px; }
  .cta { align-items: center; }
  .hero-demo { order: 2; max-width: 460px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
