/* ============================================
   DENDRO DESIGN SYSTEM — Global Tokens & Shared Styles
   ============================================ */

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

/* ── Tokens ── */
:root {
  /* Colors */
  --c-bg:         #0b1512;
  --c-bg2:        #111d18;
  --c-bg3:        #162319;
  --c-surface:    #1a2e23;
  --c-border:     #253d2c;
  --c-border-sub: #1d3024;

  --c-green:      #a8e063;
  --c-green-bright: #c5f135;
  --c-green-dim:  #6aab2e;
  --c-green-muted:#3d6e2a;

  --c-text:       #e8f2e4;
  --c-text-sub:   #8aaa8a;
  --c-text-dim:   #4e6e52;

  --c-white:      #ffffff;

  /* Type */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  32px;
  --space-xl:  64px;
  --space-2xl: 96px;
  --space-3xl: 128px;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 40px rgba(168,224,99,0.12);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 400ms;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Typography Scale ── */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.t-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.t-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}
.t-body-lg { font-size: 1.125rem; line-height: 1.7; font-weight: 300; }
.t-body    { font-size: 1rem;     line-height: 1.7; font-weight: 400; }
.t-small   { font-size: 0.875rem; line-height: 1.5; }
.t-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.t-green  { color: var(--c-green); }
.t-sub    { color: var(--c-text-sub); }
.t-dim    { color: var(--c-text-dim); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-xl) 0; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}
.nav-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease), backdrop-filter var(--t-base) var(--ease);
}
.nav-wrapper.scrolled {
  background: rgba(11,21,18,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--c-border-sub);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img { width: 28px; height: 28px; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--c-text);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-text-sub);
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--c-text); }
.nav-links a.active { color: var(--c-text); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  border: none;
  outline: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-green);
  color: #0b1512;
}
.btn-primary:hover {
  background: var(--c-green-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(168,224,99,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-secondary:hover {
  border-color: var(--c-green-muted);
  color: var(--c-green);
}
.btn-ghost {
  background: transparent;
  color: var(--c-text-sub);
  padding: 12px 0;
}
.btn-ghost:hover { color: var(--c-green); }
.btn-lg {
  padding: 15px 32px;
  font-size: 1rem;
}

/* ── Tag / Pill ── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.pill-green {
  background: rgba(168,224,99,0.1);
  color: var(--c-green);
  border: 1px solid rgba(168,224,99,0.2);
}

/* ── Cards ── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.card:hover {
  border-color: var(--c-green-muted);
  box-shadow: var(--shadow-glow);
}

/* ── Dividers ── */
.divider {
  border: none;
  border-top: 1px solid var(--c-border-sub);
  margin: 0;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--c-border-sub);
  padding: var(--space-xl) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--c-text-dim);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--c-text-sub); }

/* ── Mobile nav ── */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-text-sub);
  border-radius: 2px;
  transition: all var(--t-base) var(--ease);
}

/* ── Utilities ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-fade-up  { animation: fadeUp var(--t-slow) var(--ease) both; }
.anim-fade-in  { animation: fadeIn var(--t-slow) var(--ease) both; }
.anim-delay-1  { animation-delay: 100ms; }
.anim-delay-2  { animation-delay: 200ms; }
.anim-delay-3  { animation-delay: 350ms; }
.anim-delay-4  { animation-delay: 500ms; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .container { padding: 0 var(--space-md); }
  .section { padding: var(--space-2xl) 0; }
  .t-display { font-size: 2.2rem; }
}
