:root {
  --bg: #05070f;
  --bg-elevated: rgba(255, 255, 255, 0.03);
  --text: #e8ecf6;
  --muted: #8b96ad;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(34, 211, 238, 0.35);
  --glow: rgba(34, 211, 238, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ── Background: grid + aurora ─────────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  top: -30vh;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 70vh;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(34, 211, 238, 0.13), transparent 60%),
    radial-gradient(ellipse at 70% 40%, rgba(167, 139, 250, 0.12), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: aurora 14s ease-in-out infinite alternate;
}

@keyframes aurora {
  from { opacity: 0.7; transform: translateX(-54%) scale(1); }
  to   { opacity: 1;   transform: translateX(-46%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .reveal { animation: none !important; opacity: 1 !important; }
}

header, main, footer { position: relative; z-index: 1; }

/* ── Nav ───────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, 0.72);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand span {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--cyan);
}

.links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 28px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.links a:hover, .links a.active { color: var(--text); }

/* ── Hero ──────────────────────────────────────────────────── */
main { flex: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; width: 100%; }

.hero { padding: 110px 0 64px; }
.hero.small { padding: 72px 0 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: rgba(34, 211, 238, 0.06);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(92deg, #e8ecf6 15%, var(--cyan) 55%, var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 24px;
  max-width: 680px;
  color: var(--muted);
  font-size: 1.13rem;
}

.lead strong { color: var(--text); font-weight: 600; }

/* ── Cards ─────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  padding: 20px 0 70px;
}

.card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px -12px var(--glow);
}

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

.card .icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 18px;
}

.card .icon svg { width: 22px; height: 22px; stroke: var(--cyan); }

.card h3 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin-bottom: 10px;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
}

.card p { color: var(--muted); font-size: 0.93rem; }

/* ── Flow strip ────────────────────────────────────────────── */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 70px;
  color: var(--muted);
  font-family: "Space Grotesk", monospace;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
}

.flow .step {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 8px 18px;
  white-space: nowrap;
}

.flow .step em { color: var(--cyan); font-style: normal; }

.flow .arrow { color: rgba(34, 211, 238, 0.6); }

/* ── About / content sections ──────────────────────────────── */
.about {
  padding: 8px 0 90px;
  max-width: 760px;
}

.about h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin: 40px 0 14px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.about h3 { margin: 26px 0 8px; font-size: 1.05rem; }
.about p, .about ul { color: var(--muted); margin-bottom: 14px; }
.about ul { padding-left: 22px; }
.about a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(34, 211, 238, 0.3); }
.about a:hover { border-bottom-color: var(--cyan); }

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 14px 22px;
  margin: 6px 0 14px;
  font-size: 1.02rem;
}

.contact-chip a { border: none; font-weight: 600; }

/* ── Reveal animation ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.24s; }
.reveal.d4 { animation-delay: 0.32s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .foot-brand {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 6px;
}
