/* ===== TOKENS ===== */
:root {
  --bg: #000000;
  --bg-card: #0a0a0a;
  --bg-elevated: #131313;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.25);
  --text: #f5f5f3;
  --text-muted: #a8a8a3;
  --text-faint: #6e6e6a;
  --teal: #1D9E75;
  --teal-light: #5DCAA5;
  --purple: #7F77DD;
  --purple-deep: #534AB7;
  --purple-glow: rgba(127, 119, 221, 0.15);
  --teal-glow: rgba(29, 158, 117, 0.12);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== TYPOGRAPHY ===== */
.display-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

.display-h2 em {
  font-style: italic;
  color: var(--purple);
  font-weight: 500;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.72rem; }
.btn-lg { padding: 1rem 2.4rem; font-size: 0.82rem; }

.btn-primary {
  background: var(--purple-deep);
  color: #fff;
  border-color: var(--purple-deep);
}
.btn-primary:hover {
  background: var(--purple);
  border-color: var(--purple);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-mark { width: 36px; height: 36px; }

.nav-wordmark {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-wordmark .dash { color: var(--teal); }
.nav-wordmark .dot { color: var(--purple); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-links > a:not(.btn) {
  color: var(--text);
  transition: color 0.2s;
}
.nav-links > a:not(.btn):hover { color: var(--purple); }

.nav-divider {
  color: var(--text-faint);
  font-weight: 300;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 5rem;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(85vw, 800px);
  height: min(85vw, 800px);
  pointer-events: none;
  z-index: 0;
}

.orb-svg { width: 100%; height: 100%; }

.orb-rotate {
  transform-origin: 300px 300px;
  animation: slow-rotate 90s linear infinite;
}
.orb-nodes {
  transform-origin: 300px 300px;
  animation: slow-rotate-rev 120s linear infinite;
}

@keyframes slow-rotate {
  to { transform: rotate(360deg); }
}
@keyframes slow-rotate-rev {
  to { transform: rotate(-360deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-up 0.8s ease 0.1s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fade-up 0.8s ease 0.25s forwards;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(90deg, var(--teal) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.8rem;
  line-height: 1.65;
  opacity: 0;
  animation: fade-up 0.8s ease 0.4s forwards;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 0.8s ease 0.55s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== STATS ===== */
.stats {
  padding: 5rem 2rem;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.stats-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3.5rem;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
}

.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.stat-divider {
  color: var(--text-faint);
  font-size: 2.5rem;
  font-weight: 100;
  font-family: var(--font-display);
}

/* ===== INTRO SECTION ===== */
.intro {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.intro-text .display-h2 {
  margin-bottom: 2rem;
}

.intro-body {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1.4rem;
  max-width: 520px;
}

.intro-visual {
  display: flex;
  justify-content: center;
}

.intro-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(29, 158, 117, 0.06) 0%, rgba(127, 119, 221, 0.06) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.intro-card-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.intro-graph {
  width: 80%;
  max-width: 280px;
  height: auto;
}

.intro-card-caption {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
  margin-top: 1rem;
}

/* ===== SECTION HEAD ===== */
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4.5rem;
}

.section-head .display-h2 {
  margin-bottom: 1.2rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.section-cta {
  text-align: center;
  margin-top: 4rem;
}

/* ===== EXPERIENCES ===== */
.experiences {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.exp-card {
  padding: 2.2rem 1.8rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.exp-card:hover {
  background: var(--bg-elevated);
  border-color: rgba(127, 119, 221, 0.3);
  transform: translateY(-4px);
}
.exp-card:hover::before { opacity: 1; }

.exp-icon {
  width: 52px;
  height: 52px;
  color: var(--purple);
  margin-bottom: 1.5rem;
}
.exp-icon svg { width: 100%; height: 100%; }

.exp-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.exp-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== MEMBERSHIP TIERS ===== */
.membership {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 1rem;
}

.tier-card {
  padding: 3rem 2.5rem;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s ease;
}

.tier-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.tier-featured {
  background: linear-gradient(180deg, rgba(127, 119, 221, 0.04) 0%, transparent 100%);
  border-color: rgba(127, 119, 221, 0.25);
}

.tier-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.tier-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.8rem;
  color: var(--purple);
}
.tier-icon svg { width: 100%; height: 100%; }

.tier-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto;
}

/* ===== CLOSING ===== */
.closing {
  padding: 7rem 2rem 5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.closing-text .display-h2 {
  margin-bottom: 2rem;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.closing-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.closing-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.closing-visual {
  display: flex;
  justify-content: center;
}

.closing-orb {
  width: 100%;
  max-width: 500px;
}
.closing-orb svg { width: 100%; height: auto; }

.ribbon {
  transform-origin: 250px 250px;
  animation: ribbon-spin 40s linear infinite;
}

@keyframes ribbon-spin {
  to { transform: rotate(360deg); }
}

/* ===== HOME NEWSLETTER ===== */
.home-newsletter {
  padding: 4rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.home-newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(29, 158, 117, 0.05) 0%, rgba(127, 119, 221, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.home-newsletter-inner .display-h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
}

.home-newsletter-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.8rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.home-newsletter .newsletter-form {
  display: flex;
  gap: 0.6rem;
  max-width: 540px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.home-newsletter .newsletter-form input {
  flex: 1;
  min-width: 160px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
}

.home-newsletter .newsletter-form input:focus {
  outline: none;
  border-color: var(--purple);
}

@media (max-width: 600px) {
  .home-newsletter-inner { padding: 2rem 1.2rem; }
  .home-newsletter .newsletter-form { flex-direction: column; }
  .home-newsletter .newsletter-form input,
  .home-newsletter .newsletter-form button { width: 100%; }
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  text-align: center;
}

.footer-inner {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-inner a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.footer-inner a:hover { color: var(--purple); }

.footer-bottom {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-inner { padding: 1rem 1.5rem; }
  .nav-links {
    gap: 0.8rem;
    font-size: 0.7rem;
  }
  .nav-links > a:not(.btn) { display: none; }
  .nav-divider { display: none; }

  .hero { padding: 4rem 1.5rem; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 4.5rem); }

  .intro-grid,
  .closing-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .exp-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .tier-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-divider { display: none; }
  .stats-row { gap: 2.5rem; }

  .footer-inner { gap: 1.8rem; }
}

@media (max-width: 600px) {
  .nav-wordmark { font-size: 0.95rem; }
  .nav-mark { width: 30px; height: 30px; }
  .hero-sub { font-size: 1rem; }
  .closing { padding: 4rem 1.5rem 3rem; }
  .experiences, .membership, .intro { padding: 4rem 1.5rem; }
}
