/*
 * KinetiBloom landing page.
 *
 * Dark-first and deliberately committed to one look, the way a game site is
 * rather than the way a document is. Original styling; no framework, no web
 * fonts, no external requests of any kind.
 *
 * Accessibility is not traded away for atmosphere:
 *   - Body and heading text clear WCAG AA against their actual backgrounds.
 *   - Every animation is gated behind prefers-reduced-motion.
 *   - Focus is always visible, on a colour that reads against the dark ground.
 *   - prefers-contrast: more swaps in flat high-contrast surfaces.
 */

:root {
  --bg: #080c0a;
  --bg-2: #0d1411;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.2);

  --ink: #eaf2ec;
  --ink-soft: #9db0a4;
  --ink-dim: #75887c;

  --gold: #f0be4d;          /* the lamp */
  --green: #7fd4a8;         /* growth */
  --green-deep: #2f6b4f;

  --focus: #8fd4ff;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 70rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw + 13px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

.skip {
  position: absolute; left: -9999px;
  background: var(--gold); color: #12100a; font-weight: 700;
  padding: 0.8rem 1.2rem; border-radius: var(--radius); z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------------- top bar ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 1rem; height: 62px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: -0.03em; font-size: 1.1rem; }
.logo .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 14px 2px rgba(240, 190, 77, 0.55);
  flex: none;
}
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 46px; padding: 0.6rem 1.3rem;
  font: inherit; font-weight: 650;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink);
  cursor: pointer; text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-dim); transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(180deg, #ffd571, var(--gold));
  color: #17130a; border-color: transparent; font-weight: 750;
  box-shadow: 0 8px 26px -10px rgba(240, 190, 77, 0.75);
}
.btn--primary:hover { background: linear-gradient(180deg, #ffdd8a, #f5c65b); }
.btn--lg { min-height: 56px; padding: 0.8rem 1.9rem; font-size: 1.06rem; }

/* ---------------- hero ---------------- */

.hero { position: relative; isolation: isolate; overflow: hidden; }

.hero-canvas-wrap {
  position: absolute; inset: 0; z-index: -2;
}
#hero-canvas { width: 100%; height: 100%; display: block; filter: saturate(0.86) brightness(0.62); }

/* Two overlays: a vertical scrim for text contrast, and a warm glow anchored
   where the lamp sits, so the artwork and the page feel like one image. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 62%, rgba(240, 190, 77, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(8, 12, 10, 0.82) 0%, rgba(8, 12, 10, 0.5) 42%, rgba(8, 12, 10, 0.95) 100%);
}

.hero-inner {
  position: relative;
  min-height: min(88vh, 780px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(4rem, 12vh, 8rem);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  align-self: flex-start;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(240, 190, 77, 0.1);
  border: 1px solid rgba(240, 190, 77, 0.32);
  padding: 0.4rem 0.9rem; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  font-weight: 800;
  max-width: 15ch;
  margin-bottom: 0.35em;
}
.hero h1 .accent {
  background: linear-gradient(96deg, var(--gold), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead {
  font-size: clamp(1.05rem, 1.4vw + 0.7rem, 1.35rem);
  color: var(--ink-soft); max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.hero-note {
  margin-top: 1.6rem; font-size: 0.92rem; color: var(--ink-dim);
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-note span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none;
}

/* ---------------- sections ---------------- */

section { padding-block: clamp(3.5rem, 9vh, 6.5rem); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 0; }

.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------------- cards ---------------- */

.grid { display: grid; gap: 1.1rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.5rem 1.6rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); margin-bottom: 0; font-size: 0.98rem; }
.card .num {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(127, 212, 168, 0.13);
  border: 1px solid rgba(127, 212, 168, 0.3);
  color: var(--green); font-weight: 750; font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

/* Live stills of the actual simulation. */
.shot { margin: 0; }
.shot canvas {
  width: 100%; aspect-ratio: 8 / 5; display: block;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2);
}
.shot figcaption { margin-top: 0.75rem; color: var(--ink-soft); font-size: 0.93rem; }

/* ---------------- promise list ---------------- */

.promise { display: grid; gap: 0.55rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.promise li { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--ink-soft); }
.promise li svg { flex: none; margin-top: 0.32em; color: var(--green); }

/* ---------------- honest notice ---------------- */

.notice {
  border: 1px solid rgba(240, 190, 77, 0.34);
  background: linear-gradient(180deg, rgba(240, 190, 77, 0.09), rgba(240, 190, 77, 0.03));
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}
.notice h2 { font-size: 1.2rem; color: var(--gold); margin-bottom: 0.5rem; }
.notice p { color: var(--ink-soft); margin-bottom: 0.7rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------------- final call ---------------- */

.final { text-align: center; }
.final h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.final p { color: var(--ink-soft); max-width: 42ch; margin-inline: auto; }
.final .btn { margin-top: 1.2rem; }

/* ---------------- footer ---------------- */

footer.site { border-top: 1px solid var(--line); padding-block: 2.2rem; }
footer.site p { color: var(--ink-dim); font-size: 0.9rem; margin: 0; }

/* ---------------- scroll reveal ---------------- */
/*
 * Content is visible by default and is only hidden where scripting is actually
 * available to reveal it again. Hiding unconditionally is the standard bug in
 * scroll-animation code: if the script fails to load, is blocked, or throws,
 * the visitor is left staring at an empty page.
 *
 * Browsers without `scripting` support simply never match, so the content stays
 * visible and only loses the animation — the correct way to fail.
 */
@media (scripting: enabled) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 620ms ease, transform 620ms ease;
  }
  .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- forced high contrast ---------------- */

@media (prefers-contrast: more) {
  :root {
    --bg: #000; --bg-2: #000;
    --surface: #000; --surface-2: #111;
    --line: #fff; --line-2: #fff;
    --ink: #fff; --ink-soft: #fff; --ink-dim: #ddd;
  }
  .hero::before { background: rgba(0, 0, 0, 0.86); }
  #hero-canvas { filter: none; opacity: 0.35; }
  .btn--primary { background: var(--gold); }
}
