:root {
  --ink: #0b1220;
  --ink-soft: #5b6478;
  --line: #e7e9f1;
  --paper: #ffffff;
  --paper-alt: #f5f6fb;
  --accent: #2f5fff;
  --accent-2: #7c3aed;
  --accent-3: #06b6d4;
  --accent-ink: #1a3fc4;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1160px;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin: 0 0 14px;
}

h1, h2, h3 {
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.015em;
}

.text-gradient {
  background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px -12px rgba(11, 18, 32, 0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.brand-mark {
  font-family: var(--mono);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 9px;
  border-radius: 8px;
  box-shadow: 0 6px 14px -6px rgba(47, 95, 255, 0.55);
  display: inline-block;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-mark.small { display: inline-block; margin-bottom: 12px; }
.brand-text em { color: var(--accent); font-style: normal; }
.nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav a { position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 0;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.blob-1 {
  width: 480px; height: 480px;
  top: -220px; right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
  animation: float-a 14s ease-in-out infinite;
}
.blob-2 {
  width: 380px; height: 380px;
  top: 40px; left: -160px;
  background: radial-gradient(circle at 60% 40%, var(--accent-3), transparent 70%);
  opacity: 0.4;
  animation: float-b 18s ease-in-out infinite;
}
.blob-3 {
  width: 320px; height: 320px;
  top: 220px; right: 10%;
  background: radial-gradient(circle at 50% 50%, var(--accent-2), transparent 70%);
  opacity: 0.35;
  animation: float-c 16s ease-in-out infinite;
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.08); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -20px) scale(1.1); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-25px, -35px) scale(0.92); }
}
@media (prefers-reduced-motion: reduce) {
  .blob-1, .blob-2, .blob-3 { animation: none; }
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  z-index: 0;
  pointer-events: none;
}
.dots-alt { opacity: 0.6; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
  background: #eef1ff;
  border: 1px solid #d8ddff;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  animation: pop-in 0.6s ease both;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  animation: pulse-dot 2s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 58px);
  font-weight: 800;
  margin-bottom: 22px;
  animation: fade-up 0.7s ease 0.05s both;
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 34px;
  animation: fade-up 0.7s ease 0.15s both;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 64px; animation: fade-up 0.7s ease 0.25s both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.scroll-cue {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 36px 0 90px;
}
.scroll-cue span {
  width: 22px;
  height: 36px;
  border: 2px solid var(--line);
  border-radius: 999px;
  position: relative;
  display: block;
}
.scroll-cue span::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--accent);
  animation: scroll-dot 1.6s ease infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Marquee */
.marquee {
  background: var(--ink);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}
.marquee-track span {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e95b4;
  white-space: nowrap;
}
.marquee-track span::after { content: "✦"; margin-left: 48px; color: var(--accent-3); }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(47, 95, 255, 0.55);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(47, 95, 255, 0.65); }
.btn-arrow { transition: transform 0.15s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: -56px;
  transform: translateY(40px);
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 20px 40px -24px rgba(11, 18, 32, 0.18);
  transition: opacity 0.6s ease, transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px -22px rgba(47, 95, 255, 0.35);
  border-color: #d8ddff;
}
.stat-icon {
  display: block;
  color: var(--accent);
  font-size: 12px;
  margin-bottom: 14px;
}
.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 220px;
}

/* Sections */
.section { position: relative; padding: 148px 0 90px; }
.section#area { padding-top: 148px; }
.section-alt { background: var(--paper-alt); overflow: hidden; }
.section-violet {
  background: linear-gradient(180deg, #f6f5ff 0%, var(--paper-alt) 100%);
}
.section-head { max-width: 580px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
}
.section-sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 12px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.section-grid .section-head { margin-bottom: 0; }
.section-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.section-body strong { color: var(--ink); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: opacity 0.6s ease, transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px -24px rgba(11, 18, 32, 0.2);
  border-color: transparent;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 20px;
  transition: transform 0.25s ease;
}
.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* Portals */
.portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portal {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: opacity 0.6s ease, transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.portal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.portal:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px -24px rgba(11, 18, 32, 0.22);
  border-color: transparent;
}
.portal:hover::before { transform: scaleX(1); }
.portal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.portal:hover .portal-badge { transform: scale(1.12) rotate(-6deg); }
.portal-name { font-size: 18px; font-weight: 700; }
.portal-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.portal-arrow {
  position: absolute;
  top: 26px;
  right: 22px;
  color: var(--ink-soft);
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.portal:hover .portal-arrow { color: var(--c); transform: translate(3px, -3px); }

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 18px;
  transition: opacity 0.6s ease, transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 24px 40px -24px rgba(11, 18, 32, 0.2); }
.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c, var(--accent)), color-mix(in srgb, var(--c, var(--accent)) 60%, var(--accent-2)));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px -10px rgba(47, 95, 255, 0.5);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.team-card:hover .avatar { transform: scale(1.08) rotate(-4deg); }
.avatar.is-empty {
  background: var(--paper);
  border: 2px dashed var(--line);
  color: var(--ink-soft);
  box-shadow: none;
  font-size: 22px;
}
.team-name { font-weight: 700; font-size: 15px; }
.team-role { font-size: 13px; color: var(--ink-soft); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #c7cbe0;
  padding: 56px 0 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
.footer-inner p { color: #8e95b4; font-size: 14px; margin: 6px 0 0; }
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #c7cbe0;
}
.footer-nav a:hover { color: var(--accent-3); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  font-size: 12px;
  color: #6b7191;
}

/* Responsive */
@media (max-width: 860px) {
  .section-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .portals { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { margin-bottom: -40px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .hero-stats { grid-template-columns: 1fr; margin-bottom: -24px; }
  .cards, .portals { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .section { padding-top: 110px; }
}
