:root {
  --bg: #08080a;
  --bg-soft: #0e0e12;
  --card: #121216;
  --card-2: #16161c;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --txt: #f4f4f6;
  --muted: #9a9aa5;
  --faint: #6a6a75;
  --accent: #c8ff3d;
  --accent-dim: #a6d92e;
  --radius: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--txt);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- ambient background ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  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 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}
.bg-glow {
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  z-index: -2;
  background: radial-gradient(circle, rgba(200, 255, 61, 0.14), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(200, 255, 61, 0.06), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

/* ---------- layout helpers ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 28px;
}
.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 18px;
}
.section-head { margin-bottom: 56px; max-width: 640px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.section-head h2,
.about-copy h2,
.cta h2 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.accent { color: var(--accent); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--txt);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 100px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 0 0 0 rgba(200, 255, 61, 0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(200, 255, 61, 0.28);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--txt);
}
.btn-lg { padding: 16px 30px; font-size: 17px; }
.btn.full { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--txt);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-suffix { color: var(--faint); font-weight: 500; }
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
  position: relative;
}
.nav-links a:hover { color: var(--txt); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 190px 28px 90px;
  text-align: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(200, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); }
}
.hero-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 560px;
  margin: 0 auto 38px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 54px;
  margin-top: 76px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.stat span { color: var(--faint); font-size: 14px; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  background: var(--bg-soft);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: scroll 34s linear infinite;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- cards grid ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-2);
  background: var(--card-2);
}
.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  font-size: 24px;
  border-radius: 14px;
  background: rgba(200, 255, 61, 0.1);
  border: 1px solid rgba(200, 255, 61, 0.2);
  margin-bottom: 20px;
}
.card-mark {
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 22px;
  letter-spacing: 0.05em;
}
.card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 15px; }

/* ---------- stack / code window ---------- */
.stack {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
  align-items: center;
}
.stack-copy p { color: var(--muted); margin: 20px 0 26px; font-size: 16px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-chips span {
  font-family: "Space Grotesk", ui-monospace, monospace;
  font-size: 14px;
  padding: 8px 15px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.lang-chips span:hover,
.lang-chips span.active {
  color: #0a0a0a;
  background: var(--accent);
  border-color: var(--accent);
}

.code-win {
  background: #0c0c10;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  height: 46px;
  background: #131319;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.code-bar .dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.code-bar .dot.r { background: #ff5f57; }
.code-bar .dot.y { background: #febc2e; }
.code-bar .dot.g { background: #28c840; }
.code-tabs { display: flex; gap: 4px; margin-left: 6px; }
.code-tab {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  color: var(--faint);
  background: none;
  border: none;
  padding: 7px 12px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.code-tab:hover { color: var(--muted); }
.code-tab.active { color: var(--txt); background: #0c0c10; }
.code-panel {
  display: none;
  margin: 0;
  padding: 22px 24px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #d7d7de;
  overflow-x: auto;
  tab-size: 2;
}
.code-panel.active { display: block; }
.code-panel code { white-space: pre; }
.tk-key { color: #ff7ac6; }
.tk-str { color: var(--accent); }
.tk-fn { color: #7cd4ff; }
.tk-com { color: var(--faint); font-style: italic; }
.tk-num { color: #ffb86b; }
.tk-punc { color: #9a9aa5; }

/* ---------- work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card { display: block; color: inherit; text-decoration: none; }
.work-thumb.game { background: #0b0b0e; }
.work-thumb.game::after { display: none; }
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(8, 8, 10, 0.72);
  border: 1px solid var(--line-2);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.work-play {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 600;
}
.work-play .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.work-card:hover .work-play .arrow { transform: translateX(4px); }
.work-cta { border-style: dashed; }
.work-cta:hover { border-color: var(--accent-dim); }
.cta-thumb {
  background:
    radial-gradient(circle at 50% 45%, rgba(200, 255, 61, 0.14), transparent 62%),
    #0b0b0e;
}
.cta-thumb::after { display: none; }
.cta-plus {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 58px;
  line-height: 1;
  color: var(--accent);
}
.work-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.work-thumb {
  height: 190px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, var(--h1), transparent 55%),
    linear-gradient(135deg, var(--h2), #0a0a0c);
  position: relative;
}
.work-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}
.work-thumb span {
  position: relative;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.work-body { padding: 24px; }
.work-body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.work-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span {
  font-size: 12.5px;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

/* ---------- process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step {
  border-top: 1px solid var(--line-2);
  padding-top: 22px;
}
.step-no {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}
.step h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin: 14px 0 8px;
}
.step p { color: var(--muted); font-size: 15px; }

/* ---------- about ---------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.about-copy p { color: var(--muted); margin: 18px 0; font-size: 16px; }
.about-copy .btn { margin-top: 12px; }
.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mini-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.mini-stat b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 34px;
  font-weight: 600;
  display: block;
  color: var(--accent);
}
.mini-stat span { color: var(--muted); font-size: 14px; }

/* ---------- pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-tag {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 10px;
}
.price-tag em {
  font-style: normal;
  font-size: 11px;
  color: #0a0a0a;
  background: var(--accent);
  padding: 3px 9px;
  border-radius: 100px;
}
.price {
  font-family: "Space Grotesk", sans-serif;
  font-size: 46px;
  font-weight: 600;
  margin: 16px 0 4px;
  letter-spacing: -0.02em;
}
.price b { font-size: 26px; color: var(--muted); vertical-align: super; font-weight: 500; }
.price span { font-size: 15px; color: var(--faint); font-weight: 400; }
.price-card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 26px; }
.price-card li {
  color: var(--muted);
  font-size: 14.5px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.price-card li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.price-card.featured {
  border-color: rgba(200, 255, 61, 0.35);
  background: linear-gradient(180deg, rgba(200, 255, 61, 0.06), var(--card));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 24px;
  transition: border-color 0.3s;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 500;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.plus {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
}
.plus::before, .plus::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq details[open] .plus::after { transform: rotate(90deg); opacity: 0; }
.faq details p {
  color: var(--muted);
  font-size: 15px;
  padding: 0 0 22px;
  max-width: 92%;
}

/* ---------- cta ---------- */
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 120px;
}
.cta-inner {
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 255, 61, 0.12), transparent 60%),
    var(--card);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 80px 40px;
  text-align: center;
}
.cta-inner p { color: var(--muted); margin: 18px 0 32px; font-size: 17px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 28px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .brand { font-size: 18px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--txt); }
.footer-copy { color: var(--faint); font-size: 14px; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cards-3 { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .stack { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 68px; left: 20px; right: 20px;
    flex-direction: column;
    gap: 4px;
    background: rgba(14, 14, 18, 0.96);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 20px;
  }
  .nav-links.open a { padding: 12px 0; }
  .section { padding: 84px 20px; }
  .steps { grid-template-columns: 1fr; }
  .about-panel { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 34px; }
  .cta-inner { padding: 56px 24px; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .status-dot { animation: none; }
  html { scroll-behavior: auto; }
}
