:root {
  --bg: #0c0c10;
  --bg-alt: #131319;
  --surface: #1a1a22;
  --border: #2a2a35;
  --text: #f2f1ee;
  --muted: #9a99a6;
  --accent: #c6ff3d;
  --accent-ink: #0c0c10;
  --radius: 20px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent);
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 15px/1 var(--font-body);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
}

.btn--small {
  padding: 10px 18px;
  font-size: 14px;
}

.btn--full {
  width: 100%;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(12, 12, 16, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
}

.nav a:not(.btn) {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
  transition: transform 0.25s ease;
}

.burger[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 180px 0 120px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}

.blob--1 {
  top: -10%;
  right: -5%;
  width: 520px;
  height: 520px;
  background: rgba(198, 255, 61, 0.22);
  animation: float-1 18s ease-in-out infinite;
}

.blob--2 {
  top: 30%;
  right: 25%;
  width: 380px;
  height: 380px;
  background: rgba(124, 92, 255, 0.28);
  animation: float-2 22s ease-in-out infinite;
}

.blob--3 {
  bottom: -20%;
  left: -10%;
  width: 460px;
  height: 460px;
  background: rgba(0, 200, 255, 0.14);
  animation: float-3 26s ease-in-out infinite;
}

@keyframes float-1 {
  50% { transform: translate(-120px, 80px) scale(1.15); }
}

@keyframes float-2 {
  50% { transform: translate(140px, -60px) scale(0.85); }
}

@keyframes float-3 {
  50% { transform: translate(100px, -120px) scale(1.2); }
}

.hero__inner {
  position: relative;
}

.hero__title {
  font-size: clamp(36px, 7.5vw, 96px);
  font-weight: 800;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero__title .line > span {
  display: inline-block;
  animation: line-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.24s; }

@keyframes line-up {
  from { transform: translateY(110%) rotate(4deg); }
}

.shimmer {
  background: linear-gradient(100deg, var(--accent) 30%, #f4ffd6 50%, var(--accent) 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: line-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.24s both, shimmer 5s linear 1.4s infinite;
}

@keyframes shimmer {
  from { background-position: 150% 0; }
  to { background-position: -100% 0; }
}

.hero__lead {
  max-width: 560px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 19px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 720px;
  margin: 80px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

/* Global effects */
.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #7c5cff);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 61, 0.07), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}

.cursor-glow.is-active {
  opacity: 1;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 30;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  pointer-events: none;
  animation: grain 1s steps(4) infinite;
}

@keyframes grain {
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

main,
.footer {
  position: relative;
  z-index: 1;
}

.magnetic {
  transform: translate(var(--tx, 0), var(--ty, 0));
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.magnetic:hover {
  transform: translate(var(--tx, 0), var(--ty, 0));
}

.btn:not(.btn--ghost) {
  box-shadow: 0 0 0 0 rgba(198, 255, 61, 0);
}

.btn:not(.btn--ghost):hover {
  box-shadow: 0 10px 40px -8px rgba(198, 255, 61, 0.55);
}

/* Marquee */
.marquee {
  overflow: hidden;
  padding: 28px 0;
  border-block: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee span {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  white-space: nowrap;
}

.marquee span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Sections */
.section {
  padding: 120px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section__title {
  font-size: clamp(30px, 4.5vw, 52px);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card {
  position: relative;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.25s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(198, 255, 61, 0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  border-color: #44444f;
}

.card:hover::before {
  opacity: 1;
}

.card.is-tilting {
  transition: border-color 0.25s ease, transform 0.1s linear;
}

.card__num {
  margin-bottom: auto;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 14px;
}

.card h3 {
  font-size: 22px;
}

.card p {
  color: var(--muted);
}

.card--accent {
  justify-content: flex-end;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.card--accent:hover {
  border-color: var(--accent);
}

.card--accent::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.45), transparent 45%);
}

.card--accent p {
  color: rgba(12, 12, 16, 0.72);
}

.card__link {
  font-weight: 700;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 24px;
  border-top: 2px solid var(--border);
  counter-increment: step;
}

.step::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s;
}

.step.is-visible::after {
  transform: scaleX(1);
}

.step::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
}

.step h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.step p {
  color: var(--muted);
}

/* Why */
.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
}

.why .section__head {
  margin-bottom: 0;
}

.why__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.why__list li {
  display: grid;
  gap: 6px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.why__list li:first-child {
  padding-top: 0;
}

.why__list strong {
  font-size: 20px;
}

.why__list span {
  color: var(--muted);
}

/* Contact */
.contact {
  background: var(--bg-alt);
}

.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.contact__info > p:not(.eyebrow) {
  margin-top: 24px;
  color: var(--muted);
}

.contact__links {
  display: grid;
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
}

.contact__links a {
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact__links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.5 var(--font-body);
  resize: vertical;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field input[aria-invalid="true"] {
  border-color: #ff5d5d;
}

.form__status {
  min-height: 1.6em;
  font-size: 14px;
  text-align: center;
}

.form__status.is-error {
  color: #ff5d5d;
}

.form__status.is-success {
  color: var(--accent);
}

/* Footer */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer a:hover {
  color: var(--text);
}

/* Reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards .reveal:nth-child(3n + 2),
.steps .reveal:nth-child(2) { transition-delay: 0.1s; }
.cards .reveal:nth-child(3n),
.steps .reveal:nth-child(3) { transition-delay: 0.2s; }
.steps .reveal:nth-child(4) { transition-delay: 0.3s; }

.js .card.reveal.is-visible {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.js .card.reveal.is-visible.is-tilting {
  transition: opacity 0.6s ease, border-color 0.25s ease, transform 0.1s linear;
}

/* Responsive */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why,
  .contact__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav a:not(.btn) {
    padding: 12px 0;
    font-size: 18px;
  }

  .nav .btn {
    margin-top: 8px;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .stats {
    gap: 12px;
    margin-top: 56px;
  }

  .section {
    padding: 80px 0;
  }

  .section__head {
    margin-bottom: 40px;
  }

  .cards,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .card {
    min-height: 0;
    padding: 24px;
  }

  .form {
    padding: 20px;
  }

  .footer__inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }

  .cursor-glow,
  .hero__canvas {
    display: none;
  }
}
