/* ═══════════════════════════════════════════════════════════════
   DeepGrows — global.css  v26
   Single source of truth: tokens, nav, footer, theme, utilities
   ═══════════════════════════════════════════════════════════════ */

/* ── FONTS ──────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* ── TOKENS — dark (default) ────────────────────────────────── */
:root {
  --black:   #0A0A0B;
  --surface: #111113;
  --card:    #161618;
  --card2:   #1C1C1F;
  --border:  #222225;
  --green:   #00E87A;
  --green-d: #00C068;
  --white:   #E8E8E8;
  --muted:   #888;
  --muted2:  #555;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h:   64px;
  --radius:  10px;
  --radius-lg: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --trans: 0.22s var(--ease);
}

/* ── TOKENS — light ─────────────────────────────────────────── */
body.light-mode {
  --black:   #F0EDE4;
  --surface: #E8E4DB;
  --card:    #EDE9E0;
  --card2:   #E6E2D8;
  --border:  #D4CFC4;
  --green:   #00A855;
  --green-d: #008C44;
  --white:   #0A0A0B;
  --muted:   #666;
  --muted2:  #999;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.6;
  transition: background var(--trans), color var(--trans);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── FLASH PREVENTION ───────────────────────────────────────── */
html.theme-loading * { transition: none !important; }

/* ── LAYOUT UTILITIES ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ── TYPOGRAPHY UTILITIES ───────────────────────────────────── */
.font-display { font-family: var(--font-display); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-green  { color: var(--green); }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  padding: 14px 26px;
  transition: all var(--trans);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: #0A0A0B;
}
.btn-primary:hover {
  background: var(--green-d);
  transform: translateY(-1px);
}

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

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 14px 20px;
}
.btn-ghost:hover { color: var(--white); }

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── BREADCRUMB ─────────────────────────────────────────────── */
/* Reset nav { position:fixed } for breadcrumb nav elements */
nav.breadcrumb {
  position: static;
  height: auto;
  z-index: auto;
  background: none;
  border: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  justify-content: flex-start;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}
.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb span { color: var(--muted2); }

/* ── BADGE ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid currentColor;
}
.badge-green  { color: var(--green);  border-color: rgba(0,232,122,0.3); background: rgba(0,232,122,0.08); }
.badge-muted  { color: var(--muted);  border-color: var(--border); background: transparent; }

/* ════════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #16161A;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background var(--trans), border-color var(--trans);
}

body.light-mode nav {
  background: rgba(240,237,228,0.88);
}

/* Logo */
.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 1px;
}
.nav-logo .logo-grows { color: var(--green); }
.nav-logo .logo-tm    { font-size: 9px; font-weight: 500; color: var(--white); margin-left: 1px; }
body.light-mode .nav-logo            { color: #0A0A0B; }
body.light-mode .nav-logo .logo-tm   { color: #0A0A0B; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links li a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--white), background var(--black);
}
.nav-links li a:hover { color: var(--white); }
body.light-mode .nav-links li a:hover { color: #0A0A0B; }

.nav-links li a.active {
  color: var(--green) !important;
  font-weight: 600;
}

/* CTA button in nav */
.nav-links li a.nav-cta {
  background: var(--green);
  color: #0A0A0B !important;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  margin-left: 8px;
}
.nav-links li a.nav-cta:hover {
  background: var(--green-d);
  transform: translateY(-1px);
}

/* Theme toggle */
#themeToggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--trans);
  margin-left: 12px;
}
#themeToggle:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }
body.light-mode #themeToggle {
  background: rgba(0,0,0,0.06);
  border-color: rgba(0,0,0,0.15);
}
#themeToggle .toggle-ico { font-size: 13px; }
#themeToggle .toggle-lbl { font-family: var(--font-body); }

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

/* Mobile nav panel */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  z-index: 999;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.28s var(--ease);
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}
.nav-mobile ul li a {
  display: block;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  transition: color var(--trans);
}
.nav-mobile ul li:last-child a { border-bottom: none; }
.nav-mobile ul li a:hover,
.nav-mobile ul li a.active { color: var(--green); }
.nav-mobile .mobile-cta {
  display: block;
  background: var(--green);
  color: #0A0A0B;
  text-align: center;
  padding: 14px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  margin-top: 8px;
}
.nav-mobile .mobile-theme {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════════ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-top {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

/* Brand column */
.footer-brand {}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  margin-bottom: 14px;
}
.footer-logo .logo-grows { color: var(--green); }
.footer-logo .logo-tm    { font-size: 10px; font-weight: 500; color: var(--white); margin-left: 1px; }
body.light-mode .footer-logo       { color: #0A0A0B; }
body.light-mode .footer-logo .logo-tm { color: #0A0A0B; }

.footer-tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 260px;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: #0A0A0B;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 8px;
  transition: all var(--trans);
}
.footer-cta:hover {
  background: var(--green-d);
  transform: translateY(-1px);
}

/* Link columns */
.footer-col {}

.footer-col-heading {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted2);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--trans);
}
.footer-col ul li a:hover { color: var(--green); }

/* Social column */
.footer-social {}
.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}
.footer-social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  transition: color var(--trans);
}
.footer-social-links a:hover { color: var(--green); }
.footer-social-links .social-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: border-color var(--trans), background var(--trans);
}
.footer-social-links a:hover .social-icon {
  border-color: var(--green);
  background: rgba(0,232,122,0.08);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.footer-contact-item a:hover { color: var(--green); }

/* Footer bottom bar */
.footer-bottom {
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy {
  font-size: 13px;
  color: var(--muted2);
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 13px;
  color: var(--muted2);
  transition: color var(--trans);
}
.footer-legal a:hover { color: var(--muted); }

/* ── TICKER BAR ─────────────────────────────────────────────── */
.ticker-bar {
  background: var(--green);
  color: #0A0A0B;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 28s linear infinite;
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0 32px;
}
.ticker-track span::before {
  content: '✦';
  margin-right: 32px;
  opacity: 0.6;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤ 960px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: block; }

  /* Hide theme toggle from nav bar on mobile — it moves inside mobile menu */
  nav #themeToggle { display: none; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤ 600px)
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  :root { --nav-h: 58px; }
  .container { padding: 0 18px; }
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }

  nav { padding: 0 18px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-tagline { max-width: 100%; }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
