:root {
  --bg: #070b12;
  --bg-elevated: #0d1320;
  --bg-card: #101827;
  --bg-terminal: #090e17;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(16, 245, 138, 0.32);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --emerald: #10f58a;
  --cyan: #00d4ff;
  --danger: #ff5c77;
  --warn: #fbbf24;
  --info: #38bdf8;
  --gradient: linear-gradient(135deg, var(--emerald) 0%, var(--cyan) 100%);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 60px -18px rgba(16, 245, 138, 0.22), 0 0 40px -20px rgba(0, 212, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(16, 245, 138, 0.12), transparent),
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(0, 212, 255, 0.08), transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 18, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(16, 245, 138, 0.35);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald);
  background: rgba(16, 245, 138, 0.1);
  border: 1px solid rgba(16, 245, 138, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

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

.btn-primary {
  background: var(--gradient);
  color: #04120c;
  box-shadow: 0 8px 26px -10px rgba(16, 245, 138, 0.65);
}

.btn-primary:hover {
  box-shadow: 0 12px 30px -8px rgba(0, 212, 255, 0.7);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: rgba(148, 163, 184, 0.4);
  background: #141d2e;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

/* Hero */
.hero {
  padding: 78px 0 56px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.25);
  margin-bottom: 22px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero h1 {
  margin: 0 auto 18px;
  max-width: 780px;
  font-size: clamp(2.15rem, 4.8vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 630px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.metric-card {
  background: rgba(13, 19, 32, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 6px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.02em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--text-muted);
  max-width: 640px;
}

/* Featured Skill Card */
.featured-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-glow);
}

.skill-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.skill-logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.skill-title {
  margin: 0 0 6px;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.price-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #04120c;
  background: var(--gradient);
  padding: 3px 10px;
  border-radius: 999px;
}

.stack-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
}

.skill-summary {
  color: var(--text-muted);
  margin: 0 0 18px;
  font-size: 0.96rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.91rem;
  color: #cbd5e1;
}

.check-icon {
  color: var(--emerald);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.skill-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Interactive Terminal */
.terminal-shell {
  background: var(--bg-terminal);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #0d1422;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.terminal-dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-tabs {
  display: inline-flex;
  gap: 6px;
  background: #070b12;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tab-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.tab-btn.active {
  background: #172235;
  color: var(--text);
}

.terminal-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 0.79rem;
  line-height: 1.6;
  overflow-x: auto;
  flex: 1;
}

.term-cmd {
  color: var(--cyan);
  margin-bottom: 12px;
  word-break: break-all;
}

.term-panel {
  display: none;
}

.term-panel.active {
  display: block;
}

.score-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}

.score-banner.nogo {
  background: rgba(255, 92, 119, 0.1);
  border: 1px solid rgba(255, 92, 119, 0.35);
  color: #fda4af;
}

.score-banner.go {
  background: rgba(16, 245, 138, 0.1);
  border: 1px solid rgba(16, 245, 138, 0.35);
  color: var(--emerald);
}

.finding-row {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(148, 163, 184, 0.1);
  margin-bottom: 8px;
}

.finding-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.sev {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.sev-p0 {
  background: rgba(255, 92, 119, 0.18);
  color: var(--danger);
}

.sev-p1 {
  background: rgba(251, 191, 36, 0.16);
  color: var(--warn);
}

.sev-p2 {
  background: rgba(56, 189, 248, 0.16);
  color: var(--info);
}

.finding-id {
  color: var(--text);
  font-weight: 600;
}

.finding-loc {
  color: var(--text-dim);
  font-size: 0.74rem;
}

.finding-msg {
  color: #cbd5e1;
}

.clean-summary {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
}

.clean-line {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(16, 245, 138, 0.04);
  border: 1px solid rgba(16, 245, 138, 0.14);
}

/* 3-Column Steps & Roadmap */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--emerald);
  margin-bottom: 8px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

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

.soon-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Footer */
.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
}

.footer-bio {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

/* Responsive */
@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .cards-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 54px 0 38px;
  }
}
