/* ─── Variables ───────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0b0d;
  --bg-elevated: #12141a;
  --text: #e8eaed;
  --text-muted: #8b8f98;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --accent-glow: rgba(0, 212, 170, 0.4);
  --border: rgba(255, 255, 255, 0.06);
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Subtle noise overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  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");
  z-index: 1000;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.25rem;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.nav-cta {
  color: var(--accent) !important;
}

.nav-cta:hover {
  color: var(--accent) !important;
  text-decoration: underline;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6rem 2rem 8rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 212, 170, 0.25);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #00a88a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
}

.btn-primary:hover {
  background: #00e6b8;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ─── Sections ──────────────────────────────────────────────────────────── */
section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem 6rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 2.5rem;
  text-align: center;
}

/* ─── Features ──────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.05);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* ─── Code blocks ────────────────────────────────────────────────────────── */
.how-it-works {
  padding-bottom: 8rem;
}

.code-block {
  margin-bottom: 2rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.code-method {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
}

.code-block pre {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

/* ─── CTA ────────────────────────────────────────────────────────────────── */
.cta {
  text-align: center;
  padding: 6rem 2rem;
}

.cta-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 0 0 2rem;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .header {
    flex-direction: column;
    gap: 1rem;
  }

  .nav {
    gap: 1.25rem;
  }

  .hero {
    padding: 4rem 1.5rem 6rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
