/* ================================================================
   Growmore Labs — Site-wide shared styles
   Imports design tokens from ../../colors_and_type.css
   ================================================================ */

/* Self-hosted fonts — mirrors the @font-face rules in ../colors_and_type.css
   so the site works as a standalone deployment from this directory. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-Variable.ttf") format("truetype-variations"),
       url("fonts/Inter-Variable.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-Italic-Variable.ttf") format("truetype-variations"),
       url("fonts/Inter-Italic-Variable.ttf") format("truetype");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Outfit-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Outfit-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--fg-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 200ms, color 200ms;
}

/* ---- NAV ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 64px;
  border-bottom: 1px solid transparent;
  transition: all 200ms cubic-bezier(0.2,0,0,1);
}
.site-nav.scrolled {
  background: rgba(13,17,23,0.82);
  border-bottom-color: var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
[data-theme="light"] .site-nav.scrolled {
  background: rgba(248,250,252,0.88);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; border-bottom: 0 !important; }
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: #0D1117; border: 1px solid #232C38;
  display: flex; align-items: center; justify-content: center;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: 16px;
  letter-spacing: -0.02em; color: #fff; flex: none;
}
[data-theme="light"] .nav-logo-mark { background: #0D1117; border-color: #0D1117; }
.nav-logo-mark span { color: #F59E0B; }
.nav-wordmark {
  font-family: "Inter", sans-serif; font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-wordmark .grow { color: var(--fg-primary); }
.nav-wordmark .more { color: #7C3AED; font-weight: 600; }
.nav-wordmark .labs { color: var(--fg-secondary); font-weight: 400; }
.nav-wordmark .dot  { color: #F59E0B; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--fg-secondary); font-size: 14px; font-weight: 400;
  padding: 7px 12px; border-radius: 8px; text-decoration: none;
  border-bottom: 0 !important;
  transition: color 120ms, background 120ms;
}
.nav-links a:hover { color: var(--fg-primary); background: var(--bg-raised); }
.nav-links a.active { color: var(--fg-primary); font-weight: 500; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-theme {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-secondary); transition: all 120ms;
}
.btn-theme:hover { background: var(--bg-raised); color: var(--fg-primary); }
.btn-theme svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.btn-cta {
  background: #7C3AED; color: #fff; border: 0;
  border-radius: 10px; padding: 9px 18px;
  font: 500 14px "Inter", sans-serif; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background 120ms cubic-bezier(0.2,0,0,1);
}
.btn-cta:hover { background: #6D28D9; border-bottom: 0 !important; }
.btn-cta:active { background: #5B21B6; }

.btn-outline {
  background: transparent; color: var(--fg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 9px 18px;
  font: 500 14px "Inter", sans-serif; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all 120ms cubic-bezier(0.2,0,0,1);
}
.btn-outline:hover { border-color: var(--fg-tertiary); background: var(--bg-raised); border-bottom: 0 !important; }

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 64px 48px 40px;
  margin-top: 96px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-copy {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-tertiary);
}
.footer-copy a { color: inherit; }
.footer-col-title {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-tertiary); font-weight: 500; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px; color: var(--fg-secondary);
  padding: 4px 0; border-bottom: 0 !important;
  transition: color 120ms;
}
.footer-col a:hover { color: var(--fg-primary); }
.footer-tagline {
  font-size: 13px; line-height: 1.6; color: var(--fg-secondary);
  margin-top: 16px; max-width: 300px;
}

/* ---- SECTIONS ---- */
.section { padding: 96px 48px; max-width: 1200px; margin: 0 auto; }
.section-full { padding: 96px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-tertiary); font-weight: 500;
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 999px; background: #7C3AED; flex: none;
}

.section-title {
  font-family: "Outfit", "Inter", sans-serif;
  font-weight: 500; font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px; line-height: 1.55; color: var(--fg-secondary);
  max-width: 640px; margin-bottom: 48px;
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 24px;
  transition: border-color 120ms;
}
.card:hover { border-color: var(--border-strong); }

/* ---- BADGE / TAG ---- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 10px;
  font-size: 12px; font-weight: 500;
}
.tag-ok     { background: rgba(15,157,118,0.12); color: #2EB887; }
.tag-warn   { background: rgba(245,158,11,0.12);  color: #F59E0B; }
.tag-info   { background: rgba(124,58,237,0.12);  color: #A78BFA; }
.tag-neutral{ background: #232C38; color: #9FADBC; }
.tag-dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }

/* ---- MONO ---- */
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---- DIVIDER ---- */
.divider { border: 0; border-top: 1px solid var(--border-subtle); margin: 0; }

/* ---- MOBILE NAV ---- */
.nav-hamburger {
  display: none; background: transparent; border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--fg-secondary);
}
.nav-mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  background: var(--bg-deep); border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px 24px; flex-direction: column; gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  color: var(--fg-secondary); font-size: 15px; padding: 10px 12px;
  border-radius: 8px; text-decoration: none; border-bottom: 0 !important;
}
.nav-mobile-menu a:hover { background: var(--bg-raised); color: var(--fg-primary); }

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 64px 20px; }
  .section-full { padding: 64px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding: 48px 20px 32px; }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 500ms cubic-bezier(0.2,0,0,1) both; }
.fade-up-1 { animation-delay: 80ms; }
.fade-up-2 { animation-delay: 160ms; }
.fade-up-3 { animation-delay: 240ms; }
.fade-up-4 { animation-delay: 320ms; }

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- FORM ---- */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; color: var(--fg-secondary); font-weight: 500; }
.form-input, .form-textarea, .form-select {
  background: var(--bg-deep); color: var(--fg-primary);
  border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 11px 14px; font: 400 14px "Inter", sans-serif;
  width: 100%;
  transition: border-color 120ms;
  resize: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--fg-disabled); }
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background: #fff;
}
