/* ═══════════════════════════════════════════════
   Kaizen Bot — Shared Stylesheet
   Theme: Black + Green + Lime
   ═══════════════════════════════════════════════ */

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

/* ── Variables ─────────────────────────────── */
:root {
  --bg:          #080808;
  --bg2:         #0e0e0e;
  --bg3:         #141414;
  --bg4:         #1a1a1a;
  --border:      #1f1f1f;
  --green:       #00ff7f;
  --lime:        #b4ff3a;
  --green-dim:   #00c862;
  --lime-dim:    #8fcc2d;
  --white:       #f0f0f0;
  --muted:       #888;
  --font-head:   'Orbitron', sans-serif;
  --font-body:   'Inter', sans-serif;
  --font-sub:    'Space Grotesk', sans-serif;
  --font-nav:    'Rajdhani', sans-serif;
  --font-code:   'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lime); }

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

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--green-dim); border-radius: 3px; }

/* ── Noise overlay ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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: 0;
}

/* ── Navbar ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,8,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
}

.nav-brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.nav-brand span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-nav);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  background: rgba(0,255,127,.06);
}

.nav-cta {
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 22px;
  border-radius: 8px;
  background: var(--green);
  color: #000;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--lime); color: #000; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* ── Mobile nav ─────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(8,8,8,.97);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-nav);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}

.mobile-menu a:hover { color: var(--green); background: rgba(0,255,127,.06); }

/* ── Layout helpers ─────────────────────────── */
.section {
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-wrap {
  padding-top: 64px;
}

/* ── Glowing accent lines ───────────────────── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  margin: 0;
  opacity: .5;
}

/* ── Pill badge ─────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sub);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(0,255,127,.3);
  background: rgba(0,255,127,.06);
  border-radius: 999px;
  padding: 4px 14px;
}

.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 1.4s infinite;
}

@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ── Section headings ───────────────────────── */
.section-tag {
  font-family: var(--font-sub);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title span { color: var(--green); }

.section-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.8;
}

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

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

.card:hover {
  border-color: rgba(0,255,127,.3);
  transform: translateY(-3px);
}

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

/* ── Feature grid ───────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-icon {
  display: inline-flex;
  color: var(--green);
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-family: var(--font-sub);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 12px 28px;
  border-radius: 8px;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: #000;
}

.btn-primary:hover {
  background: var(--lime);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,255,127,.25);
}

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

.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* ── Stats bar ──────────────────────────────── */
.stats-bar {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 40px;
}

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

.stat-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-sub);
  font-size: .8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Footer ──────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-brand span { color: var(--green); }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-sub);
  font-size: .85rem;
  color: var(--muted);
  transition: color .2s;
}

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

.footer-copy {
  font-family: var(--font-code);
  font-size: .8rem;
  color: #555;
  text-align: center;
  width: 100%;
  margin-top: 8px;
}

.footer-copy span { color: var(--green-dim); }

/* ── Page hero (inner pages) ─────────────────── */
.page-hero {
  padding: 80px 40px 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero .page-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero .page-title span { color: var(--green); }

.page-hero .page-sub {
  font-family: var(--font-sub);
  font-size: 1rem;
  color: var(--muted);
}

/* ── Legal content ───────────────────────────── */
.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px 80px;
  position: relative;
  z-index: 1;
}

.legal-body h2 {
  font-family: var(--font-sub);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lime);
  margin: 36px 0 12px;
  letter-spacing: .5px;
}

.legal-body p {
  font-size: .95rem;
  color: #bbb;
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-body ul li {
  font-size: .95rem;
  color: #bbb;
  line-height: 1.9;
}

.legal-meta {
  font-family: var(--font-code);
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 32px;
}

/* ── Gradient bg blob ────────────────────────── */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 60px 20px; }
  .stats-bar { gap: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .legal-body { padding: 0 20px 60px; }
  .page-hero { padding: 60px 20px 40px; }
}
