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

:root {
  --bg: #050505;
  --surface: rgba(255,255,255,0.03);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.07);
  --text-primary: #f0f0f0;
  --text-secondary: rgba(255,255,255,0.5);
  --text-muted: rgba(255,255,255,0.3);
  --accent: rgba(255,255,255,0.9);
  --radius: 20px;
  --radius-sm: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── Ambient Glow ─────────────────────────────── */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.glow-1 { top: -200px; left: -100px; background: #fff; }
.glow-2 { bottom: -200px; right: -100px; background: #fff; opacity: 0.03; }

/* ─── Container ────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ─── Nav ──────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(30px);
  background: rgba(5,5,5,0.6);
  border-bottom: 1px solid var(--glass-border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.2px;
}

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

.nav-cta {
  font-size: 0.78rem !important;
  color: var(--bg) !important;
  background: var(--text-primary);
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-cta:hover { opacity: 0.85; }

/* ─── Hero ─────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.hero-badge {
  font-size: 0.7rem;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  background: var(--glass);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero h1 .thin {
  font-weight: 300;
  color: var(--text-secondary);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  font-family: inherit;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

/* ─── Section Common ───────────────────────────── */
section {
  padding: 6rem 0;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 500px;
  line-height: 1.7;
}

/* ─── Glass Card ───────────────────────────────── */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
}

.glass-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

/* ─── How It Works ─────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.step-card {
  padding: 2rem 1.75rem;
}

.step-num {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}

.step-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.3px;
}

.step-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Tiers ────────────────────────────────────── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.tier-card {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.tier-card.featured {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
}

.tier-name {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.tier-price {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 0.25rem;
}

.tier-price .unit {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}

.tier-range {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}

.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.tier-features li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-features li::before {
  content: '→';
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* ─── Code Block ───────────────────────────────── */
.code-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
}

.code-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-header {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.code-filename {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  font-family: 'SF Mono', 'Menlo', monospace;
}

.code-body {
  padding: 1.25rem;
  overflow-x: auto;
}

.code-body pre {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.code-body .keyword { color: rgba(255,255,255,0.4); }
.code-body .string { color: rgba(255,255,255,0.6); }
.code-body .comment { color: rgba(255,255,255,0.2); }
.code-body .func { color: rgba(255,255,255,0.7); }

/* ─── Metrics Bar ──────────────────────────────── */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 6rem;
}

.metric-card {
  padding: 1.75rem;
  text-align: center;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Footer ───────────────────────────────────── */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

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

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ─── Scroll Animations ────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .steps-grid, .tiers-grid, .metrics-bar { grid-template-columns: 1fr; }
  .code-section { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.8rem; letter-spacing: -1.5px; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
