/* Kled brand tokens extracted from reference */
:root {
  --bg: #fdfdfb;
  --bg-dark: #0e1014;
  --navy: #15254e;
  --navy-light: #1e3568;
  --muted: #505c7a;
  --brand-500: #737c95;
  --brand-300: #969daf;
  --cream: #f5f4f0;
  --border: rgba(21, 37, 78, 0.1);
  --border-strong: rgba(21, 37, 78, 0.18);
  --glow: rgba(21, 37, 78, 0.25);
  --solana: #9945ff;
  --solana-teal: #14f195;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Fragment Mono", ui-monospace, monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(14, 16, 20, 0.06);
  --shadow-lg: 0 20px 60px rgba(14, 16, 20, 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  overflow-x: hidden;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(253, 253, 251, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy);
}

.logo-svg {
  display: block;
  height: 16px;
  width: auto;
}

.logo-svg--light {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}

.network-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--solana), var(--solana-teal));
  box-shadow: 0 0 8px rgba(153, 69, 255, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.9); }
}

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-500);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy);
}

.section-lead {
  margin-top: 16px;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}

.section-head.centered .section-lead {
  margin-inline: auto;
}

.section-head.centered {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-headline {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hero-note {
  font-size: 13px;
  color: var(--brand-500);
  max-width: 360px;
}

/* Ticker */
.ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 244, 240, 0.7);
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}

.ticker-track span {
  flex-shrink: 0;
  padding-right: 48px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-500);
  white-space: nowrap;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-top: 32px;
}

.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

/* Premium DeFi interact button */
.interact-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 6px 6px 6px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #0e1014 0%, var(--navy) 40%, #1a3270 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 8px 32px rgba(21, 37, 78, 0.35),
    0 0 40px rgba(153, 69, 255, 0.12);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(153, 69, 255, 0.5), rgba(20, 241, 149, 0.2), rgba(21, 37, 78, 0.3));
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.3s;
  z-index: 0;
}

.interact-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.05) 40%, rgba(153,69,255,0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  animation: shine 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes shine {
  0%, 65%, 100% { left: -100%; }
  80% { left: 160%; }
}

.btn-icon,
.btn-label,
.btn-arrow-wrap {
  position: relative;
  z-index: 3;
}

.btn-icon {
  display: grid;
  place-items: center;
  opacity: 0.85;
}

.btn-arrow-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.25s, background 0.25s;
}

.interact-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 12px 40px rgba(21, 37, 78, 0.45),
    0 0 60px rgba(153, 69, 255, 0.25);
}

.interact-button:hover .btn-glow {
  opacity: 0.7;
}

.interact-button:hover .btn-arrow-wrap {
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.2);
}

.interact-button:active {
  transform: translateY(-1px) scale(1);
}

.interact-button--compact {
  padding: 5px 5px 5px 18px;
  font-size: 14px;
}

.interact-button--compact .btn-arrow-wrap {
  width: 32px;
  height: 32px;
}

/* Hero panel */
.hero-panel {
  position: relative;
}

.panel-card {
  position: relative;
  z-index: 2;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
}

.panel-glow {
  position: absolute;
  inset: -20%;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 50%, rgba(21, 37, 78, 0.12), transparent 70%);
  pointer-events: none;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.panel-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-500);
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #0d9f6e;
  background: rgba(13, 159, 110, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d9f6e;
  animation: pulse 2s ease-in-out infinite;
}

.panel-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.panel-metric {
  margin-bottom: 20px;
}

.metric-label {
  display: block;
  font-size: 13px;
  color: var(--brand-500);
  margin-bottom: 6px;
}

.metric-value {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.panel-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--cream);
  margin-bottom: 24px;
  overflow: hidden;
}

.panel-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy), var(--navy-light));
  animation: bar-grow 1.2s ease-out;
}

@keyframes bar-grow {
  from { width: 0 !important; }
}

.panel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.metric-sm {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 4px;
}

.metric-sm.accent {
  color: var(--navy-light);
}

/* Stats */
.stats {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(245, 244, 240, 0.6) 30%, rgba(245, 244, 240, 0.6) 70%, transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.stat-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 6px;
}

.stat-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.stat-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Distribution */
.distribution {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: rgba(245, 244, 240, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.distribution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.distribution-list {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.distribution-list li {
  padding-left: 16px;
  border-left: 2px solid var(--navy);
}

.distribution-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.distribution-list span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.donut-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.donut-ring {
  position: relative;
  width: 180px;
  margin: 0 auto 24px;
}

.donut-ring svg {
  width: 100%;
  height: auto;
  display: block;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-pct {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.donut-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-500);
}

.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.donut-legend div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.legend-swatch.locked { background: var(--navy); }
.legend-swatch.claimed { background: var(--brand-300); }
.legend-swatch.open { background: linear-gradient(135deg, var(--solana), var(--solana-teal)); }

/* Steps */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.step-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 70%);
  pointer-events: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-300);
  margin-bottom: 20px;
  display: block;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(253, 253, 251, 0.72);
}

.steps-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--navy);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* Trust band */
.trust-band {
  position: relative;
  z-index: 1;
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(245, 244, 240, 0.5);
}

.trust-inner {
  text-align: center;
}

.trust-band blockquote p {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.4;
  max-width: 640px;
  margin-inline: auto;
}

.trust-band cite {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  font-style: normal;
  color: var(--brand-500);
}

.trust-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 36px;
}

.trust-logos span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-500);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
}

.investors-row {
  margin-top: 56px;
  text-align: center;
}

.investor-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.investor-chips span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
}

/* FAQ */
.faq {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
}

.faq-item summary {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: var(--navy);
  color: var(--bg);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-copy h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--bg);
}

.cta-copy p {
  font-size: 16px;
  color: rgba(253, 253, 251, 0.72);
  max-width: 480px;
}

.cta-copy .eyebrow {
  color: var(--brand-300);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 40px;
  background: var(--bg-dark);
  color: rgba(253, 253, 251, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  color: var(--bg);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
}

.footer-socials {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.footer-socials a {
  font-size: 13px;
  color: rgba(253, 253, 251, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-socials a:hover {
  color: var(--bg);
}

.footer-links {
  display: flex;
  gap: 64px;
  justify-content: flex-end;
}

.footer-links h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(253, 253, 251, 0.45);
  margin-bottom: 12px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(253, 253, 251, 0.7);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}

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

.footer-copy {
  grid-column: 1 / -1;
  font-size: 13px;
  color: rgba(253, 253, 251, 0.35);
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .distribution-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .features-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-copy p {
    margin-inline: auto;
  }

  .nav-links {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .container {
    width: calc(100% - 32px);
  }
}
