/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a1509;
  --bg-dark:    #070f06;
  --bg-card:    #111e0f;
  --bg-card2:   #162014;
  --border:     #243d20;
  --border-lt:  #366030;
  --green:      #a8d08d;
  --green-dim:  #6a9a58;
  --green-dk:   #2e5424;
  --amber:      #d4a843;
  --amber-dim:  #a07830;
  --amber-glow: #d4a84322;
  --teal:       #5ab8a8;
  --violet:     #8878d0;
  --gold:       #c8a84a;
  --aqua:       #60b8c8;
  --text:       #d4c9a8;
  --text-dim:   #7a9a6a;
  --text-faint: #3a5a30;
  --white:      #f4ead8;
  --radius:     12px;
  --shadow:     0 4px 32px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.5;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--white); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(7, 15, 6, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo-block { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon { font-size: 1.5rem; filter: drop-shadow(0 0 8px #4a9a3088); }
.logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.logo-sub { font-size: 0.68rem; color: var(--text-faint); margin-top: 1px; }
nav { display: flex; align-items: center; gap: 28px; font-size: 0.86rem; }
nav a { color: var(--text-dim); transition: color 0.2s; }
nav a:hover { color: var(--green); }
.btn-join {
  background: linear-gradient(135deg, var(--green-dk), #1e3d18);
  border: 1px solid var(--green-dim);
  color: var(--green) !important;
  padding: 7px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 0 12px #2e542444;
  transition: all 0.2s;
}
.btn-join:hover {
  background: var(--green-dim);
  color: var(--bg) !important;
  box-shadow: 0 0 20px #6a9a5855;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 100px 28px 80px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 60px;
  overflow: hidden;
}

/* Watermark behind hero */
.hero::before {
  content: '🌿';
  position: absolute;
  font-size: 28rem;
  right: -4rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.025;
  pointer-events: none;
  filter: grayscale(1);
  line-height: 1;
}

.hero-inner { flex: 1; position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--amber-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding: 5px 14px;
  border: 1px solid var(--amber-dim);
  border-radius: 20px;
  background: var(--amber-glow);
}
.hero-eyebrow::before { content: '✦'; font-size: 0.6rem; }

.hero h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  color: var(--green);
  font-style: italic;
}
.hero h1 span {
  display: block;
  color: var(--amber);
}

.hero-body {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-dk), #1a3814);
  border: 1px solid var(--green-dim);
  color: var(--green);
  padding: 13px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  box-shadow: 0 0 20px #2e542444;
  transition: all 0.25s;
}
.btn-primary:hover {
  background: var(--green-dim);
  color: var(--bg);
  box-shadow: 0 0 32px #6a9a5866;
  transform: translateY(-1px);
}
.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.2s;
}
.btn-secondary:hover {
  border-color: var(--green-dim);
  color: var(--green);
  background: #1a2e1844;
}

/* ── Grove Orb ── */
.hero-art {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.grove-orb {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  filter: drop-shadow(0 0 24px #4a9a3060);
}
/* Radial glow behind orb */
.grove-orb::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, #2a5a2055 0%, #1a3a1022 50%, transparent 70%);
  animation: glow-pulse 4s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: ring-pulse 5s ease-in-out infinite;
}
.r1 { width: 170px; height: 170px; border-color: #366030aa; animation-delay: 0s; }
.r2 { width: 220px; height: 220px; animation-delay: 1.2s; opacity: 0.5; }
.r3 { width: 268px; height: 268px; animation-delay: 2.4s; opacity: 0.25; }
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.03); opacity: 1; }
}

/* ── Divider ── */
.grove-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0.4;
}
.grove-divider::before,
.grove-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-lt), transparent);
}
.grove-divider span { font-size: 0.75rem; color: var(--text-faint); white-space: nowrap; }

/* ── Sections ── */
.section { padding: 88px 0; }
.section-dark {
  background: var(--bg-dark);
  position: relative;
}
/* Subtle dot pattern for dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #2a4a2018 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  color: var(--amber-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-label::before { content: '✦'; font-size: 0.55rem; }
.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  color: var(--white);
  margin-bottom: 52px;
  max-width: 640px;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s, transform 0.25s;
}
.about-card:hover {
  border-color: var(--border-lt);
  transform: translateY(-2px);
}
.about-icon { font-size: 1.9rem; margin-bottom: 16px; display: block; }
.about-card h3 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.about-card p { font-size: 0.87rem; color: var(--text-dim); line-height: 1.65; }

/* ── Arms ── */
.arms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
/* Arm accent colors */
.arm-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  padding-top: 22px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  border-top-width: 3px;
  position: relative;
}
.arm-card:nth-child(1) { border-top-color: var(--green-dim); }
.arm-card:nth-child(2) { border-top-color: var(--gold); }
.arm-card:nth-child(3) { border-top-color: var(--violet); }
.arm-card:nth-child(4) { border-top-color: var(--teal); }
.arm-card:nth-child(5) { border-top-color: var(--aqua); }

.arm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.arm-card:nth-child(1):hover { border-color: var(--green-dim); box-shadow: 0 8px 32px #2e542430; }
.arm-card:nth-child(2):hover { border-color: var(--gold);      box-shadow: 0 8px 32px #c8a84a30; }
.arm-card:nth-child(3):hover { border-color: var(--violet);    box-shadow: 0 8px 32px #8878d030; }
.arm-card:nth-child(4):hover { border-color: var(--teal);      box-shadow: 0 8px 32px #5ab8a830; }
.arm-card:nth-child(5):hover { border-color: var(--aqua);      box-shadow: 0 8px 32px #60b8c830; }

.arm-header {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.arm-icon { font-size: 1.6rem; flex-shrink: 0; }
.arm-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.2;
}
.arm-token {
  font-size: 0.66rem;
  color: var(--amber-dim);
  letter-spacing: 0.07em;
  margin-top: 3px;
  font-weight: 600;
}
.arm-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 18px; }
.arm-loop {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--bg-dark);
  border-radius: 6px;
  border: 1px solid var(--border);
}
.arm-loop span { color: var(--green-dim); font-weight: 600; }
.arm-loop .arrow { color: var(--text-faint); }

/* ── Live Data ── */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 180px;
}
.live-card-header {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.03em;
}
.live-loading {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-loading::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  animation: blink 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:0.3} 50%{opacity:1} }

.live-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #1e3018;
  font-size: 0.82rem;
}
.live-stat:last-child { border-bottom: none; }
.live-stat .label {
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-stat .label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-faint);
  flex-shrink: 0;
}
.live-stat .value { color: var(--white); font-weight: 600; font-size: 0.88rem; }
.live-stat .value.green { color: var(--green); }
.live-stat .value.amber { color: var(--amber); }
.live-stat .value.glow-green {
  color: var(--green);
  text-shadow: 0 0 8px var(--green);
}
.live-error { font-size: 0.78rem; color: #6a4a4a; font-style: italic; margin-top: 12px; }
.dot-green::before  { background: var(--green) !important; box-shadow: 0 0 4px var(--green); }
.dot-amber::before  { background: var(--amber) !important; box-shadow: 0 0 4px var(--amber); }

/* ── Updates Feed ── */
.updates-feed { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.update-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  border-left: 3px solid var(--green-dk);
  transition: border-color 0.2s, transform 0.2s;
}
.update-post:hover {
  border-left-color: var(--green-dim);
  transform: translateX(3px);
}
.update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.72rem;
  color: var(--text-faint);
}
.update-tag {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2px 10px;
  color: var(--green-dim);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.update-post h3 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.update-post p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.65; }

/* ── CTA ── */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, #1e3a1822 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { max-width: 580px; margin: 0 auto; position: relative; z-index: 1; }
.cta-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--white);
  margin-bottom: 18px;
}
.cta-section h2 em { color: var(--green); font-style: italic; }
.cta-section p { color: var(--text-dim); margin-bottom: 36px; font-size: 1rem; }
.cta-section .hero-cta { justify-content: center; }
.network-note {
  margin-top: 28px;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.network-note strong { color: var(--text-dim); }

/* ── Footer ── */
footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  color: var(--text-dim);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-links { display: flex; gap: 24px; font-size: 0.8rem; }
.footer-links a { color: var(--text-faint); transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 0.7rem; color: var(--text-faint); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; padding: 72px 20px 52px; min-height: auto; gap: 40px; }
  .hero::before { font-size: 18rem; right: -2rem; opacity: 0.015; }
  .hero-art { display: none; }
  nav a:not(.btn-join) { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .arms-grid { grid-template-columns: 1fr; }
}
