@import url("https://fonts.googleapis.com/css2?family=Syne:wght@500;600;700;800&family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");
@import url("./tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
}
::selection { background: var(--bio-600); color: var(--foam-50); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; color: var(--foam-50); }
h1 { font-size: clamp(44px, 6.2vw, 84px); letter-spacing: -0.035em; font-weight: 600; }
h2 { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.025em; }
h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.015em; }
h4 { font-size: 18px; letter-spacing: 0; }
p { margin: 0; color: var(--foam-300); text-wrap: pretty; }

.mono { font-family: var(--f-mono); font-size: 0.86em; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bio-300);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--bio-400); box-shadow: 0 0 14px var(--bio-400);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* Layout helpers */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--abyss-800); }
.section-deep { background: var(--abyss-950); }
.section-tight { padding: 80px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .3s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--bio-400); color: var(--abyss-950);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.2), 0 10px 30px -10px rgba(34,211,238,0.55);
}
.btn-primary:hover { background: var(--bio-300); box-shadow: 0 0 0 1px rgba(34,211,238,0.35), 0 14px 40px -10px rgba(34,211,238,0.75); }
.btn-ghost { color: var(--foam-100); border-color: var(--border-strong); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--bio-500); color: var(--foam-50); }
.btn-link { color: var(--bio-300); padding: 0; }
.btn-link:hover { color: var(--bio-200); }

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card:hover { border-color: var(--border-strong); }

/* Tag / badge */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border-strong); color: var(--foam-300); background: rgba(255,255,255,0.02);
}
.badge-active { color: var(--tide-300); border-color: rgba(45,212,191,0.3); background: rgba(45,212,191,0.06); }
.badge-active::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--tide-400); box-shadow: 0 0 10px var(--tide-400); }
.badge-soon { color: var(--foam-400); border-color: rgba(205,217,227,0.18); }
.badge-soon::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--foam-500); opacity: .6; }
.badge-roadmap { color: var(--foam-500); border-color: rgba(163,181,196,0.15); }
.badge-roadmap::before { content:""; width:6px; height:6px; border-radius:999px; background: transparent; border:1.5px solid var(--foam-500); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(12px);
  background: color-mix(in srgb, var(--abyss-900) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; max-width: var(--container); margin: 0 auto;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--foam-300); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--foam-50); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle { display: inline-flex; gap: 2px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--foam-500); }
.lang-toggle span { padding: 4px 7px; border-radius: 4px; cursor: pointer; transition: color .15s, background .15s; user-select: none; }
.lang-toggle span:hover { color: var(--foam-200); }
.lang-toggle .active { color: var(--bio-300); background: var(--accent-soft); }
.lang-toggle .active:hover { color: var(--bio-300); }

/* Logo */
.logo {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 22px; color: var(--foam-50);
  display: inline-flex; align-items: center; gap: 10px;
}
.logo .mark {
  width: 22px; height: 22px; position: relative;
  color: var(--bio-400);
}
.logo-name { display: inline-block; }
.logo-name .a { color: var(--bio-400); }

/* Footer */
.site-footer { background: var(--abyss-950); border-top: 1px solid var(--border); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 40px; }
.footer-col h5 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--foam-500); margin: 0 0 14px; font-weight: 500; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--foam-400); transition: color .2s; }
.footer-col a:hover { color: var(--foam-100); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-family: var(--f-mono); font-size: 12px; color: var(--foam-500); letter-spacing: .02em;
}

/* Animations */
@keyframes fadeUp { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes scaleIn { 0% { opacity: 0; transform: scale(0.92); } 100% { opacity: 1; transform: scale(1); } }
@keyframes slideRight { 0% { opacity: 0; transform: translateX(-16px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes revealUp {
  0% { opacity: 0; transform: translateY(24px); clip-path: inset(100% 0 0 0); }
  100% { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
}
@keyframes glowPulse { 0%,100% { opacity: 0.25; } 50% { opacity: 0.55; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(8px,-6px,0); } }
@keyframes ripple {
  0% { transform: scale(0.6); opacity: 0.6; }
  80% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes dashFlow { to { stroke-dashoffset: -120; } }
@keyframes pathReveal { to { stroke-dashoffset: 0; } }

.reveal { opacity: 0; }
.reveal.in { animation: fadeUp 0.55s cubic-bezier(0.16,1,0.3,1) forwards; }
.reveal-scale { opacity: 0; }
.reveal-scale.in { animation: scaleIn 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }

[data-delay="1"].in { animation-delay: .08s; }
[data-delay="2"].in { animation-delay: .16s; }
[data-delay="3"].in { animation-delay: .24s; }
[data-delay="4"].in { animation-delay: .32s; }
[data-delay="5"].in { animation-delay: .40s; }
[data-delay="6"].in { animation-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition: none !important; }
  .reveal, .reveal-scale { opacity: 1 !important; }
}

/* Utility */
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }
.rule { height: 1px; background: var(--border); margin: 32px 0; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive */
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
}
