:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --fg: #e7e9ee;
  --fg-dim: #9aa0ad;
  --accent: #a78bfa;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.07);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ——————————————————— Aurora backdrop ——————————————————— */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  filter: blur(80px) saturate(130%);
  opacity: 0.55;
}

.aurora span {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 22s var(--ease) infinite alternate;
}

.aurora span:nth-child(1) {
  background: radial-gradient(closest-side, #6ee7b7 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation-duration: 26s;
}
.aurora span:nth-child(2) {
  background: radial-gradient(closest-side, #a78bfa 0%, transparent 70%);
  top: 30%;
  right: -15%;
  animation-duration: 30s;
  animation-delay: -8s;
}
.aurora span:nth-child(3) {
  background: radial-gradient(closest-side, #f472b6 0%, transparent 70%);
  bottom: -20%;
  left: 20%;
  animation-duration: 34s;
  animation-delay: -14s;
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, -3vw, 0) scale(1.08); }
  100% { transform: translate3d(-3vw, 5vw, 0) scale(0.95); }
}

/* ——————————————————— Nav ——————————————————— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 64px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 13, 18, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease), background 300ms var(--ease);
}

.nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(11, 13, 18, 0.82);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: conic-gradient(from 180deg, #6ee7b7, #a78bfa, #f472b6, #6ee7b7);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 8px 24px rgba(167, 139, 250, 0.25);
  animation: spin 14s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.brand-name {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  letter-spacing: 0.015em;
}

.nav nav a {
  margin-left: 24px;
  color: var(--fg-dim);
  font-size: 0.9rem;
  transition: color 180ms var(--ease);
}

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

/* ——————————————————— Hero ——————————————————— */
.hero {
  padding: clamp(80px, 12vw, 160px) clamp(20px, 5vw, 64px) 60px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin: 0 0 28px;
  background: rgba(255, 255, 255, 0.02);
}

.hero h1 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 auto 28px;
  max-width: 16ch;
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30%);
  animation: word-in 900ms var(--ease) forwards;
}

.hero h1 .word:nth-child(1) { animation-delay: 120ms; }
.hero h1 .word:nth-child(2) { animation-delay: 220ms; }
.hero h1 .word:nth-child(3) { animation-delay: 320ms; }
.hero h1 .word:nth-child(4) {
  animation-delay: 420ms;
  background: linear-gradient(120deg, #6ee7b7, #a78bfa 50%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes word-in {
  to { opacity: 1; transform: translateY(0); }
}

.lede {
  max-width: 56ch;
  margin: 0 auto 36px;
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #a78bfa, #6ee7b7);
  color: #0b0d12;
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
  box-shadow: 0 8px 30px -8px rgba(167, 139, 250, 0.5);
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(167, 139, 250, 0.7);
}

.cta-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  box-shadow: none;
}

.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* ——————————————————— Platform cards ——————————————————— */
.platforms {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  padding: 40px clamp(20px, 5vw, 64px);
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  overflow: hidden;
  isolation: isolate;
  transition: transform 420ms var(--ease), border-color 280ms var(--ease),
    box-shadow 420ms var(--ease);
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    hsla(var(--card-hue), 85%, 70%, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
  z-index: -1;
}

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

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 40%, var(--card-border));
  box-shadow: 0 18px 40px -14px hsla(var(--card-hue), 70%, 50%, 0.35);
}

.card-index {
  font-family: "Fraunces", serif;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  text-transform: uppercase;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  color: var(--card-accent);
  transition: transform 320ms var(--ease);
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-3deg);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.card-cta {
  margin-top: auto;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--card-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 280ms var(--ease);
}

.card:hover .card-cta { gap: 12px; }

/* ——————————————————— About ——————————————————— */
.about {
  max-width: 720px;
  margin: 60px auto 80px;
  padding: 0 clamp(20px, 5vw, 64px);
  text-align: center;
}

.about h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.about p {
  color: var(--fg-dim);
  margin: 0;
  font-size: 1.02rem;
}

/* ——————————————————— Footer ——————————————————— */
footer {
  padding: 30px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.85rem;
}

footer a { color: var(--fg); }

/* ——————————————————— Reveal on scroll ——————————————————— */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ——————————————————— Reduced motion ——————————————————— */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .hero h1 .word { opacity: 1; transform: none; }
}
