/* ─────────────────────────────────────────
   Re:Sourced – Shared Design System
   ───────────────────────────────────────── */

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

:root {
  --nav-bg:   #1c4552;
  --hero-bg:  #c3e6d7;
  --dark-bg:  #03151a;
  --mint:     #c3e6d7;
  --dark-text:#111111;
  --white:    #ffffff;
  --gray-light: #f7f7f7;
  --gray-mid:   #f0f0f0;
  --text-muted: rgba(255,255,255,0.55);
  --font: 'Inter', 'Geist', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--nav-bg); color: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── TYPOGRAPHY ── */
.h-display { font-size: clamp(48px, 6vw, 78px); font-weight: 800; line-height: 1.02; letter-spacing: -2px; }
.h-large   { font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -1.5px; }
.h-med     { font-size: clamp(28px, 3vw, 40px); font-weight: 800; line-height: 1.1;  letter-spacing: -1px; }
.h-section { font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: 1.1;  letter-spacing: -1.5px; }
.eyebrow   { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.eyebrow.dark { color: var(--nav-bg); }
.lead      { font-size: 16px; line-height: 1.75; color: rgba(255,255,255,0.7); }
.lead.dark { color: #555; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 85px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-logo-link { display: flex; align-items: center; text-decoration: none; }
.nav-logo-link img { height: 42px; width: auto; display: block; }
/* Legacy logo class — kept for compatibility */
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.logo-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 28px; height: 28px; }
.logo-text { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.logo-text em { color: var(--mint); font-style: normal; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.btn-nav-dot {
  display: flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--nav-bg);
  font-size: 13px; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}
.btn-nav-dot:hover { opacity: 0.88; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nav-bg); flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

.btn-nav-outline {
  font-size: 13px; font-weight: 500; color: #fff;
  padding: 10px 18px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.45);
  transition: border-color 0.2s, background 0.2s;
}
.btn-nav-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.nav-hamburger {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,0.25); border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-hamburger span { display: block; width: 16px; height: 1.5px; background: #fff; border-radius: 2px; }

.nav-overlay-cta { display: none; } /* shown only on mobile via media query */

/* ── BUTTONS ── */
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark-text); color: #fff;
  font-size: 14px; font-weight: 600; padding: 13px 22px;
  border-radius: var(--radius-pill); transition: background 0.2s, transform 0.15s;
}
.btn-dark:hover { background: #222; transform: translateY(-1px); }

.btn-mint {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--dark-bg);
  font-size: 14px; font-weight: 700; padding: 13px 22px;
  border-radius: var(--radius-pill); transition: opacity 0.2s, transform 0.15s;
}
.btn-mint:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-mint-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--mint); color: var(--dark-bg);
  font-size: 15px; font-weight: 700; padding: 15px 28px;
  border-radius: var(--radius-pill); transition: opacity 0.2s;
}
.btn-mint-lg:hover { opacity: 0.88; }

.btn-dark-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--dark-bg); color: #fff;
  font-size: 15px; font-weight: 600; padding: 15px 28px;
  border-radius: var(--radius-pill); transition: background 0.2s;
}
.btn-dark-lg:hover { background: #0a2028; }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(255,255,255,0.45); color: #fff;
  font-size: 14px; font-weight: 500; padding: 13px 22px;
  border-radius: var(--radius-pill); transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.05); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid rgba(0,0,0,0.2); color: var(--dark-bg);
  font-size: 14px; font-weight: 500; padding: 13px 22px;
  border-radius: var(--radius-pill); transition: border-color 0.2s;
}
.btn-outline-dark:hover { border-color: var(--dark-bg); }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--dark-bg);
  font-size: 14px; font-weight: 600; padding: 13px 22px;
  border-radius: var(--radius-pill); transition: opacity 0.2s;
}
.btn-white:hover { opacity: 0.88; }

/* ── LAYOUT HELPERS ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.section-pad { padding: 96px 80px; }
.section-pad-sm { padding: 64px 80px; }

/* Grid pattern background */
.bg-grid {
  background-color: var(--nav-bg);
  background-image:
    linear-gradient(rgba(195,230,215,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,230,215,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 100px 80px 80px;
  background: var(--nav-bg);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(195,230,215,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(195,230,215,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; max-width: 760px; }
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero .lead { margin-bottom: 36px; }

/* ── CTA STRIP ── */
.cta-strip {
  background: var(--dark-bg);
  padding: 96px 80px;
  text-align: center;
}
.cta-strip h2 { color: #fff; max-width: 660px; margin: 0 auto 18px; }
.cta-strip p  { color: rgba(255,255,255,0.6); max-width: 540px; margin: 0 auto 48px; font-size: 16px; line-height: 1.7; }
.cta-strip-buttons { display: flex; gap: 14px; justify-content: center; margin-bottom: 72px; }

/* Stats row */
.stats-row {
  display: flex; gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 56px; max-width: 900px; margin: 0 auto;
}
.stat-item { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); padding: 0 32px; }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 44px; font-weight: 800; color: var(--mint); letter-spacing: -1px; display: block; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.45); }

/* ── FOOTER ── */
footer {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 80px 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 56px;
}
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.75; max-width: 220px; }
.footer-col h4 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px; font-size: 12px; color: rgba(255,255,255,0.28);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); }

/* ── SCROLL FADE ── */
.fade-up { opacity: 0; transform: translateY(36px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .section-pad, .section-pad-sm, .page-hero { padding-left: 40px; padding-right: 40px; }
  footer { padding-left: 40px; padding-right: 40px; }
  nav { padding: 0 28px; }
}
@media (max-width: 900px) {
  .nav-overlay { overflow-y: auto; }
  .nav-overlay-header { padding: 16px 24px; }
  .nav-overlay-header img { height: 34px; }
  .nav-overlay-body { padding: 20px 24px; flex-direction: column; gap: 18px; }
  .nav-overlay-col { min-width: unset; }
  .nav-overlay-col + .nav-overlay-col { margin-left: 0; }
  .nav-overlay-col a { font-size: 22px; padding: 5px 0; }
  .nav-overlay-info { margin-left: 0; gap: 18px; }
  .nav-overlay-info-block h4 { font-size: 10px; margin-bottom: 4px; }
  .nav-overlay-info-block p { font-size: 12px; line-height: 1.6; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .btn-nav-dot, .btn-nav-outline { display: none; }
  .nav-overlay-cta { display: flex; flex-direction: row; gap: 10px; padding: 0 24px 8px; }
  .nav-overlay-cta a {
    display: block; text-align: center; padding: 11px 18px;
    border-radius: 10px; font-size: 13px; font-weight: 700; flex: 1;
    text-decoration: none; font-family: var(--font);
  }
  .nav-overlay-cta .overlay-cta-primary {
    background: var(--mint); color: var(--nav-bg);
  }
  .nav-overlay-cta .overlay-cta-secondary {
    background: rgba(255,255,255,0.1); color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
  }
  .section-pad  { padding: 60px 24px; }
  .section-pad-sm { padding: 48px 24px; }
  .page-hero { padding: 60px 24px 48px; }
  .container { padding: 0 20px; }
  footer { padding: 48px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; margin-bottom: 24px; }
  .stat-num { font-size: 32px; }
  .cta-strip { padding: 64px 24px; }
  .cta-strip-buttons { flex-direction: column; align-items: center; }
  .h-display { letter-spacing: -1px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .nav-overlay-header { padding: 12px 16px; }
  .nav-overlay-header img { height: 28px; }
  .nav-overlay-body { padding: 16px 16px; gap: 14px; }
  .nav-overlay-col a { font-size: 20px; padding: 4px 0; }
  .nav-overlay-info { gap: 12px; }
  .nav-overlay-info-block p { font-size: 11px; }
  .nav-overlay-cta a { padding: 10px 14px; font-size: 12px; }
}
