/* ============================================================
   social-dev teaser — style.css
   Palette D (Editorial light) locked in as the brand palette.
   ============================================================ */

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

:root {
  color-scheme: light;
  --container: 1180px;
  --radius: 14px;

  --bg: #f7f3e8;
  --bg-alt: #f1ecdd;
  --bg-card: #ffffff;
  --bg-card-hi: #faf6ec;
  --ink: #18181b;
  --ink-soft: #565664;
  --ink-dim: #8a8a99;
  --line: rgba(0, 0, 0, 0.08);
  --line-hi: rgba(0, 0, 0, 0.14);

  --accent: #ff5a36;
  --accent-2: #5b3df5;
  --accent-3: #18181b;
  --grad: linear-gradient(135deg, #ff5a36 0%, #5b3df5 100%);
  --btn-ink: #ffffff;

  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.10);
  --blob-alpha-1: 0.22;
  --blob-alpha-2: 0.18;
  --blob-alpha-3: 0.12;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; top: -100px; left: 16px;
  background: var(--accent); color: var(--btn-ink);
  padding: 10px 14px; border-radius: 8px;
  font-weight: 700; z-index: 999;
}
.skip:focus { top: 16px; }

.muted { color: var(--ink-dim); }

/* ============================================================
   Typography
   ============================================================ */

.h-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.h-tag.accent-magenta {
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent-2) 24%, transparent);
}
.h-tag.accent-violet {
  color: var(--accent-3);
  background: color-mix(in srgb, var(--accent-3) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent-3) 26%, transparent);
}

h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(40px, 7vw, 78px); }
h2 { font-size: clamp(30px, 5vw, 52px); }
h3 { font-size: clamp(18px, 2.2vw, 22px); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.brand-mark {
  width: 28px; height: 28px;
  background: var(--grad);
  border-radius: 7px;
  display: grid; place-items: center;
  color: var(--btn-ink);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--ink-soft); font-size: 14px; transition: color 0.2s; }
.nav-link:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center;
  padding: 10px 18px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 14px;
  border-radius: 999px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 14%, transparent);
}

@media (max-width: 720px) {
  .nav-link { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 140px 0 110px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.grid-overlay {
  position: absolute; inset: -20%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  will-change: transform;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.blob.b1 { width: 560px; height: 560px; background: var(--accent-3); top: -160px; left: -140px; opacity: var(--blob-alpha-1); animation: float1 14s ease-in-out infinite; }
.blob.b2 { width: 460px; height: 460px; background: var(--accent-2); bottom: -180px; right: -120px; opacity: var(--blob-alpha-2); animation: float2 16s ease-in-out infinite; }
.blob.b3 { width: 400px; height: 400px; background: var(--accent);   top: 28%; left: 45%; opacity: var(--blob-alpha-3); animation: float3 12s ease-in-out infinite; }

@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-25px, 25px); } }
@keyframes float3 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, 30px); } }

.sprite {
  position: absolute;
  display: grid; place-items: center;
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  color: var(--accent);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.sprite::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%);
  z-index: -1; opacity: 0.6;
}
.sprite.s1 { top: 14%;  left: 6%;   color: var(--accent); }
.sprite.s2 { top: 22%;  right: 8%;  color: var(--accent-2); }
.sprite.s3 { bottom: 22%; left: 10%; color: var(--accent-3); }
.sprite.s4 { bottom: 28%; right: 9%; color: var(--accent-3); }
.sprite.s5 { top: 56%;  left: 3%;   color: var(--accent-2); }
.sprite.s6 { top: 10%;  left: 46%;  color: var(--accent); }

@media (max-width: 880px) {
  .sprite { width: 52px; height: 52px; border-radius: 12px; }
  .sprite.s5, .sprite.s6 { display: none; }
}
@media (max-width: 600px) {
  .sprite.s3, .sprite.s4 { display: none; }
}

.hero-inner {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.pulse {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0    color-mix(in srgb, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent);  }
  100% { box-shadow: 0 0 0 0    color-mix(in srgb, var(--accent) 0%, transparent);  }
}

.hero-title { margin-bottom: 24px; }
.hero-lead {
  font-size: clamp(15px, 1.55vw, 19px);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ============================================================
   Subscribe form
   ============================================================ */

.subscribe-form {
  display: flex; gap: 6px;
  max-width: 480px; margin: 0 auto;
  padding: 6px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.subscribe-form:focus-within {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}
.subscribe-form input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  padding: 12px 16px; font-size: 15px;
}
.subscribe-form input::placeholder { color: var(--ink-dim); }
.subscribe-form button {
  border: 0; cursor: pointer;
  padding: 12px 22px;
  background: var(--grad);
  color: var(--btn-ink);
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
  white-space: nowrap;
}
.subscribe-form button:hover {
  transform: translateY(-1px); filter: brightness(1.08);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 22%, transparent);
}
.subscribe-form button:active { transform: translateY(0); }

.subscribe-form.big { max-width: 560px; padding: 7px; }
.subscribe-form.big input { font-size: 16px; padding: 14px 18px; }
.subscribe-form.big button { padding: 14px 26px; }

@media (max-width: 460px) {
  .subscribe-form { flex-direction: column; padding: 10px; border-radius: 18px; }
  .subscribe-form input { text-align: center; padding: 14px; }
  .subscribe-form button { width: 100%; padding: 14px; }
}

.form-status { margin-top: 14px; font-size: 14px; min-height: 20px; }
.form-status.ok  { color: var(--accent); }
.form-status.err { color: var(--accent-2); }

.subscribe-note { margin-top: 10px; font-size: 13px; color: var(--ink-dim); }

/* ============================================================
   Scroll cue
   ============================================================ */

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 38px;
  border: 1.5px solid var(--ink-dim);
  border-radius: 999px;
  opacity: 0.7;
}
.scroll-cue span {
  display: block; width: 3px; height: 6px;
  background: var(--ink-soft);
  border-radius: 3px;
  margin: 7px auto 0;
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(10px); opacity: 0.2; }
}
@media (max-width: 720px) { .scroll-cue { display: none; } }

/* ============================================================
   Sections
   ============================================================ */

section.s { position: relative; padding: 120px 0; }
section.s-tint {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-3) 4%, transparent) 50%, transparent);
}
section.s-tint::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 80% 20%, color-mix(in srgb, var(--accent-2) 6%, transparent), transparent 50%),
    radial-gradient(ellipse at 20% 80%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 50%);
  pointer-events: none;
}
section.s > .container { position: relative; z-index: 1; }

.s-head { text-align: center; max-width: 760px; margin: 0 auto 70px; }
.s-head h2 { margin-bottom: 16px; }
.s-head p  { color: var(--ink-soft); font-size: 17px; }

/* ============================================================
   Concept
   ============================================================ */

.concept-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 70px;
  align-items: center;
}
.concept-text h2 { margin: 8px 0 24px; }
.concept-text p  { color: var(--ink-soft); margin-bottom: 16px; font-size: 16px; }
.concept-text strong { color: var(--ink); }

@media (max-width: 880px) {
  .concept-grid { grid-template-columns: 1fr; gap: 50px; }
}

.concept-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.visual-head {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 2%, transparent);
}
.visual-head .dot { width: 10px; height: 10px; border-radius: 50%; }
.visual-head .dot.r { background: #ff5f56; }
.visual-head .dot.y { background: #ffbd2e; }
.visual-head .dot.g { background: #27c93f; }
.visual-head .visual-title {
  margin-left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
}
.visual-live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.visual-live .pulse { width: 6px; height: 6px; }

.commitlog {
  position: relative;
  height: calc(100% - 50px);
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
  padding: 0 18px;
}
.commitlog-inner {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 2;
  animation: scrollUp 45s linear infinite;
}
@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.commit-line {
  display: grid;
  grid-template-columns: 64px 78px 1fr;
  gap: 12px;
  align-items: baseline;
  color: var(--ink-soft);
  white-space: nowrap;
}
.commit-line .hash { color: var(--accent); }
.commit-line .who  { color: var(--accent-3); }
.commit-line .msg  { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   Steps
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  position: relative;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-hi); background: var(--bg-card-hi); }
.step-num {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--accent);
  padding: 8px 11px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 8px;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; font-size: 19px; }
.step p  { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Callout (e.g. "Even the first game is your call")
   ============================================================ */

.callout {
  position: relative;
  text-align: center;
  padding: 110px 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-3) 6%, transparent), color-mix(in srgb, var(--accent) 4%, transparent));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.callout::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 30% 50%, color-mix(in srgb, var(--accent-2) 6%, transparent), transparent 50%),
    radial-gradient(ellipse at 70% 50%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 50%);
}
.callout > .container { position: relative; z-index: 1; }
.callout-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 7px 12px;
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 24%, transparent);
  border-radius: 999px;
  margin-bottom: 24px;
}
.callout-chip .pulse {
  background: var(--accent-2);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 60%, transparent);
  animation: pulse-2 2s infinite;
}
@keyframes pulse-2 {
  0%   { box-shadow: 0 0 0 0    color-mix(in srgb, var(--accent-2) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent-2) 0%, transparent);  }
  100% { box-shadow: 0 0 0 0    color-mix(in srgb, var(--accent-2) 0%, transparent);  }
}
.callout h2 { font-size: clamp(28px, 4.5vw, 46px); margin-bottom: 18px; }
.callout p { color: var(--ink-soft); max-width: 580px; margin: 0 auto; font-size: 17px; }

/* ============================================================
   Features
   ============================================================ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  position: relative;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.feat:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--accent) 8%, transparent);
}
.feat-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2) 18%, transparent));
  border: 1px solid var(--line-hi);
  display: grid; place-items: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p  { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .features { grid-template-columns: 1fr; } }

/* ============================================================
   Roadmap
   ============================================================ */

.roadmap {
  display: grid; gap: 0;
  max-width: 760px; margin: 0 auto;
}
.road-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.road-item:last-child { border-bottom: 1px solid var(--line); }
.road-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 4px;
}
.road-phase.current { color: var(--accent); }
.road-body h3 { font-size: 19px; margin-bottom: 6px; }
.road-body p  { color: var(--ink-soft); font-size: 15px; }

@media (max-width: 580px) {
  .road-item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
}

/* ============================================================
   CTA
   ============================================================ */

.cta-section {
  text-align: center;
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 50%, color-mix(in srgb, var(--accent-3) 18%, transparent), transparent 55%),
    radial-gradient(ellipse at 70% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 40%);
}
.cta-section > .container { position: relative; z-index: 1; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section > .container > p {
  color: var(--ink-soft); margin: 0 auto 36px;
  font-size: 17px; max-width: 540px;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--ink-dim);
  font-size: 14px;
}
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ============================================================
   Reveal on scroll
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Focus
   ============================================================ */

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

/* ============================================================
   HERO v2 (image-2 style: left text + right 4-step process)
   ============================================================ */

.hero2 {
  position: relative;
  padding: 110px 0 60px;
  overflow: hidden;
}
.hero2-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero2-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.4;
}
.hero2-blob.hb1 { width: 360px; height: 360px; background: var(--accent);   top: -100px; left: -80px; }
.hero2-blob.hb2 { width: 320px; height: 320px; background: var(--accent-2); top: 200px; right: -60px; opacity: 0.3; }
.hero2-blob.hb3 { width: 280px; height: 280px; background: var(--accent);   bottom: -80px; left: 40%; opacity: 0.18; }

.hero2-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(560px, 1.4fr);
  gap: 60px;
  align-items: start;
}
@media (max-width: 1100px) {
  .hero2-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* hero left */
.hero2-left { position: relative; padding-top: 16px; }

.hero2-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 7px 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero2-title {
  font-size: clamp(40px, 5.8vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero2-lead {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 460px;
}

.hero2-ctas {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  border: 0;
  transition: transform 0.18s, box-shadow 0.18s, filter 0.18s, background 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: var(--btn-ink);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-secondary {
  background: var(--bg-card);
  color: var(--ink);
  border: 1.5px solid var(--line-hi);
}
.btn-secondary:hover { background: var(--bg-card-hi); transform: translateY(-2px); }
.btn-secondary svg { color: var(--accent); }

/* Floating decorative cards in hero */
.hero2-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
}
@media (min-width: 1100px) {
  .hero2-floats { display: block; }
}
.float-card {
  position: absolute;
  width: 52px; height: 52px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid; place-items: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  animation: float-y 6s ease-in-out infinite;
}
.float-card.fc-chat  { top: 30px;  right: -10px; color: var(--accent-2); animation-delay: 0s; }
.float-card.fc-heart { top: 200px; left: -30px;  color: var(--accent);   animation-delay: 1.2s; }
.float-card.fc-check { top: 90px;  right: 60px;  color: #16a34a;         animation-delay: 2.4s; }
.float-card.fc-code  { top: 360px; left: 280px;  color: var(--ink);      animation-delay: 1.8s; }
.float-card.fc-star  { top: 320px; right: 20px;  color: #f59e0b;         animation-delay: 0.6s; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* hero right — process headline + 4 cards */
.process-headline {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}

.proc-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
}
@media (max-width: 1280px) {
  .proc-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .proc-arrow { display: none; }
}
@media (max-width: 580px) {
  .proc-cards { grid-template-columns: 1fr; }
}

.proc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.proc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08); }

.proc-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.proc-icon-wrap.pi-purple { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.proc-icon-wrap.pi-coral  { background: color-mix(in srgb, var(--accent) 14%, transparent);   color: var(--accent); }
.proc-icon-wrap.pi-blue   { background: color-mix(in srgb, #4080e6 14%, transparent);          color: #4080e6; }
.proc-icon-wrap.pi-orange { background: color-mix(in srgb, #f97316 14%, transparent);          color: #f97316; }

.proc-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.proc-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 14px;
  min-height: 36px;
}

.proc-mock {
  background: color-mix(in srgb, var(--ink) 3%, transparent);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  font-size: 11.5px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
}

.mock-chat-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.mock-chat-row .mock-text {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink);
}
.mock-chat-row .mock-like {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--accent); font-size: 10px; font-weight: 600;
  flex-shrink: 0;
}
.mock-btn {
  margin-top: 4px;
  padding: 6px 10px;
  border: 1px dashed var(--accent-2);
  border-radius: 7px;
  background: transparent;
  color: var(--accent-2);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  cursor: default;
}

.mock-vote-row { display: flex; flex-direction: column; gap: 3px; }
.mock-vote-row .vote-line {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink);
}
.mock-vote-row .vote-pct { color: var(--ink-soft); font-size: 10px; }
.vote-bar { height: 5px; background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 3px; overflow: hidden; }
.vote-fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.mock-winner {
  margin-top: 6px;
  padding: 7px 8px;
  background: color-mix(in srgb, #fde047 30%, transparent);
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: #854d0e;
  text-align: center;
}

.proc-mock-code {
  background: #1a1428;
  border-color: #2a1f3d;
  color: #e2e0ea;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  line-height: 1.55;
}
.proc-mock-code .code-line { white-space: nowrap; }
.proc-mock-code .kw { color: #ff79c6; }
.proc-mock-code .fn { color: #50fa7b; }
.proc-mock-code .ty { color: #8be9fd; }
.proc-mock-code .str { color: #f1fa8c; }
.code-status {
  margin-top: 6px; padding-top: 6px;
  border-top: 1px solid #2a1f3d;
  display: flex; align-items: center; gap: 6px;
  color: #50fa7b; font-size: 10px;
}
.code-dot {
  width: 6px; height: 6px;
  background: #50fa7b;
  border-radius: 50%;
  animation: dot-pulse 1.5s infinite;
}

.mock-check-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--ink);
}
.check-ok {
  display: inline-grid; place-items: center;
  width: 14px; height: 14px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}
.mock-live-btn {
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--grad);
  color: var(--btn-ink);
  border-radius: 8px;
  font-weight: 700;
  font-size: 11px;
  text-align: center;
}

.proc-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-dim);
}

.proc-tagline {
  margin-top: 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

/* ============================================================
   FOUR-GRID dashboard
   ============================================================ */

.four-section {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent-2) 3%, transparent), transparent);
}
.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 1180px) { .four-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .four-grid { grid-template-columns: 1fr; } }

.d-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}
.d-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.d-head h3 { font-size: 15px; font-weight: 700; }
.d-head .muted { color: var(--ink-dim); font-weight: 500; font-size: 12px; }

.d-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  background: color-mix(in srgb, #16a34a 12%, transparent);
  color: #16a34a;
  border-radius: 999px;
}
.d-live .d-dot {
  width: 6px; height: 6px;
  background: #16a34a;
  border-radius: 50%;
  animation: dot-pulse 1.5s infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
.d-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.d-time strong { color: var(--accent); font-weight: 600; }

.link-ext {
  font-size: 11px;
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 500;
}
.link-ext:hover { text-decoration: underline; }

.d-tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 4px;
}
.tab {
  border: 0; background: transparent;
  font-size: 11px; font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--ink-soft);
  cursor: default;
}
.tab.on {
  background: var(--ink);
  color: var(--bg);
}

.discussions {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
}
.discussions li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 2.5%, transparent);
  align-items: center;
}
.d-av { width: 32px; height: 32px; border-radius: 50%; }
.d-av.av-1 { background: linear-gradient(135deg, #ff8a5b, #ff5a36); }
.d-av.av-2 { background: linear-gradient(135deg, #93c5fd, #5b3df5); }
.d-av.av-3 { background: linear-gradient(135deg, #fcd34d, #f97316); }
.d-av.av-4 { background: linear-gradient(135deg, #a78bfa, #ec4899); }
.d-meta { min-width: 0; }
.d-title {
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-sub {
  font-size: 11px; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.d-stats { display: flex; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.d-stats span { display: inline-flex; align-items: center; gap: 3px; }

.d-create {
  margin-top: 6px;
  padding: 11px 14px;
  background: var(--grad);
  color: var(--btn-ink);
  border: 0;
  border-radius: 9px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: filter 0.18s, transform 0.18s;
}
.d-create:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Vote card */
.vote-title { font-size: 15px; font-weight: 700; margin-top: 2px; }
.vote-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.vote-numbers {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 4px;
}
.vote-big {
  font-size: 32px; font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.vote-big small { font-size: 18px; opacity: 0.6; }
.vote-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-dim);
}
.tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.tag-gameplay { background: color-mix(in srgb, var(--accent-2) 12%, transparent); color: var(--accent-2); }

.vote-chart {
  width: 100%; height: 80px;
  margin-top: 8px;
}
.vote-axis {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--ink-dim);
  margin-top: 2px;
}

.why-this {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.why-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.why-head h5 { font-size: 12px; font-weight: 600; }
.see-all { font-size: 10px; color: var(--accent-2); text-decoration: none; font-weight: 500; }
.see-all:hover { text-decoration: underline; }
.why-this ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.why-this li {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.why-this .bullet {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.why-this .num {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-dim);
}

/* Pipeline card */
.pipeline-steps {
  list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.ps {
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px;
  padding: 4px 0;
}
.pm {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.ps.done .pm     { background: #16a34a; color: #fff; }
.ps.done         { color: var(--ink); }
.ps.active .pm   { background: var(--accent-2); color: #fff; animation: dot-pulse 1.5s infinite; }
.ps.active       { color: var(--ink); font-weight: 600; }
.ps.pending .pm  { background: transparent; color: var(--ink-dim); border: 1.5px solid var(--line-hi); }
.ps.pending      { color: var(--ink-dim); }
.pt {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-dim);
}

.code-snippet {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  margin-top: 4px;
}
.cs-head {
  padding: 7px 12px;
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-soft);
}
.cs-body {
  padding: 10px 12px;
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre;
  overflow-x: auto;
}
.cs-body .kw { color: var(--accent-2); font-weight: 600; }
.cs-body .fn { color: var(--accent); font-weight: 600; }
.cs-body .ty { color: #0891b2; }
.cs-body .str { color: #ea580c; }

.pipe-tagline {
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--ink-dim);
  font-style: italic;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Live Game card */
.game-preview-box {
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 800 / 450;
}
.game-svg { width: 100%; height: 100%; display: block; }

.recent-changes {
  display: flex; flex-direction: column; gap: 6px;
}
.rc-head {
  display: flex; justify-content: space-between; align-items: center;
}
.rc-head h5 { font-size: 12px; font-weight: 600; }
.recent-changes ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.recent-changes li {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.5px;
}
.rc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0;
}
.rc-dot.rd-1 { background: #16a34a; }
.rc-dot.rd-2 { background: var(--accent-2); }
.rc-dot.rd-3 { background: #f59e0b; }
.rc-title {
  flex: 1; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-dim);
  flex-shrink: 0;
}

/* ============================================================
   WHY section
   ============================================================ */

.why-section {
  padding: 100px 0;
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
}

.why-title {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.why-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) { .values { grid-template-columns: 1fr; } }

.value {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.v-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.vi-purple   { background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--accent-2); }
.vi-magenta  { background: color-mix(in srgb, #ec4899 14%, transparent); color: #ec4899; }
.vi-coral    { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.vi-pink     { background: color-mix(in srgb, #f43f5e 14%, transparent); color: #f43f5e; }
.value h4 { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.value p  { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

/* Why illustration */
.why-illust {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, transparent), color-mix(in srgb, var(--accent-2) 12%, transparent));
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}
.why-illust img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.illust-placeholder {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  text-align: center;
  padding: 24px;
}
.illust-placeholder svg { color: var(--accent); opacity: 0.5; }
.illust-placeholder p { font-size: 13px; margin: 0; }
.illust-placeholder p.ip-hint { font-size: 11px; color: var(--ink-dim); }
.illust-placeholder code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  padding: 2px 6px;
  border-radius: 4px;
}
.why-illust.illust-fallback .illust-placeholder { display: flex; }

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .commitlog-inner, .blob, .pulse, .scroll-cue span { animation: none !important; }
}
