/* ============================================
   SAGEWELL — Styles
   Nature-based, Soluna-inspired dark UI
   ============================================ */

:root {
  --sage: #7C9A6E;
  --dark-sage: #4A6741;
  --light-sage: #B8D4A8;
  --cream: #F8F5EE;
  --earth: #8B7355;
  --forest: #1E2E1E;
  --forest-mid: #2D3B2D;
  --gold: #D4B574;
  --gold-bright: #E8C96A;
  --text: #1a1a1a;
  --text-secondary: #6b6b6b;
  --white: #FEFCF9;
  --app-bg: #0f1a0f;
  --app-surface: rgba(255,255,255,0.06);
  --app-surface-hover: rgba(255,255,255,0.1);
  --app-text: rgba(255,255,255,0.85);
  --app-text-dim: rgba(255,255,255,0.45);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.1);
  --shadow-lg: 0 24px 80px rgba(0,0,0,0.14);
  --shadow-glow: 0 8px 40px rgba(124,154,110,0.2);
  --radius: 20px;
  --radius-lg: 28px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }

.section { padding: 140px 0; scroll-margin-top: 80px; }
.section--cream { background: var(--cream); }
.section--dark { background: linear-gradient(160deg, var(--forest) 0%, #1a3a1a 40%, var(--forest-mid) 100%); color: var(--white); }
.section--sage { background: linear-gradient(160deg, #e8f0e0 0%, #d4e8c8 40%, var(--cream) 100%); }

.section-title {
  font-size: clamp(2.2rem, 4vw + 0.5rem, 3.8rem);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.section-title--light { color: var(--white); }
.section-title--left { text-align: left; }

.title-accent {
  display: block; width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  margin: 20px auto 0; border-radius: 2px;
}
.section-title--left .title-accent { margin-left: 0; }

.section-intro {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  text-align: center; max-width: 640px;
  margin: 0 auto 72px;
  color: var(--text-secondary); line-height: 1.8;
}
.section-intro--light { color: rgba(255,255,255,0.75); }

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 24px 0;
  transition: all var(--transition);
}
.site-header.scrolled {
  background: rgba(30,46,30,0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 14px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-heading); font-size: 1.6rem;
  font-weight: 700; color: var(--white);
}
.nav-logo:hover { opacity: 0.85; }
.logo-leaf { display: inline-block; transition: transform var(--transition); }
.nav-logo:hover .logo-leaf { transform: rotate(15deg); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.8); font-size: 0.82rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; position: relative;
  transition: color var(--transition); padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 50%;
  width: 0; height: 2px; background: var(--gold);
  transition: all var(--transition); transform: translateX(-50%);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px; z-index: 1001;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); transition: all var(--transition); border-radius: 2px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative;
  background: linear-gradient(160deg, #0a150a 0%, var(--forest) 30%, var(--dark-sage) 65%, var(--sage) 100%);
  overflow: hidden; text-align: center;
}
.hero-bg-pattern {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 10 C40 10 32 24 32 40 C32 56 40 70 40 70 C40 70 48 56 48 40 C48 24 40 10 40 10Z' fill='%23ffffff' fill-opacity='0.6'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Floating particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.particle {
  position: absolute; font-size: 1.4rem; opacity: 0.15;
  animation: drift linear infinite;
}
.particle-1 { left: 10%; animation-duration: 18s; animation-delay: 0s; top: 20%; }
.particle-2 { left: 25%; animation-duration: 22s; animation-delay: -4s; top: 60%; }
.particle-3 { left: 70%; animation-duration: 20s; animation-delay: -8s; top: 30%; }
.particle-4 { left: 85%; animation-duration: 25s; animation-delay: -12s; top: 70%; }
.particle-5 { left: 50%; animation-duration: 19s; animation-delay: -6s; top: 45%; }

@keyframes drift {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 0.2; }
  50% { transform: translateY(-120px) translateX(30px) rotate(180deg); opacity: 0.15; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-250px) translateX(-20px) rotate(360deg); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; padding: 0 32px; max-width: 860px; }
.hero-title {
  font-size: clamp(3.5rem, 7vw + 1rem, 7rem);
  font-weight: 900; color: var(--white);
  margin-bottom: 24px; letter-spacing: -0.03em; line-height: 1.05;
}
.hero-leaf { display: inline-block; animation: float 4s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

.hero-tagline {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: rgba(255,255,255,0.9); font-weight: 300; margin-bottom: 12px;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255,255,255,0.5); margin-bottom: 48px; font-weight: 400;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--forest); padding: 18px 56px; border-radius: 60px;
  font-weight: 600; font-size: 1.05rem; letter-spacing: 0.03em;
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(212,181,116,0.3);
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212,181,116,0.45);
}

.hero-wave { position: absolute; bottom: -1px; left: 0; right: 0; z-index: 3; line-height: 0; }
.hero-wave svg { width: 100%; height: 140px; display: block; }

/* ============================================
   STATS
   ============================================ */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 48px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 36px 28px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-6px); }
.stat-top-border { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.stat-number {
  display: block; font-family: var(--font-heading);
  font-size: 3.8rem; font-weight: 900; color: var(--dark-sage);
  line-height: 1; margin-bottom: 14px;
}
.stat-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.stat-source { font-size: 0.78rem; color: #aaa; font-style: italic; display: block; }
.stats-attribution { text-align: center; font-size: 0.85rem; color: #999; }
.stats-attribution a {
  color: var(--dark-sage); text-decoration: underline;
  text-decoration-color: rgba(74,103,65,0.25);
}
.stats-attribution a:hover { text-decoration-color: var(--dark-sage); }

/* ============================================
   FEATURES
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--app-surface); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 44px 32px;
  transition: all var(--transition); position: relative;
}
@supports (backdrop-filter: blur(20px)) {
  .feature-card { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212,181,116,0.3);
  box-shadow: 0 16px 50px rgba(0,0,0,0.25), 0 0 40px rgba(124,154,110,0.08);
  background: var(--app-surface-hover);
}
.feature-icon { color: var(--light-sage); margin-bottom: 24px; transition: color var(--transition); }
.feature-card:hover .feature-icon { color: var(--gold); }
.feature-title { font-size: 1.35rem; color: var(--white); margin-bottom: 12px; }
.feature-desc { font-size: 0.95rem; color: rgba(255,255,255,0.65); line-height: 1.75; }

/* ============================================
   PHONE MOCKUPS — Soluna-inspired dark mode
   ============================================ */
.phones-container {
  display: flex; justify-content: center; gap: 32px;
  align-items: flex-start; flex-wrap: wrap; padding: 20px 0;
}
.phone-frame {
  width: 280px; height: 580px; border-radius: 44px;
  border: 5px solid #1a1a1a; position: relative; overflow: hidden;
  background: var(--app-bg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.05);
  flex-shrink: 0; transition: transform var(--transition-slow);
}
.phone-frame:hover { transform: translateY(-8px); }
.phone-frame--center { margin-top: -40px; z-index: 2; }
.phone-frame--center:hover { transform: translateY(-48px); }

.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 30px; background: #000;
  border-radius: 0 0 20px 20px; z-index: 5;
}
.phone-screen { height: 100%; padding: 48px 16px 0; overflow: hidden; display: flex; flex-direction: column; }

/* App top bar */
.app-bar {
  display: flex; align-items: center; padding: 0 4px 14px; gap: 8px;
}
.app-bar--transparent { background: transparent; }
.app-bar-icon { font-size: 1rem; }
.app-bar-title { font-family: var(--font-heading); font-size: 1.05rem; color: var(--app-text); font-weight: 600; flex: 1; }
.app-bar-title--light { color: var(--white); }
.app-bar-date { font-size: 0.7rem; color: var(--app-text-dim); }
.app-bar-date--light { color: rgba(255,255,255,0.4); }

/* Bottom nav (Soluna-style) */
.app-bottom-nav {
  margin-top: auto; display: flex; justify-content: space-around;
  padding: 12px 0 16px; border-top: 1px solid rgba(255,255,255,0.06);
}
.app-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 0.58rem; color: var(--app-text-dim); letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 500;
}
.app-nav-item svg { stroke: var(--app-text-dim); }
.app-nav-item--active { color: var(--light-sage); }
.app-nav-item--active svg { stroke: var(--light-sage); }

/* --- Journal screen (dark) --- */
.phone-screen--journal-dark {
  background: linear-gradient(180deg, #0f1a0f 0%, #152015 100%);
}
.app-card-dark {
  background: var(--app-surface); border-radius: 16px;
  padding: 16px; margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.05);
}
.app-card-label {
  font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 8px; font-weight: 600;
}
.app-card-text {
  font-size: 0.75rem; color: var(--app-text); line-height: 1.65; font-style: italic;
}
.app-write-area {
  background: var(--app-surface); border-radius: 16px;
  padding: 16px; margin-bottom: 12px; flex: 1; min-height: 0;
  border: 1px solid rgba(255,255,255,0.04);
}
.app-write-placeholder {
  font-size: 0.72rem; color: var(--app-text-dim); margin-bottom: 12px;
}
.app-write-line {
  height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 16px;
}
.app-pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.app-pill {
  font-size: 0.6rem; padding: 5px 12px;
  background: rgba(124,154,110,0.15); color: var(--light-sage);
  border-radius: 20px; font-weight: 500; border: 1px solid rgba(124,154,110,0.2);
}

/* --- Water breathing screen --- */
.phone-screen--water {
  background: linear-gradient(180deg, #0a1520 0%, #0f2030 30%, #152535 100%);
}
.water-scene {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
}
.water-label {
  font-size: 0.8rem; color: rgba(130,200,255,0.7);
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600;
  animation: water-label-pulse 6s ease-in-out infinite;
}
@keyframes water-label-pulse {
  0%, 100% { opacity: 0.5; }
  25% { opacity: 1; }
  50% { opacity: 0.5; }
  75% { opacity: 1; }
}

.water-container {
  width: 160px; height: 160px; border-radius: 50%;
  border: 2px solid rgba(130,200,255,0.2);
  position: relative; overflow: hidden;
  background: rgba(10,30,50,0.6);
}
.water-fill {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 30%; background: linear-gradient(180deg, rgba(80,170,240,0.3) 0%, rgba(40,120,200,0.5) 100%);
  border-radius: 0 0 50% 50%;
  animation: water-rise 6s ease-in-out infinite;
}
.water-ripple {
  position: absolute; bottom: 28%; left: 0; right: 0; height: 8px;
  background: linear-gradient(90deg, transparent, rgba(130,200,255,0.3), transparent);
  animation: water-ripple-move 3s ease-in-out infinite;
  filter: blur(2px);
}
@keyframes water-rise {
  0%, 100% { height: 25%; }
  50% { height: 75%; }
}
@keyframes water-ripple-move {
  0%, 100% { transform: translateX(-20px) scaleY(0.5); opacity: 0.3; }
  50% { transform: translateX(20px) scaleY(1.5); opacity: 0.8; }
}

.water-timer {
  font-size: 0.72rem; color: rgba(130,200,255,0.5);
  letter-spacing: 0.05em;
}
.water-sounds {
  display: flex; gap: 6px; justify-content: center; margin-bottom: 12px;
}
.water-sound-pill {
  font-size: 0.58rem; padding: 6px 12px;
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4);
  border-radius: 20px; border: 1px solid rgba(255,255,255,0.06);
}
.water-sound-pill--active {
  background: rgba(80,170,240,0.15); color: rgba(130,200,255,0.8);
  border-color: rgba(80,170,240,0.3);
}

/* --- Check-in screen (dark) --- */
.phone-screen--checkin-dark {
  background: linear-gradient(180deg, #0f1a0f 0%, #152015 100%);
}
.checkin-question {
  font-family: var(--font-heading); font-size: 1.1rem;
  color: var(--app-text); margin-bottom: 16px; line-height: 1.3;
}
.checkin-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.checkin-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; background: var(--app-surface);
  border-radius: 16px; border: 1px solid rgba(255,255,255,0.04);
  transition: all var(--transition);
}
.checkin-option--active {
  background: rgba(124,154,110,0.15);
  border-color: rgba(124,154,110,0.3);
}
.checkin-emoji { font-size: 1.2rem; }
.checkin-native {
  font-size: 0.8rem; font-weight: 600; color: var(--app-text);
  font-style: italic;
}
.checkin-eng { font-size: 0.68rem; color: var(--app-text-dim); margin-left: auto; }

.checkin-prompt-card {
  background: rgba(212,181,116,0.08); border-radius: 14px;
  padding: 14px; border: 1px solid rgba(212,181,116,0.1);
  margin-bottom: 12px;
}
.checkin-prompt-card p {
  font-size: 0.7rem; color: var(--gold); line-height: 1.6; font-style: italic;
}

/* ============================================
   TECH AS CONNECTION — Medicine Wheel
   ============================================ */
.connection-layout {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 80px; align-items: center;
}
.connection-body { font-size: 1.1rem; color: #4a4a4a; line-height: 1.85; margin-bottom: 24px; }
.connection-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-style: italic; color: var(--dark-sage);
  padding: 28px 28px 28px 32px;
  border-left: 4px solid var(--gold);
  margin: 36px 0; line-height: 1.5;
  background: rgba(212,181,116,0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote-attribution {
  display: block; font-family: var(--font-body);
  font-size: 0.85rem; font-style: normal; color: #999; margin-top: 14px;
}
.quote-attribution cite { font-style: italic; color: var(--dark-sage); }

/* Medicine Wheel */
.wheel-wrap {
  display: flex; align-items: center; justify-content: center;
}

.wheel {
  width: 300px; height: 300px; border-radius: 50%;
  position: relative; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(80,60,40,0.25), 0 12px 40px rgba(0,0,0,0.15);
  animation: wheel-breathe 8s ease-in-out infinite;
}

@keyframes wheel-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(80,60,40,0.25), 0 12px 40px rgba(0,0,0,0.15); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 3px rgba(80,60,40,0.3), 0 16px 50px rgba(0,0,0,0.18); }
}

.wheel-quadrant {
  position: absolute; width: 50%; height: 50%;
  display: flex; align-items: center; justify-content: center;
}

.wq-word {
  font-family: var(--font-body); font-size: 0.8rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0.85;
}

/* East (top-right) — Red — Spirit */
.wq-east {
  top: 0; right: 0;
  background: #8B3A3A;
  color: #f0d8d0;
}

/* South (bottom-right) — Yellow — Heart */
.wq-south {
  bottom: 0; right: 0;
  background: #B89B4A;
  color: #f5eed8;
}

/* West (bottom-left) — Black — Body */
.wq-west {
  bottom: 0; left: 0;
  background: #2A2A2A;
  color: #c8c0b8;
}

/* North (top-left) — White — Mind */
.wq-north {
  top: 0; left: 0;
  background: #D8D0C4;
  color: #4a4038;
}

/* Center circle */
.wheel-core {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle, #a08060 0%, #806040 100%);
  box-shadow: 0 0 0 3px rgba(80,60,40,0.3);
  z-index: 2;
}

/* ============================================
   NATIVE LAND MAP
   ============================================ */
.map-image-link { display: block; text-decoration: none; margin-bottom: 28px; }
.map-image-wrapper {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  transition: all var(--transition-slow);
}
.map-image-wrapper:hover {
  transform: scale(1.01);
  box-shadow: 0 32px 100px rgba(0,0,0,0.5), 0 0 80px rgba(124,154,110,0.12);
}
.map-image { width: 100%; display: block; transition: transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.map-image-wrapper:hover .map-image { transform: scale(1.04); }

.map-image-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(30,46,30,0.5) 70%, rgba(30,46,30,0.85) 100%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 36px; opacity: 0; transition: opacity 0.4s ease;
}
.map-image-wrapper:hover .map-image-overlay { opacity: 1; }

.map-explore-btn {
  display: inline-block; padding: 14px 36px;
  border: 2px solid var(--gold); border-radius: 60px;
  color: var(--gold); font-weight: 600; font-size: 0.9rem;
  backdrop-filter: blur(12px); background: rgba(30,46,30,0.4);
  transition: all var(--transition); transform: translateY(10px);
}
.map-image-wrapper:hover .map-explore-btn { transform: translateY(0); }
.map-image-link:hover .map-explore-btn { background: var(--gold); color: var(--forest); }

.map-attribution {
  text-align: center; font-size: 0.8rem;
  color: rgba(255,255,255,0.45); font-style: italic; line-height: 1.7;
}
.map-attribution a { color: var(--light-sage); text-decoration: underline; text-decoration-color: rgba(184,212,168,0.25); }

/* ============================================
   MISSION
   ============================================ */
.mission-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.mission-body { font-size: 1.1rem; color: #4a4a4a; line-height: 1.85; margin-bottom: 20px; }
.values-title { font-size: 1.5rem; color: var(--dark-sage); margin-bottom: 28px; }
.values-list li {
  padding: 14px 0 14px 32px; position: relative;
  font-size: 1rem; color: #4a4a4a;
  border-bottom: 1px solid rgba(0,0,0,0.05); line-height: 1.65;
}
.values-list li:last-child { border-bottom: none; }
.values-list li::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--light-sage));
}

/* ============================================
   COMMUNITY RESOURCES
   ============================================ */
.resources-location {
  text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.6);
  margin-bottom: 36px; font-weight: 500;
}
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.resource-card--dark {
  display: block; background: var(--app-surface);
  border-radius: var(--radius); padding: 36px 32px;
  border-left: 4px solid var(--sage); border-top: none;
  box-shadow: none; text-decoration: none; color: var(--white);
  transition: all var(--transition);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 4px solid var(--sage);
}
.resource-card--dark:hover {
  box-shadow: 0 16px 50px rgba(0,0,0,0.3), var(--shadow-glow);
  transform: translateY(-6px); border-left-color: var(--gold);
  background: var(--app-surface-hover);
}
.resource-card--dark .resource-title { color: var(--white); font-size: 1.25rem; margin-bottom: 4px; }
.resource-card--dark .resource-subtitle { color: var(--app-text-dim); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.resource-card--dark .resource-desc { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; margin-bottom: 18px; }
.resource-card--dark .resource-link { color: var(--light-sage); font-size: 0.85rem; font-weight: 600; }
.resource-card--dark:hover .resource-link { color: var(--gold); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--forest); color: rgba(255,255,255,0.65);
  padding: 80px 0 0; border-top: 3px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; padding-bottom: 60px; }
.footer-heading { font-size: 1.15rem; color: var(--white); margin-bottom: 18px; }
.footer-text { font-size: 0.9rem; line-height: 1.75; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0; text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.35);
}
.footer-land { margin-top: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.45); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .section { padding: 100px 0; }
  .connection-layout, .mission-layout { grid-template-columns: 1fr; gap: 48px; }
  .connection-visual { order: -1; }
  .wheel { width: 260px; height: 260px; }
  .section-title--left { text-align: center; }
  .section-title--left .title-accent { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: var(--forest); flex-direction: column;
    padding: 100px 40px 40px; gap: 20px;
    transition: right var(--transition);
    box-shadow: -10px 0 50px rgba(0,0,0,0.4);
  }
  .nav-links.active { right: 0; }
  .nav-links a { font-size: 1rem; }
  .phones-container { gap: 20px; }
  .phone-frame { width: 240px; height: 500px; border-radius: 36px; }
  .phone-frame--center { margin-top: 0; }
  .phone-notch { width: 90px; height: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-intro { margin-bottom: 48px; }
  .container { padding: 0 20px; }
  .wheel { width: 220px; height: 220px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .phones-container { flex-direction: column; align-items: center; }
  .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .resources-grid { grid-template-columns: 1fr; }
  .wheel { width: 200px; height: 200px; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}
