:root {
  --bg: #030712;
  --bg-elevated: #0a1220;
  --ink: #f4f7fb;
  --muted: #9aa8bc;
  --line: rgba(96, 165, 250, 0.22);
  --cyan: #60a5fa;
  --cyan-soft: rgba(96, 165, 250, 0.14);
  --glow: rgba(125, 190, 255, 0.45);
  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --max: 1120px;
  --narrow: 720px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 160, 0.18), transparent 55%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #93c5fd;
}

em {
  font-style: italic;
  color: #dbeafe;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.6rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Top bar —— */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(to bottom, rgba(3, 7, 18, 0.88), rgba(3, 7, 18, 0));
  pointer-events: none;
  transition: background 0.35s var(--ease);
}

.topbar.is-scrolled {
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(96, 165, 250, 0.12);
}

.topbar a {
  pointer-events: auto;
}

.topbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.topbar-nav a:hover {
  color: var(--ink);
}

.topbar-cta {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink) !important;
  background: rgba(10, 18, 32, 0.55);
}

.topbar-cta:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: var(--cyan-soft);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-art,
.hero-video {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 42%;
  will-change: transform;
  transform: translate3d(0, 0, 0) scale(1.05);
}

.hero.has-video .hero-art {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.hero-video {
  position: absolute;
  inset: 0;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(3, 7, 18, 0.96) 0%, rgba(3, 7, 18, 0.4) 34%, transparent 58%),
    linear-gradient(to bottom, rgba(3, 7, 18, 0.55) 0%, transparent 22%);
  pointer-events: none;
}

.hero-beam {
  position: absolute;
  left: 50%;
  top: 18%;
  width: min(4px, 0.4vw);
  height: 42%;
  transform: translateX(-50%);
  background: linear-gradient(
    to top,
    transparent,
    rgba(147, 197, 253, 0.15),
    rgba(191, 219, 254, 0.55),
    transparent
  );
  filter: blur(1.5px);
  opacity: 0.55;
  animation: beam-breathe 5.5s var(--ease) infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes beam-breathe {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-50%) scaleY(0.96);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scaleY(1.02);
  }
}

.hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.25rem 3.5rem;
  text-align: center;
}

.hero-slogan {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(96, 165, 250, 0.35);
}

.hero-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.btn-primary {
  color: #031018;
  background: linear-gradient(180deg, #dbeafe 0%, #93c5fd 100%);
  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.35),
    0 0 32px rgba(96, 165, 250, 0.35);
}

.btn-primary:hover {
  color: #020617;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(191, 219, 254, 0.55),
    0 0 42px rgba(96, 165, 250, 0.5);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

/* —— Reveal on scroll —— */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal[data-reveal-delay="1"] {
  --reveal-delay: 1;
}
.reveal[data-reveal-delay="2"] {
  --reveal-delay: 2;
}
.reveal[data-reveal-delay="3"] {
  --reveal-delay: 3;
}
.reveal[data-reveal-delay="4"] {
  --reveal-delay: 4;
}

/* —— Sections —— */
.section {
  position: relative;
  padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 4vw, 2rem);
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section-inner.narrow {
  width: min(100%, var(--narrow));
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.slogan-line {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.5vw, 3.35rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.slogan-line em {
  font-style: italic;
  font-weight: 650;
  background: linear-gradient(90deg, #e0f2fe, #60a5fa 55%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 36rem;
}

.section-head h2,
.section-request h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p,
.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.lede {
  margin-bottom: 2.5rem;
}

.inline-slogan {
  font-style: italic;
  color: #bfdbfe;
}

.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.pillars li {
  display: grid;
  gap: 0.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.pillars li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pillar-label {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  color: var(--ink);
}

.pillar-copy {
  color: var(--muted);
}

.about-vision {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.about-vision h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.about-vision p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.about-vision p:last-child {
  margin-bottom: 0;
}

/* —— Ambient motion band —— */
.ambient {
  position: relative;
  height: clamp(9rem, 22vw, 14rem);
  margin: 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.ambient-frame {
  position: absolute;
  inset: -8% 0;
  overflow: hidden;
}

.ambient-ken {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(96, 165, 250, 0.2), transparent 60%),
    url("assets/generated/section-texture.png") center / cover no-repeat;
  opacity: 0.55;
  animation: ken-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

.ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.ambient.has-video .ambient-ken {
  opacity: 0;
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    transparent 18%,
    transparent 82%,
    var(--bg) 100%
  );
  pointer-events: none;
}

@keyframes ken-drift {
  from {
    transform: scale(1.08) translate3d(-2%, 0, 0);
  }
  to {
    transform: scale(1.18) translate3d(2%, -2%, 0);
  }
}

/* —— Tutorials —— */
.section-tutorials {
  isolation: isolate;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(37, 99, 160, 0.12), transparent 60%);
}

.section-tutorials::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/generated/section-texture.png") center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

@media (max-width: 900px) {
  .tutorial-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.tutorial-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tutorial-card h3 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
}

.tutorial-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tutorial-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: not-allowed;
  background: var(--bg-elevated);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.tutorial-card:not(.is-placeholder) .tutorial-media {
  cursor: pointer;
}

.tutorial-card:not(.is-placeholder) .tutorial-media:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 36px rgba(96, 165, 250, 0.18);
  transform: translateY(-2px);
}

.tutorial-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tutorial-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 7, 18, 0.55), transparent 42%);
  pointer-events: none;
}

.play-glyph {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(191, 219, 254, 0.45);
  background: rgba(3, 7, 18, 0.55);
  box-shadow: 0 0 24px rgba(96, 165, 250, 0.25);
}

.play-glyph::after {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent #e2e8f0;
}

.tutorial-soon {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(3, 7, 18, 0.7);
  border: 1px solid var(--line);
}

/* —— Beta steps —— */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.35rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  color: var(--muted);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
}

.steps strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
}

/* —— Request —— */
.section-request {
  padding-top: 2rem;
}

.request-panel {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(96, 165, 250, 0.12), transparent 55%),
    rgba(10, 18, 32, 0.65);
  box-shadow: 0 0 60px rgba(37, 99, 160, 0.12);
}

.request-panel p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: var(--muted);
}

.request-panel .eyebrow {
  margin-bottom: 0.85rem;
}

.invite-form {
  display: grid;
  gap: 0.85rem;
  max-width: 26rem;
  margin: 0 auto;
  text-align: left;
}

.invite-form .field label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.invite-form .optional {
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.75;
}

.invite-form input,
.invite-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.55);
  color: var(--ink);
  font: inherit;
}

.invite-form textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.invite-form input:focus,
.invite-form textarea:focus {
  outline: 2px solid rgba(96, 165, 250, 0.75);
  outline-offset: 2px;
}

.invite-form .btn {
  width: 100%;
  margin-top: 0.25rem;
}

.invite-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status,
.form-thanks {
  margin: 0 !important;
  min-height: 1.4em;
  text-align: center;
  font-size: 0.95rem;
}

.request-panel.is-sent .form-thanks {
  width: 100%;
  max-width: none;
  margin: 0 auto !important;
  color: var(--muted);
  font-size: 1.12rem;
  text-wrap: balance;
}

/* —— Footer —— */
.footer {
  padding: 3rem clamp(1.25rem, 4vw, 2rem) 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 0.45rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-tag {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: #bfdbfe;
  font-size: 1rem;
}

.footer-meta,
.footer-privacy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-privacy {
  max-width: 36rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .topbar-nav a:not(.topbar-cta) {
    display: none;
  }

  .hero-foot {
    padding-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-beam,
  .ambient-ken {
    animation: none;
  }

  .hero-art,
  .hero-video {
    height: 100%;
    transform: none !important;
  }
}
