:root {
  --bg: #09090d;
  --surface: #111117;
  --surface-2: #18181f;
  --border: #1e1e26;
  --text: #f0ede8;
  --text-2: #7e7b75;
  --text-3: #4a4843;
  --accent: #f97316;
  --accent-2: #fb923c;
  --accent-dim: rgba(249, 115, 22, 0.08);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
.noise-bg {
  position: fixed;
  inset: 0;
  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)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Amber glow at top */
body::before {
  content: '';
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Navigation */
.nav {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-2);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34,197,94,0.5);
  animation: pulse 2.5s ease-in-out infinite;
}

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

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 100px 32px 120px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  margin-bottom: 28px;
}

.eyebrow-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(249,115,22,0.25);
  padding: 5px 12px;
  border-radius: 100px;
}

.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}

/* Code window */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03) inset;
  width: 100%;
  max-width: 420px;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-left: 8px;
  font-weight: 500;
}

.window-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-line {
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Fira Code', monospace;
  line-height: 1.5;
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

.code-line:nth-child(1) { animation-delay: 0.3s; }
.code-line:nth-child(2) { animation-delay: 0.55s; }
.code-line:nth-child(3) { animation-delay: 0.8s; }
.code-line:nth-child(4) { animation-delay: 1.05s; }
.code-line:nth-child(5) { animation-delay: 1.3s; }
.code-line:nth-child(6) { animation-delay: 1.55s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.85; transform: translateY(0); }
}

.cm { color: var(--text-2); }
.cg { color: #4ade80; }
.cw { color: var(--accent); }
.cp { color: #60a5fa; }
.ct { color: var(--text-3); font-size: 0.72rem; display: block; margin-top: 4px; }

/* Section label */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 40px;
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 100px 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 40px 36px;
  transition: background 0.2s;
}

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

.feature-icon {
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
}

.feature-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* How it works */
.howitworks {
  position: relative;
  z-index: 1;
  padding: 100px 32px;
}

.howitworks-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 40px 0 0;
}

.step-connector {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.step-connector::after {
  content: '';
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--text-3));
}

.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 16px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Closing */
.closing {
  position: relative;
  z-index: 1;
  padding: 120px 32px;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 28px;
}

.closing-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.65;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer-meta {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .code-window {
    max-width: 100%;
  }

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

  .steps-row {
    flex-direction: column;
    gap: 40px;
  }

  .step-connector {
    display: none;
  }

  .step {
    padding: 0;
  }

  .nav-inner {
    padding: 16px 20px;
  }

  .hero {
    padding: 72px 20px 80px;
  }

  .features {
    padding: 72px 20px;
  }

  .howitworks {
    padding: 72px 20px;
  }

  .closing {
    padding: 80px 20px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 2.2rem;
  }

  .closing-headline {
    font-size: 1.8rem;
  }
}