:root {
  --bg: #080b10;
  --bg2: #0d1117;
  --bg3: #131920;
  --border: #1e2830;
  --border2: #2a3540;
  --text: #e8edf2;
  --text-dim: #5a7080;
  --text-mid: #8a9aaa;
  --accent: #00d4ff;
  --accent2: #0099bb;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --green: #00ff88;
  --red: #ff4466;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

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

/* Noise texture */
.noise {
  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.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: 0.4;
}

/* ─── HEADER ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 800;
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }

nav { display: flex; align-items: center; gap: 32px; }
nav a {
  color: var(--text-mid); text-decoration: none;
  font-size: 13px; letter-spacing: 0.05em;
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 400;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover {
  background: #33ddff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  display: inline-block;
  border: 1px solid var(--border2);
  color: var(--text-mid);
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  background: transparent; cursor: pointer;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-login {
  border: 1px solid var(--border2);
  color: var(--text-mid) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 13px !important;
  transition: all 0.2s;
}
.btn-login:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 48px 80px;
  gap: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.hero-content { flex: 1; z-index: 1; }

.badge {
  display: inline-block;
  border: 1px solid var(--border2);
  background: var(--bg3);
  color: var(--text-dim);
  font-size: 11px; letter-spacing: 0.1em;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 32px;
  text-transform: uppercase;
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

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

.hero-sub {
  color: var(--text-mid);
  font-size: 15px; line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-visual { flex: 1; max-width: 480px; z-index: 1; }

/* Terminal */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.05), 0 24px 48px rgba(0,0,0,0.5);
}

.terminal-bar {
  background: var(--bg3);
  padding: 12px 16px;
  display: flex; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal-bar span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--border2);
}
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #ffbd2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }

.terminal-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }

.t-line {
  font-size: 13px; color: var(--text-mid);
  line-height: 1.5;
}
.t-dim { color: var(--text-dim); margin-right: 8px; }
.t-green { color: var(--green); }
.t-blue { color: var(--accent); }

.typing::after {
  content: '▋';
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ─── SECTIONS ─── */
.section-label {
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  padding-left: 4px;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.features {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg2); }

.accent-card { background: var(--bg2); }
.accent-card .feature-icon { color: var(--accent); }

.feature-icon {
  font-size: 24px;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-head);
  font-size: 18px; font-weight: 700;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-mid);
  font-size: 13px; line-height: 1.7;
}

/* ─── PRICING ─── */
.pricing {
  padding: 100px 48px;
  border-top: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
}

.plan-card {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.plan-badge {
  position: absolute; top: -12px; left: 32px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
}

.plan-name {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700;
  margin-bottom: 8px;
}

.plan-desc { color: var(--text-mid); font-size: 13px; margin-bottom: 24px; }

.plan-price {
  font-family: var(--font-head);
  font-size: 48px; font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
}
.plan-price span { font-size: 18px; color: var(--text-dim); }

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex; flex-direction: column; gap: 12px;
}
.plan-features li {
  color: var(--text-mid);
  font-size: 13px;
  padding-left: 20px;
  position: relative;
}
.plan-features li::before {
  content: '→';
  position: absolute; left: 0;
  color: var(--accent);
}

/* ─── FOOTER ─── */
.footer {
  padding: 40px 48px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
}
.footer p { color: var(--text-dim); font-size: 12px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .header { padding: 16px 24px; }
  nav a:not(.btn-login) { display: none; }
  .hero { flex-direction: column; padding: 100px 24px 60px; gap: 48px; }
  .hero-visual { max-width: 100%; }
  .features { padding: 60px 24px; }
  .pricing { padding: 60px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 16px; text-align: center; }
}
