
:root {
  --navy: #0F2030;
  --navy-mid: #1E3A5F;
  --navy-light: #334E68;
  --emerald: #10B981;
  --mint: #6EE7B7;
  --mint-surface: #F0FDF9;
  --mint-border: #A7F3D0;
  --slate: #64748B;
  --off: #F8FAFC;
  --white: #FFFFFF;
  --amber: #F59E0B;
  /* Text-safe versions for light backgrounds */
  --green-text: #065F46;  /* emerald on white: 7.68:1 */
  --muted: #475569;       /* replaces 94A3B8 on white: 7.58:1 */
  --amber-text: #78350F;  /* amber on light: 8.45:1 */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--navy);
  overflow-x: hidden;
}

/* ── NAVBAR ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 32, 48, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(110, 231, 183, 0.12);
  padding: 0 5vw;
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo svg { width: 28px; height: 32px; }
.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  color: var(--white); line-height: 1;
}
.nav-wordmark em { color: var(--mint); font-style: italic; font-weight: 400; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 13px; font-weight: 400; color: #94A3B8;
  text-decoration: none; transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--mint); }

.nav-cta {
  background: var(--emerald);
  color: #022C22 !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: #0D9488 !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: clamp(88px, 12vw, 120px) 5vw clamp(60px, 8vw, 90px);
}
@media (max-width: 768px) {
  .hero { min-height: calc(100svh - 58px); padding-top: 80px; padding-bottom: 60px; }
  .hero-title { font-size: clamp(36px, 10vw, 58px); }
}

/* Mesh background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 30%, rgba(16,185,129,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(30,58,95,0.8) 0%, transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(15,32,48,0.4) 0%, transparent 80%);
  pointer-events: none;
}

/* Grid lines */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(110,231,183,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,231,183,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Decorative circles */
.hero-deco {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-deco-1 {
  width: 600px; height: 600px;
  right: -150px; top: -100px;
  background: radial-gradient(circle, rgba(30,58,95,0.6) 0%, transparent 70%);
  border: 0.5px solid rgba(110,231,183,0.06);
}
.hero-deco-2 {
  width: 300px; height: 300px;
  right: 100px; bottom: -80px;
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
}

.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 0.5px solid rgba(16,185,129,0.25);
  border-radius: 20px; padding: 5px 14px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.hero-eyebrow span {
  font-size: 11px; font-weight: 500; color: var(--mint);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 600; line-height: 1.06;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title em {
  font-style: italic; color: var(--mint);
  font-weight: 400;
}

.hero-desc {
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 300;
  color: #94A3B8;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: clamp(28px, 5vw, 40px);
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; justify-content: center; }
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--emerald);
  color: #022C22;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  min-height: 48px;
  padding: 12px 28px; border-radius: 10px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 0 0 rgba(16,185,129,0);
}
.btn-primary:hover {
  background: #0D9488;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16,185,129,0.25);
}
.btn-primary svg { width: 16px; height: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #CBD5E1;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 400;
  min-height: 48px;
  padding: 12px 24px; border-radius: 10px;
  text-decoration: none;
  border: 0.5px solid rgba(255,255,255,0.12);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(110,231,183,0.3); color: var(--mint); }

.hero-social-proof {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex; align-items: center; gap: 16px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.hs-avatars { display: flex; }
.hs-av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--navy);
  margin-right: -10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: #fff;
}
.hs-text { font-size: 14px; color: #94A3B8; line-height: 1.4; }
.hs-text strong { color: #CBD5E1; font-weight: 500; }

/* Hero right — floating UI card */
.hero-visual {
  position: absolute; right: 5vw; top: 50%;
  transform: translateY(-50%);
  z-index: 2; width: 440px;
  animation: fadeIn 0.8s 0.5s ease both;
}

@media (max-width: 1100px) { .hero-visual { display: none; } }

.ui-card {
  background: rgba(30,58,95,0.7);
  backdrop-filter: blur(16px);
  border: 0.5px solid rgba(110,231,183,0.15);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}
.ui-card-tb {
  background: rgba(15,32,48,0.9);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 0.5px solid rgba(110,231,183,0.08);
}
.ui-tb-logo { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: #fff; }
.ui-tb-logo em { color: var(--mint); font-style: italic; }
.ui-tb-crumb { font-size: 10px; color: #475569; margin-left: 6px; }
.ui-card-body { padding: 16px; }
.ui-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 12px; }
.ui-stat {
  background: rgba(15,32,48,0.6);
  border: 0.5px solid rgba(110,231,183,0.1);
  border-radius: 8px; padding: 10px 10px 8px;
}
.ui-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
}
.ui-stat-l { font-size: 9px; color: #475569; margin-top: 1px; }
.ui-row {
  background: rgba(15,32,48,0.6);
  border: 0.5px solid rgba(110,231,183,0.08);
  border-radius: 8px; padding: 9px 12px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.ui-row-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ui-row-name { font-size: 11px; color: #CBD5E1; flex: 1; }
.ui-row-pct { font-size: 11px; font-weight: 500; font-family: 'Cormorant Garamond', serif; }
.ui-progress { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; margin-top: 5px; }
.ui-progress-fill { height: 100%; border-radius: 2px; background: var(--emerald); }
.ui-badge {
  font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 500;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.97); }
  to   { opacity: 1; transform: translateY(-50%) scale(1); }
}

/* ── LOGOS / TRUST ── */
.trust {
  background: var(--off);
  padding: 40px 5vw;
  text-align: center;
  border-top: 0.5px solid #E2E8F0;
  border-bottom: 0.5px solid #E2E8F0;
}
.trust-l { font-size: 12px; font-weight: 500; color: #475569; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px; }
.trust-logos { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; align-items: center; }
.trust-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px; font-weight: 600; color: #4B5563;
  opacity: 0.75; letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.trust-logo:hover { opacity: 0.8; }

/* ── HOW IT WORKS ── */
.how {
  padding: clamp(60px, 10vw, 100px) 5vw;
  background: var(--white);
}
.section-eyebrow {
  font-size: 12px; font-weight: 500; color: #065F46;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600; line-height: 1.1;
  color: var(--navy); margin-bottom: 16px;
}
.section-sub {
  font-size: 17px; font-weight: 300; color: #374151;
  max-width: 560px; line-height: 1.7; margin-bottom: 64px;
}

.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px; background: #E2E8F0; border-radius: 16px; overflow: hidden;
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .step { padding: 28px 24px; }
}
.step {
  background: var(--white); padding: 40px 32px;
  position: relative;
  transition: background 0.2s;
}
.step:hover { background: var(--mint-surface); }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 60px; font-weight: 300;
  color: #F1F5F9; line-height: 1;
  position: absolute; top: 20px; right: 24px;
  transition: color 0.2s;
}
.step:hover .step-num { color: rgba(16,185,129,0.12); }
.step-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--mint-surface); border: 0.5px solid var(--mint-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.step-icon svg { width: 20px; height: 20px; color: var(--emerald); }
.step-title { font-size: 17px; font-weight: 500; color: var(--navy); margin-bottom: 10px; }
.step-desc { font-size: 15px; font-weight: 300; color: #374151; line-height: 1.7; }

/* ── FEATURES ── */
.features .section-sub { color: #94A3B8; }
.features {
  padding: clamp(60px, 10vw, 100px) 5vw;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.features::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(16,185,129,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(30,58,95,0.8) 0%, transparent 60%);
  pointer-events: none;
}

.features .section-title { color: var(--white); }
.features .section-sub { color: #64748B; }

.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.05);
  border-radius: 16px; overflow: hidden;
  position: relative; z-index: 1;
}
@media (max-width: 1024px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

.feat {
  background: rgba(15,32,48,0.95);
  padding: 36px 32px;
  transition: background 0.2s;
}
.feat:hover { background: rgba(30,58,95,0.9); }
.feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  margin-bottom: 18px; display: flex; align-items: center; justify-content: center;
}
.feat-title { font-size: 16px; font-weight: 500; color: var(--white); margin-bottom: 10px; }
.feat-desc { font-size: 15px; font-weight: 300; color: #94A3B8; line-height: 1.7; }

/* ── ARCHITECTURE ── */
.arch {
  padding: clamp(60px, 10vw, 100px) 5vw;
  background: var(--mint-surface);
}
.arch-chain {
  display: flex; align-items: center; gap: 0;
  margin-top: 56px; flex-wrap: wrap; gap: 0;
}
.arch-node {
  flex: 1; min-width: 140px;
  background: var(--white);
  border: 0.5px solid var(--mint-border);
  border-radius: 12px; padding: 24px 20px;
  text-align: center;
  transition: all 0.2s;
  position: relative;
}
.arch-node:hover {
  border-color: var(--emerald);
  box-shadow: 0 8px 24px rgba(16,185,129,0.12);
  transform: translateY(-3px);
}
.arch-node-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: #fff;
  margin: 0 auto 12px;
}
.arch-node-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--navy);
  margin-bottom: 6px;
}
.arch-node-desc { font-size: 13px; color: #475569; line-height: 1.55; }
.arch-arrow {
  font-size: 18px; color: var(--mint-border);
  padding: 0 8px; flex-shrink: 0; margin-top: -20px;
}
@media (max-width: 768px) {
  .arch-chain { flex-direction: column; gap: 12px; align-items: stretch; }
  .arch-arrow { transform: rotate(90deg); margin: 0 auto; padding: 0; }
  .arch-node { min-width: unset; }
}

/* ── CTA SECTION ── */
.cta-section .section-sub,
.cta-section .cta-sub { color: #94A3B8; }
.cta-section {
  padding: clamp(60px, 10vw, 100px) 5vw;
  background: var(--navy);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section .section-title { color: var(--white); margin: 0 auto 16px; }
.cta-sub { font-size: 17px; font-weight: 300; color: #94A3B8; max-width: 480px; margin: 0 auto 40px; line-height: 1.7; }
.cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-primary-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--emerald); color: #022C22;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px; font-weight: 600;
  min-height: 52px;
  padding: 14px 36px; border-radius: 12px;
  text-decoration: none; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(16,185,129,0.25);
}
.btn-primary-lg:hover {
  background: #0D9488; transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(16,185,129,0.3);
}
.cta-note { margin-top: 20px; font-size: 14px; color: #64748B; position: relative; z-index: 1; }

/* ── FOOTER ── */
footer {
  background: #060F18;
  padding: clamp(40px, 6vw, 56px) 5vw 28px;
  border-top: 0.5px solid rgba(255,255,255,0.05);
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
@media (max-width: 768px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--white);
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.footer-brand-name em { color: var(--mint); font-style: italic; font-weight: 400; }
.footer-brand-desc { font-size: 13px; font-weight: 300; color: #475569; line-height: 1.7; max-width: 280px; }

.footer-col-title { font-size: 11px; font-weight: 500; color: #475569; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: #475569; text-decoration: none; transition: color 0.15s; font-weight: 300; }
.footer-links a:hover { color: var(--mint); }

.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.05);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: #334E68; font-weight: 300; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #334E68; text-decoration: none; transition: color 0.15s; font-weight: 300; }
.footer-legal a:hover { color: var(--mint); }

/* ── MOBILE NAV ── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; margin: -8px;
  background: transparent; border: none;
}
.hamburger span {
  width: 22px; height: 2px; background: #94A3B8;
  border-radius: 2px; transition: all 0.25s;
  display: block;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav { padding: 0 5vw; flex-wrap: wrap; height: auto; min-height: 58px; }
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #0A1A28;
    border-bottom: 0.5px solid rgba(110,231,183,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    padding: 8px 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links a { display: block; padding: 14px 5vw; font-size: 15px; }
  .nav-links .nav-cta {
    margin: 8px 5vw; padding: 12px 20px !important;
    border-radius: 8px; text-align: center;
    display: block !important;
  }
  .hamburger { display: flex; }
}

@media (max-width: 480px) {
  .nav-wordmark { font-size: 19px; }
}
