@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

:root {
  --color-bg: #080c14;
  --color-surface: #0f1623;
  --color-surface-raised: #161d2e;
  --color-surface-hover: #1c2540;
  --color-primary: #a8e06c;
  --color-primary-bright: #c4f87a;
  --color-primary-dim: #7ab54a;
  --color-neon: #39ff14;
  --color-text: #e8ecf1;
  --color-text-secondary: #9aa3b5;
  --color-text-muted: #5c6678;
  --color-border: #1e2740;
  --color-border-light: #2a3554;
  --color-white: #ffffff;
  --color-danger: #ff4d6a;
  --color-info: #4da6ff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 40px rgba(168, 224, 108, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.5);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-bright);
}

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

ul, ol {
  list-style: none;
}

b, strong {
  font-weight: 700;
}

/* ── Header / Nav ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.site-header.scrolled {
  background: rgba(8, 12, 20, 0.92);
  border-bottom-color: var(--color-border);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--color-white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.header-logo:hover {
  color: var(--color-white);
}

.header-logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-text);
  background: rgba(168, 224, 108, 0.06);
}

.nav-list a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  padding: 11px 22px;
}

.btn-primary {
  background: var(--color-primary);
  color: #0a0e14;
  box-shadow: 0 2px 12px rgba(168, 224, 108, 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-bright);
  box-shadow: 0 4px 20px rgba(168, 224, 108, 0.35);
  transform: translateY(-1px);
  color: #0a0e14;
}

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

.btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--color-border-light);
  background: rgba(168, 224, 108, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 11px 14px;
}

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-icon {
  padding: 10px;
  width: 40px;
  height: 40px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ── Page Hero ── */

.page-hero {
  position: relative;
  min-height: clamp(500px, 75vh, 800px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 40px) clamp(16px, 4vw, 40px) 60px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168, 224, 108, 0.07) 0%, rgba(168, 224, 108, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  background: rgba(168, 224, 108, 0.08);
  border: 1px solid rgba(168, 224, 108, 0.15);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--color-neon);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--color-white);
  margin-bottom: 20px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-neon) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-terminal {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.terminal-window {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--color-border);
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.terminal-body .prompt {
  color: var(--color-primary);
}

.terminal-body .flag {
  color: var(--color-info);
}

.terminal-body .string {
  color: var(--color-neon);
}

.terminal-body .comment {
  color: var(--color-text-muted);
}

.terminal-body .output {
  color: var(--color-text-muted);
}

/* ── Sections ── */

.section-wrapper {
  padding: clamp(60px, 10vw, 120px) clamp(16px, 4vw, 40px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-wrapper.alt-bg {
  background: var(--color-surface);
  max-width: 100%;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-wrapper.alt-bg > * {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 14px;
}

.section-heading.centered {
  text-align: center;
}

.lead-paragraph {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 620px;
}

.lead-paragraph.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-header.centered {
  text-align: center;
}

/* ── Eyebrow / Label ── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* ── Body text ── */

.body-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.body-text + .body-text {
  margin-top: 12px;
}

/* ── Cards ── */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.card-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-base);
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(168, 224, 108, 0.08);
  border: 1px solid rgba(168, 224, 108, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--color-primary);
  font-size: 1.25rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card .body-text {
  margin-bottom: 0;
}

.card-image {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
}

/* ── Feature Row ── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.feature-row.reverse {
  direction: rtl;
}

.feature-row.reverse > * {
  direction: ltr;
}

/* ── Stats ── */

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* ── Code Block ── */

.code-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.75;
  overflow-x: auto;
  color: var(--color-text-secondary);
}

/* ── Badge / Pill ── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(168, 224, 108, 0.08);
  color: var(--color-primary);
  border: 1px solid rgba(168, 224, 108, 0.12);
}

.badge.outline {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

/* ── Divider ── */

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 0;
}

/* ── Footer ── */

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: clamp(48px, 6vw, 72px) clamp(16px, 4vw, 40px) 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px);
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-brand .header-logo {
  margin-bottom: 16px;
}

.footer-brand .body-text {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

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

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

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

/* ── Responsive ── */

@media (max-width: 1024px) {
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 12, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    z-index: 999;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .nav-toggle {
    display: flex;
  }

  .card-grid.cols-3,
  .card-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Utility ── */

.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 40px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* universal guards (not a template) */
*{box-sizing:border-box}img,svg,video{max-width:100%;height:auto}h1,h2,h3,h4,p,li,a,span,blockquote{overflow-wrap:break-word;word-break:normal}html{-webkit-text-size-adjust:100%}body{margin:0}
