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

:root {
  --bg: #080808;
  --surface: #0f0f0f;
  --surface-2: #161616;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #f0ece4;
  --text-muted: #6b6760;
  --text-dim: #3a3835;
  --accent: #c8f060;
  --accent-dim: rgba(200, 240, 96, 0.08);
  --accent-glow: rgba(200, 240, 96, 0.15);
  --font-display: 'Syne', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

/* Grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 80%);
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(12px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--accent);
  font-size: 18px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  border: 1px solid rgba(200, 240, 96, 0.3);
  padding: 4px 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Main */
main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 80px;
}

.tag-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.1s;
}

.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.2s;
}

h1 .accent {
  color: var(--accent);
  display: block;
}

.sub {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.3s;
}

/* Form */
.form-wrap {
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.input-group {
  display: flex;
  gap: 0;
  max-width: 500px;
  border: 1px solid var(--border-hover);
  background: var(--surface);
  transition: border-color 0.2s;
}

.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px var(--accent-glow);
}

input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 16px 20px;
}

input[type="email"]::placeholder {
  color: var(--text-dim);
}

button[type="submit"] {
  background: var(--accent);
  color: #080808;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.15s, gap 0.2s;
}

button[type="submit"]:hover {
  background: #d4f56a;
  gap: 12px;
}

button[type="submit"]:active {
  background: #b8e050;
}

.btn-arrow {
  font-size: 16px;
  transition: transform 0.2s;
}

button[type="submit"]:hover .btn-arrow {
  transform: translateX(2px);
}

.form-note {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
  letter-spacing: 0.03em;
}

.success-msg {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 14px;
  padding: 16px 0;
  opacity: 0;
  animation: fadeUp 0.4s ease forwards;
}

.success-msg.show {
  display: flex;
}

.success-icon {
  font-size: 18px;
}

/* Counter */
.counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.5s;
}

.counter-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.counter-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section shared */
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* How section */
.how {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.how-header {
  margin-bottom: 48px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 32px 0;
}

.step-divider {
  height: 1px;
  background: var(--border);
  margin-left: 60px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.step-content p {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 480px;
}

/* Diff section */
.diff {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.diff-header {
  margin-bottom: 48px;
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.diff-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.2s;
}

.diff-card:hover {
  background: var(--surface);
}

.diff-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.diff-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.diff-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* CTA section */
.cta {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: left;
}

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 14px;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-top: 1px solid var(--border);
  max-width: 100%;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-right {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intersection observer animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }

  main {
    padding: 0 24px;
  }

  h1 {
    font-size: 40px;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .input-group {
    flex-direction: column;
  }

  button[type="submit"] {
    width: 100%;
    justify-content: center;
  }

  footer {
    padding: 24px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .step {
    grid-template-columns: 40px 1fr;
    gap: 20px;
  }
}
