:root {
  --ink: #04080F;
  --navy: #070D1A;
  --navy2: #0C1526;
  --navy3: #111D33;
  --panel: #14213D;
  --border: rgba(0,229,204,0.12);
  --border-dim: rgba(255,255,255,0.06);
  --teal: #00E5CC;
  --teal2: #00BFA5;
  --teal-glow: rgba(0,229,204,0.15);
  --teal-dim: rgba(0,229,204,0.06);
  --amber: #F59E0B;
  --red: #EF4444;
  --green: #10B981;
  --white: #F8FAFC;
  --muted: #64748B;
  --dim: #94A3B8;
  --card-bg: rgba(20,33,61,0.6);
  --glass: rgba(255,255,255,0.03);
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--teal2); border-radius: 4px; }
::selection { background: var(--teal); color: var(--navy); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 72px;
  background: rgba(4,8,15,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  transition: all 0.3s;
}
nav.scrolled { height: 60px; background: rgba(4,8,15,0.95); border-bottom-color: var(--border); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: -0.02em;
}
.nav-logo-mark {
  width: 32px; height: 32px; background: var(--teal); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.nav-logo-mark::before {
  content: ''; position: absolute;
  width: 14px; height: 14px; border: 2.5px solid var(--navy); border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.nav-logo-mark::after {
  content: ''; position: absolute;
  width: 4px; height: 4px; background: var(--navy); border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--dim);
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--teal); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn-ghost {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: var(--dim); background: none; border: none; cursor: pointer;
  padding: 8px 16px; border-radius: 8px; transition: all 0.2s; text-decoration: none;
}
.btn-ghost:hover { color: var(--white); background: var(--glass); }
.btn-primary {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  color: var(--navy); background: var(--teal); border: none; cursor: pointer;
  padding: 9px 22px; border-radius: 8px; transition: all 0.25s;
  text-decoration: none; letter-spacing: 0.01em;
}
.btn-primary:hover { background: #00F5DA; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,229,204,0.3); }
.btn-outline {
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--teal); background: transparent; border: 1.5px solid var(--teal);
  cursor: pointer; padding: 13px 28px; border-radius: 10px;
  transition: all 0.25s; text-decoration: none; letter-spacing: 0.01em;
}
.btn-outline:hover { background: var(--teal-dim); transform: translateY(-1px); }
.btn-lg { font-size: 1rem; padding: 15px 36px; border-radius: 10px; }
.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ── SECTIONS ── */
section { padding: 100px 5%; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal); margin-bottom: 16px;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--teal); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.15;
  color: var(--white); margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.0625rem; color: var(--dim); max-width: 600px;
  line-height: 1.7; font-weight: 300;
}

/* ── ABOUT HERO ── */
#about-hero {
  min-height: 60vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; position: relative;
  padding: 140px 5% 80px;
  overflow: hidden;
}
.about-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,229,204,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(0,191,165,0.04) 0%, transparent 60%),
    var(--navy);
}
.about-hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,229,204,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,204,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.about-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.about-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,204,0.08); border: 1px solid rgba(0,229,204,0.2);
  border-radius: 100px; padding: 6px 14px 6px 8px;
  font-size: 0.75rem; font-weight: 600; color: var(--teal);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px;
}
.about-hero-badge-dot {
  width: 6px; height: 6px; background: var(--teal); border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }
.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.035em;
  color: var(--white); margin-bottom: 24px;
}
.about-hero-title em { font-style: normal; color: var(--teal); }
.about-hero-sub {
  font-size: 1.25rem; color: var(--dim); line-height: 1.7;
  font-weight: 300; max-width: 600px; margin: 0 auto;
}

/* ── MISSION ── */
#mission {
  background: var(--ink);
  position: relative; overflow: hidden;
}
#mission::before {
  content: '';
  position: absolute; width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(0,229,204,0.04) 0%, transparent 70%);
  right: -200px; top: -100px; pointer-events: none;
}
.mission-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; position: relative; z-index: 1;
}
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600; line-height: 1.4; letter-spacing: -0.02em;
  color: var(--white); position: relative;
  padding-left: 32px;
}
.mission-quote::before {
  content: '';
  position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 3px; background: linear-gradient(to bottom, var(--teal), transparent);
  border-radius: 3px;
}
.mission-quote em { font-style: normal; color: var(--teal); }
.mission-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px;
}
.mission-stat {
  background: var(--navy2); border: 1px solid var(--border-dim);
  border-radius: 12px; padding: 20px;
}
.mission-stat-val {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: var(--teal); line-height: 1; margin-bottom: 6px;
}
.mission-stat-label { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.mission-right p {
  font-size: 1.0625rem; color: var(--dim); line-height: 1.75; margin-bottom: 20px;
  font-weight: 300;
}
.mission-right p strong { color: var(--white); font-weight: 500; }

/* ── STORY ── */
#story { background: var(--navy); }
.story-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.story-timeline {
  display: flex; flex-direction: column; gap: 0;
  padding-left: 28px;
  position: relative;
}
.story-timeline::before {
  content: '';
  position: absolute; left: 7px; top: 12px; bottom: 12px;
  width: 1px; background: linear-gradient(to bottom, var(--teal), rgba(0,229,204,0.1));
}
.story-item { position: relative; padding-bottom: 40px; }
.story-item:last-child { padding-bottom: 0; }
.story-dot {
  position: absolute; left: -24px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--navy2);
  border: 2px solid var(--teal);
  transition: all 0.3s;
}
.story-dot.active { background: var(--teal); box-shadow: 0 0 12px rgba(0,229,204,0.5); }
.story-year {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--teal); letter-spacing: 0.1em; margin-bottom: 6px;
}
.story-item h3 {
  font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600;
  color: var(--white); margin-bottom: 8px; letter-spacing: -0.01em;
}
.story-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }
.story-right { position: sticky; top: 120px; }
.story-callout {
  background: var(--navy2); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  position: relative; overflow: hidden;
}
.story-callout::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,204,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.story-callout-icon {
  width: 56px; height: 56px;
  background: rgba(0,229,204,0.1); border: 1px solid rgba(0,229,204,0.2);
  border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.story-callout-icon svg { width: 28px; height: 28px; }
.story-callout h3 {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 700;
  color: var(--white); margin-bottom: 14px; letter-spacing: -0.02em;
}
.story-callout p { font-size: 0.9375rem; color: var(--dim); line-height: 1.7; margin-bottom: 14px; }
.story-callout p:last-child { margin-bottom: 0; }
.story-callout p strong { color: var(--white); font-weight: 500; }

/* ── TEAM ── */
#team { background: var(--ink); }
.team-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.founders-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-bottom: 80px;
}
.founder-card {
  background: var(--navy2); border: 1px solid var(--border-dim);
  border-radius: 20px; padding: 32px 24px 28px;
  text-align: center; transition: all 0.35s;
  position: relative; overflow: hidden;
}
.founder-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.founder-card:hover {
  border-color: rgba(0,229,204,0.22);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4), 0 0 30px rgba(0,229,204,0.05);
}
.founder-card:hover::after { opacity: 1; }
.founder-photo-wrap {
  width: 120px; height: 120px;
  border-radius: 50%; margin: 0 auto 20px;
  position: relative;
}
.founder-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--panel);
  border: 2.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.founder-initials {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: var(--teal); letter-spacing: -0.02em;
  position: relative; z-index: 1;
}
.founder-photo-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,229,204,0.08) 0%, transparent 70%);
}
.founder-photo-ring {
  position: absolute; inset: -3px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0deg, transparent 120deg, transparent 360deg);
  animation: ring-spin 8s linear infinite;
  opacity: 0.4;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
.founder-photo-ring-inner {
  position: absolute; inset: 2px;
  background: var(--ink);
  border-radius: 50%;
}
.founder-photo-placeholder {
  position: absolute; bottom: -2px; right: 0; left: 0;
  text-align: center;
  font-size: 0.45rem;
  color: var(--muted);
  font-style: italic;
  opacity: 0.6;
}
.founder-role-badge {
  position: absolute; bottom: 0; right: 0;
  background: var(--teal); color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.55rem; font-weight: 700;
  padding: 3px 8px; border-radius: 100px;
  letter-spacing: 0.06em;
  border: 2px solid var(--ink);
}
.founder-name {
  font-family: var(--font-display); font-size: 1.1875rem; font-weight: 700;
  color: var(--white); margin-bottom: 4px; letter-spacing: -0.015em;
}
.founder-title {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--teal); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 14px;
}
.founder-bio { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.founder-img-label {
  display: block; font-size: 0.6rem; color: var(--muted);
  margin-top: 10px; opacity: 0.45; font-style: italic;
}
.team-section-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  color: var(--white); margin-bottom: 32px; letter-spacing: -0.02em;
  text-align: center;
}

/* ── VALUES ── */
#values { background: var(--navy); }
.values-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--navy2); border: 1px solid var(--border-dim);
  border-radius: 16px; padding: 36px; transition: all 0.3s;
  display: flex; gap: 24px; align-items: flex-start;
}
.value-card:hover { border-color: rgba(0,229,204,0.2); transform: translateY(-3px); }
.value-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(0,229,204,0.08); border: 1px solid rgba(0,229,204,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.value-icon svg { width: 24px; height: 24px; }
.value-num {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--teal); letter-spacing: 0.1em; margin-bottom: 8px; opacity: 0.7;
}
.value-card h3 {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 600;
  color: var(--white); margin-bottom: 10px; letter-spacing: -0.015em;
}
.value-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── MARKETS ── */
#markets { background: var(--ink); }
.markets-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.markets-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.market-card {
  background: var(--navy2); border: 1px solid var(--border-dim);
  border-radius: 20px; padding: 40px 32px; text-align: center;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.market-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,229,204,0.03) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.market-card:hover {
  border-color: rgba(0,229,204,0.2);
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(0,0,0,0.4);
}
.market-card:hover::before { opacity: 1; }
.market-flag { font-size: 3rem; margin-bottom: 16px; line-height: 1; }
.market-name {
  font-family: var(--font-display); font-size: 1.375rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px; letter-spacing: -0.02em;
}
.market-compliance {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--teal); letter-spacing: 0.08em; margin-bottom: 16px;
  text-transform: uppercase;
}
.market-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.market-institutions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.market-inst-tag {
  font-size: 0.65rem; padding: 3px 10px; border-radius: 100px;
  background: var(--navy3); border: 1px solid var(--border-dim);
  color: var(--dim);
}

/* ── CTA ── */
#about-cta {
  background: var(--navy); text-align: center;
  position: relative; overflow: hidden;
}
#about-cta::before {
  content: '';
  position: absolute; width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(0,229,204,0.07) 0%, transparent 65%);
  left: 50%; top: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.about-cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--ink); border-top: 1px solid var(--border-dim);
  padding: 60px 5% 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin-top: 16px; max-width: 260px; }
.footer-col-title { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 600; color: var(--white); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--border-dim);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-legal { font-size: 0.78rem; color: var(--muted); }
.footer-legal a { color: var(--muted); text-decoration: none; }
.footer-legal a:hover { color: var(--teal); }

/* ── REVEALS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .mission-inner { grid-template-columns: 1fr; gap: 48px; }
  .story-inner { grid-template-columns: 1fr; }
  .story-right { position: static; }
  .founders-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  section { padding: 72px 5%; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .values-grid { grid-template-columns: 1fr; }
  .markets-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .founders-grid { grid-template-columns: 1fr 1fr; }
  .mission-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .founders-grid { grid-template-columns: 1fr; }
}

/* ── THEME TOGGLE ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--navy2);
  border: 1px solid var(--border-dim);
  cursor: pointer;
  color: var(--dim);
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border);
  color: var(--white);
  background: var(--navy3);
}
.theme-toggle svg { width: 15px; height: 15px; pointer-events: none; }
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }
[data-theme="light"] .theme-icon-sun { display: block; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --ink: #EEF2F7;
  --navy: #FFFFFF;
  --navy2: #F1F5F9;
  --navy3: #E2EAF4;
  --panel: #CBD5E1;
  --border: rgba(0,137,123,0.22);
  --border-dim: rgba(0,0,0,0.07);
  --teal: #00897B;
  --teal2: #00695C;
  --teal-glow: rgba(0,137,123,0.12);
  --teal-dim: rgba(0,137,123,0.07);
  --white: #0F172A;
  --muted: #64748B;
  --dim: #475569;
  --card-bg: rgba(241,245,249,0.9);
  --glass: rgba(0,0,0,0.04);
}
[data-theme="light"] body { background: var(--navy); }
[data-theme="light"] nav {
  background: rgba(255,255,255,0.85);
  border-bottom-color: rgba(0,0,0,0.07);
}
[data-theme="light"] nav.scrolled {
  background: rgba(255,255,255,0.97);
  border-bottom-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .story-callout {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
[data-theme="light"] .founder-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
