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

:root {
  --bg: #080d0f;
  --bg2: #0d1517;
  --bg3: #111d20;
  --border: #1a2a2e;
  --teal: #0d9488;
  --teal-light: #2dd4bf;
  --teal-glow: rgba(13, 148, 136, 0.15);
  --teal-glow2: rgba(45, 212, 191, 0.08);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --green: #22c55e;
  --red: #ef4444;
  --orange: #f97316;
  --yellow: #f59e0b;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--teal-light);
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 13, 15, 0.88);
  backdrop-filter: blur(14px);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-icon { font-size: 20px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { color: var(--teal-light) !important; font-weight: 600; }

/* HERO */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 160px 28px 80px;
  text-align: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--teal-light);
  background: var(--teal-glow);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(40px, 6.5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.gradient-text {
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 50%, #0f766e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 44px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--teal);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: #0f766e; transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;
}
.btn-secondary:hover { border-color: var(--teal-light); color: var(--text); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.install-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  margin-bottom: 64px;
}
.install-prompt { color: var(--teal-light); }
.install-cmd { color: var(--text); }
.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dim);
  padding: 2px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.copy-btn:hover { color: var(--teal-light); }

/* METRICS */
.metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 0;
  flex-wrap: wrap;
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 40px;
}
.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--teal-light);
  letter-spacing: -0.04em;
  font-family: 'Inter', sans-serif;
}
.metric-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.metric-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* SECTIONS */
.section { padding: 100px 28px; }
.section-inner { max-width: 1140px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-light);
  background: var(--teal-glow);
  border: 1px solid rgba(45, 212, 191, 0.2);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* PROBLEM */
.problem { background: var(--bg); }
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--teal); }
.card-icon {
  font-size: 28px;
  margin-bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon.danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); }
.card-icon.warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); }
.card-icon.caution { background: rgba(249, 115, 22, 0.1); border: 1px solid rgba(249, 115, 22, 0.2); }
.card-icon.muted { background: var(--bg3); border: 1px solid var(--border); }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* HOW IT WORKS */
.how-it-works { background: var(--bg2); }
.layers { display: flex; flex-direction: column; gap: 0; }
.layer {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.layer:last-child { border-bottom: none; }
.layer-num {
  font-size: 42px;
  font-weight: 700;
  color: var(--border);
  letter-spacing: -0.06em;
  min-width: 70px;
  line-height: 1;
  font-family: 'JetBrains Mono', monospace;
  transition: color 0.2s;
}
.layer:hover .layer-num { color: var(--teal); }
.layer-body h4 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.layer-body p { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 640px; }
.signal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  padding: 2px 7px;
  border-radius: 4px;
}
.signal.loop { background: rgba(239, 68, 68, 0.12); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.signal.limit { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* FEATURES */
.features { background: var(--bg); }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feat-card:hover {
  border-color: var(--teal);
  box-shadow: 0 0 28px var(--teal-glow2);
}
.feat-icon { font-size: 24px; margin-bottom: 12px; }
.feat-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.tag-red { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.tag-orange { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid rgba(249,115,22,0.25); }
.tag-yellow { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.tag-green { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.feat-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.feat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.feat-stat {
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* INSTALL SECTION */
.install-section { background: var(--bg2); }
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-glow);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: var(--teal-light);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.step-body { flex: 1; }
.step-body h4 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.step-body p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.code-block {
  background: #060a0b;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.7;
}
.code-header {
  padding: 8px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.code-lang {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.code-block pre { padding: 20px 20px; overflow-x: auto; color: var(--text); }
.kw { color: #5eead4; }
.fn { color: #93c5fd; }
.str { color: #86efac; }
.num { color: #fca5a5; }

/* DEMO SECTION */
.demo-section { background: var(--bg); }
.terminal {
  background: #060a0b;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.terminal-header {
  padding: 12px 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.terminal-dots { display: flex; gap: 6px; }
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }
.terminal-title {
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.terminal-body {
  padding: 24px 28px;
  overflow-x: auto;
}
.terminal-body pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
}
.t-dim { color: var(--text-dim); }
.t-bright { color: var(--text); font-weight: 600; }
.t-label { color: var(--text-muted); }
.t-value { color: var(--teal-light); }
.t-danger { color: #f87171; }
.t-warn { color: #fbbf24; }
.t-muted { color: var(--text-muted); }
.t-green { color: #4ade80; }

/* ROADMAP */
.roadmap-section { background: var(--bg2); }
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.roadmap-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
}
.roadmap-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--teal-light);
}
.roadmap-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.roadmap-item p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* PRICING */
.pricing-section { background: var(--bg2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: start;
}
.plan {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color 0.2s;
}
.plan:hover { border-color: #1e3a3e; }
.plan-featured {
  border-color: var(--teal);
  background: #091618;
  box-shadow: 0 0 40px rgba(13, 148, 136, 0.12);
}
.plan-featured:hover { border-color: var(--teal-light); }
.plan-enterprise { border-color: #1e2a3a; }
.plan-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-header { display: flex; flex-direction: column; gap: 8px; }
.plan-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.plan-featured .plan-name { color: var(--teal-light); }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-amount {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
}
.plan-period { font-size: 14px; color: var(--text-dim); }
.plan-desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.plan-btn {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}
.plan-btn-outline {
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.plan-btn-outline:hover { border-color: var(--teal-light); color: var(--text); }
.plan-btn-primary {
  background: var(--teal);
  color: white;
}
.plan-btn-primary:hover { background: #0f766e; transform: translateY(-1px); }
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}
.check { color: var(--teal-light); font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.dash { color: var(--text-dim); font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.plan-features li:has(.dash) { color: var(--text-dim); }

/* CTA */
.cta-section {
  background: var(--bg);
  padding: 120px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center top, rgba(13, 148, 136, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { max-width: 640px; margin: 0 auto; position: relative; }
.cta-inner h2 {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}
.cta-inner p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 28px;
  background: var(--bg);
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer-left { display: flex; flex-direction: column; gap: 10px; }
.footer-left p { font-size: 14px; color: var(--text-muted); }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-copy a { color: var(--teal-light); }
.footer-copy a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 4px;
}
.footer-col a { font-size: 14px; color: var(--text-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { gap: 24px 0; }
  .metric-divider { display: none; }
  .layer { flex-direction: column; gap: 16px; }
  .step { flex-direction: column; gap: 20px; }
}
@media (max-width: 600px) {
  .cards-4 { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 32px; }
  .nav-links { display: none; }
}
