/* ═══════════════════════════════════════════════════════════
   SNAPTACT — Common Styles
   Shared tokens, reset, nav, buttons, footer, animations
   ═══════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  /* Light / cream canvas */
  --cream: #f8f7f3;
  --cream-deep: #f0efe9;
  --white: #ffffff;
  --ink: #0a0a0c;
  --ink-soft: #1a1a1f;
  --ink-muted: #3d3d42;
  --gray-warm: #6b6a65;
  --gray-mid: #9a9990;
  --gray-light: #c8c7c0;
  --gray-whisper: #e8e7e2;
  --border-light: rgba(0,0,0,0.06);

  /* Dark surfaces */
  --dark: #0a0a0c;
  --dark-surface: #131316;
  --dark-surface-2: #1a1a1f;
  --dark-surface-3: #222228;
  --dark-text: #e8e6e1;
  --dark-text-dim: #7a7880;
  --dark-text-muted: #4a4850;
  --dark-border: rgba(255,255,255,0.06);

  /* Brand — green */
  --green: #16a34a;
  --green-bright: #22c55e;
  --green-light: #bbf7d0;
  --green-wash: #dcfce7;
  --green-dim: rgba(22,163,74,0.08);
  --green-glow: rgba(22,163,74,0.15);

  /* Brand — red */
  --red: #ef4444;
  --red-bright: #f87171;
  --red-wash: #fef2f2;
  --red-dim: rgba(239,68,68,0.08);
  --red-glow: rgba(239,68,68,0.15);

  /* Brand — amber */
  --amber: #f59e0b;
  --amber-dim: rgba(245,158,11,0.08);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 800px;
  --section-pad: clamp(80px, 10vw, 140px);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

/* ── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── UTILITY ───────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.narrow { max-width: 760px; margin: 0 auto; }

/* ── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Delay aliases — both naming conventions */
.reveal-delay-1, .reveal-d1 { transition-delay: 0.08s; }
.reveal-delay-2, .reveal-d2 { transition-delay: 0.16s; }
.reveal-delay-3, .reveal-d3 { transition-delay: 0.24s; }
.reveal-delay-4, .reveal-d4 { transition-delay: 0.32s; }

/* ── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(248,247,243,0.8);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 1px 20px rgba(0,0,0,0.04); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.nav-logo span { color: var(--green); }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-warm);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-cta {
  background: var(--green);
  color: white !important;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-cta:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(22,163,74,0.25);
}
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ── BUTTONS ───────────────────────────────────────────── */
.btn-primary {
  background: var(--green);
  color: white;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
}
.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(22,163,74,0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--ink-muted);
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--gray-whisper);
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-body);
}
.btn-secondary:hover {
  border-color: var(--gray-light);
  background: var(--white);
  color: var(--ink);
}
.btn-dark {
  background: var(--green);
  color: white;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-dark:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(22,163,74,0.3);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--dark-text-dim);
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  border: 1px solid var(--dark-border);
  cursor: pointer;
  transition: all 0.25s;
}
.btn-ghost-dark:hover {
  border-color: var(--dark-text-muted);
  color: var(--dark-text);
}

/* ── FINAL CTA (shared skeleton) ───────────────────────── */
.final-cta {
  padding: var(--section-pad) 0;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.final-cta h2 em { font-style: italic; color: var(--green); }
.final-cta p {
  font-size: 17px;
  color: var(--gray-warm);
  max-width: 480px;
  margin: 0 auto 32px;
}
.final-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.final-note {
  font-size: 14px;
  color: var(--gray-mid);
  margin-top: 16px;
}

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: var(--dark-text-dim);
  padding: 64px 0 40px;
  border-top: 1px solid var(--dark-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .f-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--dark-text);
  margin-bottom: 12px;
}
.footer-brand .f-logo span { color: var(--green); }
.footer-brand p {
  font-size: 14px;
  color: var(--dark-text-dim);
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dark-text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 14px;
  color: var(--dark-text-dim);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--dark-text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--dark-border);
  font-size: 13px;
}
.footer-bottom a { color: var(--dark-text-dim); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--dark-text); }
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ── KEYFRAMES ─────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
