/* ============================================================
   OPENSENTINEL - Landing Page Styles
   Design: Dark theme, emerald/cyan accent, clean and modern
   ============================================================ */

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

:root {
  /* Background */
  --bg-deepest: #050507;
  --bg-deep: #09090b;
  --bg-base: #0f0f13;
  --bg-raised: #16161c;
  --bg-surface: #1c1c24;
  --bg-hover: #24242e;

  /* Text */
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-faint: #52525b;

  /* Accent */
  --accent: #10b981;
  --accent-hover: #34d399;
  --accent-dim: rgba(16, 185, 129, 0.15);
  --accent-glow: rgba(16, 185, 129, 0.25);
  --cyan: #06b6d4;

  /* Borders */
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Misc */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

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

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #000;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

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

.btn-ghost:hover {
  background: var(--bg-hover);
  border-color: var(--text-muted);
}


/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 9, 11, 0.8);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-logo-icon {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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


/* --- Hero --- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 20%, transparent 100%);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  background: var(--bg-raised);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-install {
  display: inline-block;
}

.install-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-raised);
  border: 1px solid var(--border);
}

.install-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.install-command {
  font-size: 14px;
  color: var(--accent);
}

.install-copy {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}

.install-copy:hover {
  color: var(--text-primary);
}


/* --- Terminal --- */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.terminal {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-base);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.terminal-title {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  min-height: 280px;
}

.terminal-line {
  display: flex;
  gap: 8px;
}

.terminal-prompt {
  color: var(--accent);
  user-select: none;
}

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

.terminal-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.terminal-output {
  margin-top: 8px;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

.terminal-output .t-green { color: var(--accent); }
.terminal-output .t-cyan { color: var(--cyan); }
.terminal-output .t-dim { color: var(--text-muted); }
.terminal-output .t-white { color: var(--text-primary); }


/* --- Stats --- */
.stats {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}


/* --- Section Shared --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent-dim);
  background: rgba(16, 185, 129, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}


/* --- Problem / Solution --- */
.problem {
  padding: 100px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.problem-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}

.problem-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.problem-card-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.problem-card ul {
  list-style: none;
}

.problem-card li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.problem-card--bad li::before {
  content: "\2717";
  color: #ef4444;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.problem-card--good li::before {
  content: "\2713";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.problem-card--good {
  border-color: rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.03));
}


/* --- Features --- */
.features {
  padding: 100px 0;
  background: var(--bg-base);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  transition: all 0.3s ease;
  position: relative;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.feature-card--highlight {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.03));
}

.feature-card--highlight:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  letter-spacing: 0.03em;
}


/* --- Code Section --- */
.code-section {
  padding: 100px 0;
}

.code-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.code-text h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.code-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.code-text code {
  background: var(--bg-raised);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--accent);
}

.code-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.code-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.code-block {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-base);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.code-header {
  display: flex;
  padding: 0 16px;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
}

.code-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.code-tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.code-content {
  padding: 20px;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
}

.code-content code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.code-keyword { color: #c084fc; }
.code-string { color: #34d399; }
.code-fn { color: #60a5fa; }
.code-prop { color: #fbbf24; }
.code-comment { color: var(--text-faint); font-style: italic; }
.code-prompt { color: var(--accent); user-select: none; }


/* --- Templates --- */
.templates {
  padding: 100px 0;
  background: var(--bg-base);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.template-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  transition: all 0.3s ease;
  text-align: center;
}

.template-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.template-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.template-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.template-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.templates-cta {
  text-align: center;
  margin-top: 40px;
}


/* --- Integrations --- */
.integrations {
  padding: 100px 0;
}

.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.integration-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.integration-item:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-hover);
}

.integration-icon {
  font-size: 18px;
}


/* --- Architecture --- */
.architecture {
  padding: 100px 0;
  background: var(--bg-base);
}

.arch-diagram {
  max-width: 900px;
  margin: 0 auto;
}

.arch-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.arch-col {
  flex: 1;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}

.arch-col--core {
  border-color: rgba(16, 185, 129, 0.25);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.03));
}

.arch-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.arch-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arch-items span {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.arch-highlight {
  background: var(--accent-dim) !important;
  color: var(--accent) !important;
}

.arch-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--text-faint);
  padding-top: 60px;
  flex-shrink: 0;
}

.arch-bottom {
  margin-top: 16px;
}

.arch-data {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.arch-data span {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}


/* --- Enterprise --- */
.enterprise {
  padding: 100px 0;
}

.enterprise-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.enterprise-text h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.enterprise-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.enterprise-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enterprise-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.enterprise-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.enterprise-feature strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.enterprise-feature span {
  font-size: 13px;
  color: var(--text-muted);
}

.enterprise-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-raised);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.enterprise-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}

.enterprise-card-badge {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.enterprise-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.enterprise-card-row:last-child {
  border-bottom: none;
}

.enterprise-card-row > span:first-child {
  color: var(--text-secondary);
}

.enterprise-status {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.enterprise-status--on {
  color: var(--accent);
  background: var(--accent-dim);
}

.enterprise-status--count {
  color: var(--text-primary);
  background: var(--bg-surface);
}


/* --- Quick Start --- */
.quickstart {
  padding: 100px 0;
  background: var(--bg-base);
}

.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quickstart-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-raised);
}

.quickstart-card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  margin-bottom: 14px;
}

.quickstart-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.quickstart-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.quickstart-code {
  border-radius: var(--radius-sm);
  background: var(--bg-base);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.quickstart-code:last-child {
  margin-bottom: 0;
}

.quickstart-code pre {
  font-size: 12px;
  line-height: 1.7;
  font-family: 'JetBrains Mono', monospace;
}

.quickstart-code code {
  font-size: inherit;
  background: none;
  padding: 0;
}


/* --- CTA --- */
.cta {
  padding: 100px 0;
}

.cta-box {
  text-align: center;
  padding: 60px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.03));
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  position: relative;
}

.cta-box p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  position: relative;
}


/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-deepest);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-faint);
}


/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-visual {
    justify-content: center;
  }

  .terminal {
    max-width: 100%;
  }

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

  .templates-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .code-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .enterprise-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .arch-row {
    flex-direction: column;
    align-items: stretch;
  }

  .arch-arrow {
    padding-top: 0;
    justify-content: center;
    transform: rotate(90deg);
    padding: 8px 0;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 24px;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-actions .nav-github span {
    display: none;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 24px;
  }

  .stat-divider {
    display: none;
  }

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

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

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

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

  .code-text h2,
  .enterprise-text h2 {
    font-size: 28px;
  }

  .cta-box h2 {
    font-size: 28px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

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

  .install-box {
    flex-wrap: wrap;
    justify-content: center;
  }
}
