:root {
  --bg: #05070c;
  --ink: #f2f5fa;
  --muted: #97a3b6;
  --line: rgba(151, 163, 182, 0.18);
  --blue: #4da3ff;
  --ember: #ff9f40;
  --display: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { color-scheme: dark; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 110px 24px 140px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -60% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 55% 45% at 38% 30%, rgba(77, 163, 255, 0.16), transparent 65%),
    radial-gradient(ellipse 50% 40% at 66% 60%, rgba(255, 159, 64, 0.10), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.mark {
  display: block;
  margin: 0 auto 34px;
  border-radius: 50%;
  filter: drop-shadow(0 18px 50px rgba(77, 163, 255, 0.35));
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7.5vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 0 0 22px;
}

.tagline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 16px;
}

.subline {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  max-width: 36em;
  margin: 0 auto;
}

/* ---------- Product acts ---------- */

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.act {
  position: relative;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  padding: clamp(60px, 9vh, 110px) 0;
  border-top: 1px solid var(--line);
}

.act.flip .act-copy { order: 2; }
.act.flip .act-media { order: 1; }

/* Per-product ambient tint behind the media */
.act::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 58%;
  right: -8%;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, var(--accent, rgba(77, 163, 255, 0.12)), transparent 70%);
  pointer-events: none;
}

.act.flip::before { right: auto; left: -8%; }

.act-koegaki { --accent: rgba(255, 122, 26, 0.13); }
.act-habitflame { --accent: rgba(255, 138, 60, 0.13); }
.act-runwalk { --accent: rgba(110, 231, 135, 0.11); }
.act-dosepop { --accent: rgba(46, 196, 166, 0.12); }
.act-privatescan { --accent: rgba(107, 123, 255, 0.13); }
.act-smarthomeqr { --accent: rgba(91, 140, 255, 0.13); }
.act-dharmapath { --accent: rgba(249, 115, 22, 0.13); }

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
}

.chip {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.kicker span {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.kicker em {
  font-style: normal;
  color: var(--muted);
  margin-left: 10px;
}

.act h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 2.9rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 18px;
}

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  max-width: 30em;
  margin: 0 0 30px;
}

.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(151, 163, 182, 0.10);
  border: 1px solid rgba(151, 163, 182, 0.30);
  border-radius: 999px;
  padding: 13px 26px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover, .cta:focus-visible {
  transform: translateY(-2px);
  background: rgba(77, 163, 255, 0.12);
  border-color: var(--blue);
  box-shadow: 0 14px 40px rgba(77, 163, 255, 0.14);
}

.cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.cta-price {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--ember);
}

/* Media */

.act-media { position: relative; min-width: 0; }

.demo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6);
}

.shot {
  display: block;
  width: min(340px, 82%);
  height: auto;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(151, 163, 182, 0.28);
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.62);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 64px 24px 72px;
  text-align: center;
}

.mark-small {
  display: block;
  margin: 0 auto 18px;
  border-radius: 50%;
  opacity: 0.9;
}

.contact {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--blue);
  text-decoration: none;
}

.contact:hover, .contact:focus-visible { text-decoration: underline; }

.fine {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero { animation: settle 0.8s ease-out both; }
  .mark { animation: float 6s ease-in-out 0.8s infinite; }
  .js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .js .reveal.in { opacity: 1; transform: none; }
  @keyframes settle {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero { padding: 72px 24px 84px; }
  .act,
  .act.flip {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 56px 0;
  }
  .act.flip .act-copy { order: 1; }
  .act.flip .act-media { order: 2; }
  .act::before, .act.flip::before {
    right: -20%;
    left: -20%;
    width: auto;
  }
  .shot { width: min(300px, 86%); }
}
