/* ============================================
   TCIF — Tanzanite Crypto Index Fund
   Main Stylesheet
   Version: 1.0
   ============================================ */

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --tanzanite: #1a3a8f;
  --tanzanite-deep: #0d1f5c;
  --tanzanite-light: #2b5cd6;
  --tanzanite-glow: #4a7af5;
  --green: #1a8f4a;
  --green-light: #22b85e;
  --gold: #d4a843;
  --gold-light: #f0c95e;
  --bg-primary: #050a18;
  --bg-secondary: #0a1228;
  --bg-card: #0e1a35;
  --bg-card-hover: #132347;
  --text-primary: #e8edf8;
  --text-secondary: #8a9cc5;
  --text-muted: #5a6d99;
  --border: #1a2a52;
  --border-light: #243565;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-image:
    radial-gradient(circle at 95% 5%, rgba(26,58,143,0.15) 0%, transparent 40%),
    radial-gradient(circle at 5% 95%, rgba(26,143,74,0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Page wrapper - no longer needed but keep selector for compatibility */
#page-wrapper {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* ============================================
   BACKGROUND EFFECTS
   ============================================ */
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(26,58,143,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,58,143,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glows are now body background-image - hide the divs */
.bg-glow-1,
.bg-glow-2 {
  display: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,10,24,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(5,10,24,0.95);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-light);
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo-text span { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover::after { width: 100%; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0a0a0a;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212,168,67,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--tanzanite-light);
  background: rgba(26,58,143,0.1);
}

.btn-wallet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--tanzanite-light), var(--tanzanite));
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-wallet:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(43,92,214,0.3);
}

.btn-wallet:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(26,58,143,0.2);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--tanzanite-glow);
  font-weight: 500;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

#hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  max-width: 800px;
}

#hero h1 .highlight {
  background: linear-gradient(135deg, var(--tanzanite-glow), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 700px;
}

.hero-metric {
  background: var(--bg-card);
  padding: 24px;
  text-align: center;
}

.hero-metric .value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.hero-metric .value.gold { color: var(--gold); }
.hero-metric .value.green { color: var(--green-light); }
.hero-metric .value.blue { color: var(--tanzanite-glow); }

.hero-metric .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--tanzanite-glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--tanzanite-glow);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  max-width: 700px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ============================================
   VALUE PROPOSITION CARDS
   ============================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tanzanite-light), var(--gold));
  opacity: 0;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-card:hover::before { opacity: 1; }

.value-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,58,143,0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.value-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.allocation-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.donut-container {
  width: 240px;
  height: 240px;
  margin: 0 auto 32px;
  position: relative;
}

.donut-container svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.donut-center .amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.donut-center .sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.allocation-legend {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.legend-dot.core { background: var(--tanzanite-light); }
.legend-dot.growth { background: var(--green-light); }

.asset-table { width: 100%; }

.asset-table-header {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.asset-row {
  display: grid;
  grid-template-columns: 1fr 80px 100px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26,42,82,0.4);
  align-items: center;
  transition: var(--transition);
}

.asset-row:hover { background: rgba(26,58,143,0.05); }

.asset-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-ticker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.asset-full {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.asset-category {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 100px;
  text-align: center;
  font-weight: 500;
}

.asset-category.core {
  background: rgba(43,92,214,0.15);
  color: var(--tanzanite-glow);
}

.asset-category.growth {
  background: rgba(34,184,94,0.15);
  color: var(--green-light);
}

.asset-alloc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  text-align: right;
  color: var(--text-secondary);
}

/* ============================================
   TOKENOMICS
   ============================================ */
.tokenomics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.token-dist {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.dist-bar {
  display: flex;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
}

.dist-segment {
  transition: var(--transition);
  cursor: pointer;
}

.dist-segment:hover { opacity: 0.8; }

.dist-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(14,26,53,0.5);
  border-radius: var(--radius-sm);
}

.dist-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dist-color {
  width: 12px; height: 12px;
  border-radius: 3px;
}

.dist-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.dist-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
}

.token-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.token-detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.token-detail-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tanzanite-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,42,82,0.3);
  font-size: 0.9rem;
}

.detail-row:last-child { border: none; }
.detail-label { color: var(--text-secondary); }

.detail-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================
   PROJECTIONS
   ============================================ */
.projections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.projection-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.projection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.projection-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212,168,67,0.05), rgba(26,58,143,0.1));
}

.projection-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.projection-nav {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.projection-nav.base { color: var(--text-secondary); }
.projection-nav.moderate { color: var(--tanzanite-glow); }
.projection-nav.bull { color: var(--gold); }

.projection-growth {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.projection-growth.green { color: var(--green-light); }

.projection-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.investment-example {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.invest-step { text-align: center; }

.invest-step .amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.invest-step .desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.invest-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
}

/* ============================================
   ROADMAP
   ============================================ */
.roadmap-timeline {
  position: relative;
  padding-left: 40px;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--tanzanite-light), var(--green-light), var(--gold));
}

.roadmap-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 32px;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: -26px; top: 8px;
  width: 12px; height: 12px;
  background: var(--tanzanite-light);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
}

.roadmap-item.active::before {
  background: var(--green-light);
  box-shadow: 0 0 12px rgba(34,184,94,0.4);
}

.roadmap-item.future::before {
  background: var(--text-muted);
}

.roadmap-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--tanzanite-glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.roadmap-item h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.roadmap-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   SECURITY
   ============================================ */
.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 20px;
  transition: var(--transition);
}

.security-card:hover { border-color: var(--border-light); }

.security-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,58,143,0.15);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
}

.security-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.security-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   IMPACT
   ============================================ */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.impact-stat {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.impact-stat .number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.impact-stat .number.green { color: var(--green-light); }
.impact-stat .number.blue { color: var(--tanzanite-glow); }
.impact-stat .number.gold { color: var(--gold); }

.impact-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   TEAM
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

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

.team-avatar {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--tanzanite-light), var(--green));
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  font-family: 'DM Sans', sans-serif;
}

.team-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--tanzanite-glow);
  margin-bottom: 12px;
}

.team-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.advisors {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.advisor-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.advisor-badge .a-dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================
   CTA / INVEST
   ============================================ */
#invest {
  background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.cta-box {
  background: linear-gradient(135deg, rgba(26,58,143,0.2), rgba(26,143,74,0.1));
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(212,168,67,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.8;
  position: relative;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  position: relative;
}

.cta-details {
  display: flex;
  justify-content: center;
  gap: 48px;
  position: relative;
}

.cta-detail { text-align: center; }

.cta-detail .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.cta-detail .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   WEB3 MODAL (future smart contract integration)
   ============================================ */
.web3-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.web3-modal-overlay.active { display: flex; }

.web3-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
}

.web3-modal h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.web3-modal p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.wallet-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(14,26,53,0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

.wallet-option:hover {
  border-color: var(--tanzanite-light);
  background: rgba(26,58,143,0.1);
}

.wallet-option img {
  width: 28px; height: 28px;
  border-radius: 6px;
}

.web3-status {
  padding: 12px 20px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--green-light);
  display: none;
}

.web3-status.active { display: block; }

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-left img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover { color: var(--text-primary); }

.footer-disclaimer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .portfolio-layout,
  .tokenomics-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .team-grid, .projections-grid { grid-template-columns: repeat(2, 1fr); }
  .investment-example { grid-template-columns: 1fr; text-align: center; }
  .invest-arrow { transform: rotate(90deg); }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }
  .value-grid, .security-grid, .team-grid, .projections-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: repeat(2, 1fr); }
  .impact-stats { grid-template-columns: repeat(2, 1fr); }
  .cta-box { padding: 40px 24px; }
  .cta-details { flex-direction: column; gap: 16px; }
  .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-metrics { grid-template-columns: 1fr; }
  .impact-stats { grid-template-columns: 1fr; }
}

/* ============================================
   MOBILE OVERFLOW FIX (iOS Safari)
   ============================================ */
img, svg, video, canvas, audio, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* ============================================
   PREMIUM DESIGN LAYER V2
   Tanzanite + Green primary, Gold as selective accent
   ============================================ */

/* Richer body atmosphere */
body {
  background-image:
    radial-gradient(ellipse at 80% 10%, rgba(26,58,143,0.08) 0%, transparent 50%),
    radial-gradient(circle at 95% 5%, rgba(26,58,143,0.15) 0%, transparent 40%),
    radial-gradient(circle at 5% 95%, rgba(26,143,74,0.08) 0%, transparent 40%);
}

/* Subtler grid */
.bg-grid { background-size: 80px 80px; opacity: 0.6; }

/* Premium nav */
nav {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
nav.scrolled { box-shadow: 0 1px 40px rgba(0,0,0,0.3); }

.logo img {
  border-color: var(--border-light);
  box-shadow: 0 0 12px rgba(26,58,143,0.15);
}

/* Hero: keep original tanzanite-to-gold gradient, just refine */
#hero::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse, rgba(26,58,143,0.06) 0%, rgba(34,184,94,0.02) 40%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* Hero badge stays green (live indicator) */
.hero-badge .dot {
  box-shadow: 0 0 8px rgba(34,184,94,0.5);
}

/* Hero metrics glass */
.hero-metrics {
  background: rgba(14,26,53,0.6);
  border: 1px solid rgba(26,58,143,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-metric .value.gold { text-shadow: 0 0 20px rgba(212,168,67,0.2); }
.hero-metric .value.green { text-shadow: 0 0 20px rgba(34,184,94,0.2); }
.hero-metric .value.blue { text-shadow: 0 0 20px rgba(74,122,245,0.2); }

/* Section labels: keep tanzanite blue (original) */
/* no override needed, base CSS already has tanzanite-glow */

/* Card hover: tanzanite accent, not gold */
.value-card:hover {
  border-color: rgba(43,92,214,0.2);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.4), 0 0 0 1px rgba(43,92,214,0.08);
}

/* Security card refinement */
.security-card {
  position: relative; overflow: hidden;
}
.security-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,92,214,0.12), transparent);
  opacity: 0; transition: var(--transition);
}
.security-card:hover::before { opacity: 1; }
.security-card:hover {
  border-color: rgba(43,92,214,0.15);
  box-shadow: 0 12px 40px -10px rgba(0,0,0,0.35);
}

/* Portfolio section */
.allocation-visual {
  background: linear-gradient(160deg, rgba(14,26,53,0.85), rgba(26,58,92,0.25));
  border-color: rgba(26,58,143,0.15);
}

.asset-table-header {
  background: rgba(26,58,143,0.06);
  padding: 12px 8px;
  border-radius: 6px;
  border-bottom: none;
  margin-bottom: 4px;
}

.asset-row:hover { background: rgba(26,58,143,0.04); }

/* Tokenomics card */
.token-detail-card {
  background: linear-gradient(160deg, rgba(14,26,53,0.85), rgba(26,58,92,0.2));
  border-color: rgba(26,58,143,0.12);
}

.detail-row { border-bottom-color: rgba(255,255,255,0.03); }

/* Projection cards */
.projection-card {
  position: relative; overflow: hidden;
}
.projection-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgba(26,58,143,0.03));
  pointer-events: none; border-radius: inherit;
}
.projection-card:hover {
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.4);
}

/* Featured card: gold accent is OK here, it's the highlight moment */
.projection-card.featured {
  border-color: rgba(212,168,67,0.2);
  box-shadow: 0 0 30px -10px rgba(212,168,67,0.1);
}
.projection-card.featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  z-index: 1;
}

.projection-nav { font-variant-numeric: tabular-nums; }

/* Investment example */
.investment-example {
  background: linear-gradient(160deg, rgba(14,26,53,0.85), rgba(26,58,92,0.2));
  border-color: rgba(26,58,143,0.1);
}

.invest-arrow { color: var(--tanzanite-glow); opacity: 0.5; }

/* Roadmap: restore original gradient */
.roadmap-timeline::before {
  width: 1px; opacity: 0.7;
}

/* Team card */
.team-card:hover {
  border-color: rgba(43,92,214,0.2);
  box-shadow: 0 16px 48px -12px rgba(0,0,0,0.4);
}

/* Team avatar: original tanzanite+green gradient */
.team-avatar {
  box-shadow: 0 0 0 3px rgba(43,92,214,0.15), 0 8px 24px rgba(0,0,0,0.3);
}

/* CTA box: subtle, not gold-heavy */
.cta-box {
  border-color: rgba(43,92,214,0.2);
}
.cta-box::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,92,214,0.3), transparent);
}

/* ── Button fixes ── */

/* Nav "Invest Now" button: tanzanite, NOT gold */
.btn-wallet {
  background: linear-gradient(135deg, var(--tanzanite-light), var(--tanzanite)) !important;
  color: white !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
}
.btn-wallet:hover {
  box-shadow: 0 8px 32px rgba(43,92,214,0.35) !important;
}

/* Primary CTA buttons: gold is fine but darker, crisper text */
.btn-primary {
  background: linear-gradient(135deg, #c9992e, var(--gold));
  color: #0a0a0a;
  font-weight: 700;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: auto;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 100%; }

/* Footer */
footer { border-top-color: rgba(26,58,143,0.12); }
.footer-links a:hover { color: var(--tanzanite-glow); }

/* Refined animations */
.fade-up {
  transition: opacity 0.7s cubic-bezier(0.2,0,0,1), transform 0.7s cubic-bezier(0.2,0,0,1);
}

/* Advisor badge */
.advisor-badge { border-color: rgba(43,92,214,0.15); }
.advisor-badge .a-dot { box-shadow: 0 0 8px rgba(212,168,67,0.4); }

/* Nav whitepaper link: subtle, not gold */
.nav-wp { font-weight: 600 !important; }

/* Tabular numbers everywhere */
.mono, [class*="value"], .sale-price, .projection-nav, .impact-stat .number {
  font-variant-numeric: tabular-nums;
}

/* Selection */
::selection {
  background: rgba(43,92,214,0.2);
  color: var(--text-primary);
}

/* Scrollbar: tanzanite */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(43,92,214,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(43,92,214,0.35); }

/* Impact glow: keep original colors */
.impact-stat .number.gold { text-shadow: 0 0 30px rgba(212,168,67,0.15); }
.impact-stat .number.green { text-shadow: 0 0 30px rgba(34,184,94,0.15); }

/* Impact stat bottom accent */
.impact-stat { position: relative; overflow: hidden; }
.impact-stat::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,58,143,0.12), transparent);
}

/* ============================================
   NEW VISUAL SECTIONS
   ============================================ */

/* How It Works */
.steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  max-width: 900px;
  margin: 48px auto 0;
}

.step-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
}

.step-icon-circle {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(43,92,214,0.1);
  border: 2px solid rgba(43,92,214,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-label-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--tanzanite-glow);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.step-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  color: var(--tanzanite-glow);
  font-size: 1.5rem;
  opacity: 0.4;
  text-align: center;
}

/* Fee Comparison */
.fee-compare {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}

.fee-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.fee-label {
  width: 160px;
  flex-shrink: 0;
  text-align: right;
}

.fee-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}

.fee-name-gold { color: var(--gold); font-weight: 700; }

.fee-pct {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fee-bar {
  flex: 1;
  height: 40px;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.fee-bar-gold { border-color: rgba(212,168,67,0.2); }

.fee-fill {
  height: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.fee-fill span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

.fee-fill-red { background: linear-gradient(90deg, rgba(239,68,68,0.25), rgba(239,68,68,0.15)); }
.fee-fill-red span { color: #ef4444; }
.fee-fill-amber { background: linear-gradient(90deg, rgba(245,158,11,0.25), rgba(245,158,11,0.1)); }
.fee-fill-amber span { color: #f59e0b; }
.fee-fill-gold { background: linear-gradient(90deg, rgba(212,168,67,0.35), rgba(212,168,67,0.2)); }
.fee-fill-gold span { color: var(--gold); font-weight: 700; }

.fee-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Contract Architecture Grid */
.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.contract-item {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(34,184,94,0.2);
  background: rgba(34,184,94,0.04);
  text-align: center;
}

.contract-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--green-light);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.contract-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contract-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE FOR NEW SECTIONS
   ============================================ */
@media (max-width: 768px) {
  .steps-flow {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 400px;
  }

  .step-arrow {
    transform: rotate(90deg);
    font-size: 1.2rem;
  }

  .fee-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .fee-label {
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }

  .fee-bar {
    width: 100%;
  }

  .contract-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .contract-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contract-item { padding: 16px 12px; }
  .contract-name { font-size: 0.8rem; }
}

/* ============================================
   ACCESSIBILITY FIXES (WCAG 2.2 AA)
   Audit Report Remediation — March 2026
   ============================================ */

/* Skip Navigation Link (WCAG 2.4.1) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sr-only-focusable:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 12px 24px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

/* Focus Indicators (WCAG 2.4.7) — never hide focus */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-wallet:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(212,168,67,0.25);
}

/* Color Contrast Fixes (WCAG 1.4.3 — minimum 4.5:1) */
/* --text-secondary #8a9cc5 on #050a18 = ~4.2:1, bumped to #9aadcf for 5.0:1 */
/* --text-muted #5a6d99 on #050a18 = ~2.8:1, bumped to #7b8fb8 for 4.5:1 */
:root {
  --text-secondary: #9aadcf;
  --text-muted: #7b8fb8;
}

/* Touch Target Sizing (WCAG 2.2 — min 44x44px) */
.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* iOS Tap Delay Fix */
html {
  touch-action: manipulation;
}

/* Reduced Motion Support (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-wallet:hover,
  .value-card:hover,
  .team-card:hover,
  .projection-card:hover,
  .step-card:hover {
    transform: none;
  }
}

/* Responsive Portfolio Table — Card Layout on Mobile */
@media (max-width: 640px) {
  .asset-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .asset-table-header {
    display: none;
  }

  .asset-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    gap: 8px;
  }

  .asset-name {
    flex: 1;
    min-width: 120px;
  }

  .asset-alloc {
    text-align: right;
    font-weight: 600;
  }
}

/* Heading Hierarchy Fix — ensure visual consistency */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
