/* ============================================================
   FUSION MODELS — Global Stylesheet
   Dark, futuristic AI-research aesthetic
   ============================================================ */

:root {
  /* Color system */
  --bg:            #05060b;
  --bg-soft:       #080a12;
  --bg-panel:      #0a0d18;
  --surface:       rgba(255, 255, 255, 0.025);
  --surface-2:     rgba(255, 255, 255, 0.045);
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text:          #eef1f7;
  --text-soft:     #b4bccb;
  --text-muted:    #76808f;

  --accent:        #56c7ff;
  --accent-bright: #8fe0ff;
  --accent-deep:   #2b7fff;
  --accent-glow:   rgba(86, 199, 255, 0.35);

  /* Typography */
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-lg: 22px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient page background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 75% -5%, rgba(43, 127, 255, 0.16), transparent 60%),
    radial-gradient(700px 500px at 10% 5%, rgba(86, 199, 255, 0.08), transparent 55%),
    radial-gradient(1000px 800px at 50% 110%, rgba(43, 127, 255, 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

.section-pad { padding-block: clamp(72px, 11vw, 140px); }
.section-pad-sm { padding-block: clamp(56px, 8vw, 96px); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px var(--accent-glow);
}
.eyebrow.center { justify-content: center; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.9rem, 7vw, 5.3rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-soft);
  max-width: 60ch;
}
.muted { color: var(--text-muted); }
.accent-text { color: var(--accent-bright); }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, #eaf6ff, #bfe6ff);
  color: #05121f;
  box-shadow: 0 6px 28px rgba(86, 199, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn-primary:hover { box-shadow: 0 10px 38px rgba(86, 199, 255, 0.45); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 6, 11, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.site-header .wrap { max-width: 100%; }
.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}
.nav .brand { justify-self: start; }
.nav .nav-links { justify-self: center; }
.nav .nav-cta { justify-self: end; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text);
}
.brand .mark {
  width: 78px; height: 52px;
  flex: none;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color .2s ease;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -7px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 42px; height: 42px;
  color: var(--text);
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: currentColor;
  margin: 5px auto; transition: transform .3s ease, opacity .3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  width: min(90vh, 56vw, 900px);
  height: min(90vh, 56vw, 900px);
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
}
.hero-content { max-width: 660px; position: relative; z-index: 2; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .grad {
  background: linear-gradient(110deg, #ffffff 35%, #cdefff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead + .lead { margin-top: 16px; }
.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 52ch;
  border-left: 2px solid var(--border-strong);
  padding-left: 16px;
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(143,224,255,0.5), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--text-soft); font-size: 0.97rem; }

/* ---------- Team section backdrop ---------- */
.team-section { position: relative; overflow: hidden; }
.team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(43,127,255,0.14), transparent 60%),
    radial-gradient(600px 400px at 90% 120%, rgba(86,199,255,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.team-section .wrap { position: relative; z-index: 1; }
.team-grid { gap: 28px; }

/* ---------- Profile cards ---------- */
.profile-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.profile-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(440px 240px at 16% -10%, rgba(86,199,255,0.16), transparent 62%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.profile-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 50px rgba(0,0,0,0.42), 0 0 0 1px rgba(143,224,255,0.08);
}
.profile-card:hover::before { opacity: 1; }

.profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.profile-avatar {
  width: 96px; height: 96px;
  flex: none;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep) 70%, rgba(143,224,255,0.2));
  box-shadow: 0 0 28px var(--accent-glow);
}
.profile-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
}
.profile-id h3 { margin: 0 0 11px; line-height: 1.05; }
.role-chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(86,199,255,0.10);
  border: 1px solid rgba(143,224,255,0.3);
  padding: 5px 12px;
  border-radius: 100px;
}
.profile-card p { color: var(--text-soft); font-size: 0.97rem; position: relative; z-index: 1; }

.profile-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.profile-tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 11px;
  transition: border-color .25s ease, color .25s ease;
}
.profile-card:hover .profile-tags li { border-color: var(--border-strong); color: var(--text-soft); }

.card-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}

/* ---------- Logo cloud ---------- */
.logo-cloud { border-top: 1px solid var(--border); }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 34px 24px;
  align-items: center;
}
.logo-grid img {
  max-height: 32px;
  max-width: 74%;
  width: auto;
  height: auto;
  margin: 0 auto;
  opacity: 0.62;
  transition: opacity .25s ease, transform .25s ease;
}
.logo-grid img:hover { opacity: 1; transform: translateY(-2px); }

@media (max-width: 860px) { .logo-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 18px; } }
@media (max-width: 520px) { .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process / pipeline steps ---------- */
.steps { position: relative; display: grid; gap: 20px; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: start;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  position: relative;
  transition: border-color .3s ease, transform .3s ease;
}
.step:hover { border-color: var(--accent); transform: translateX(4px); }
.step-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: radial-gradient(circle at 35% 30%, rgba(86,199,255,0.25), rgba(8,12,24,0.6));
  border: 1px solid rgba(143,224,255,0.4);
  color: var(--accent-bright);
  box-shadow: 0 0 22px rgba(86,199,255,0.18);
  flex: none;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.97rem; }
.step-body :last-child { margin-bottom: 0; }

/* connector line on the left of steps */
.steps.connected::before {
  content: "";
  position: absolute;
  left: 56px; top: 50px; bottom: 50px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(86,199,255,0.4), transparent);
  z-index: 0;
}

/* ---------- Feature list (checks) ---------- */
.check-list { list-style: none; display: grid; gap: 16px; }
.check-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  color: var(--text-soft);
}
.check-list li::before {
  content: "";
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(86,199,255,0.12);
  border: 1px solid rgba(143,224,255,0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238fe0ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 3px;
}
.check-list li strong { color: var(--text); font-weight: 600; }

/* ---------- Split layout (text + panel) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split.narrow-left { grid-template-columns: 0.85fr 1fr; }

/* ---------- Stat / highlight strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--bg-panel); padding: 30px 26px; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--text);
  line-height: 1;
}
.stat .label { color: var(--text-muted); font-size: 0.9rem; margin-top: 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(700px 400px at 50% -30%, rgba(43,127,255,0.22), transparent 65%),
    linear-gradient(180deg, var(--bg-panel), var(--bg-soft));
}
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Contact ---------- */
.contact-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 56px);
}
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  transition: color .25s ease;
}
.contact-email:hover { color: var(--accent-bright); }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.contact-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 0.92rem;
  color: var(--text-soft);
  transition: border-color .2s ease, color .2s ease;
}
.contact-chip:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-block: 56px 40px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-tag { color: var(--text-muted); font-size: 0.92rem; max-width: 38ch; margin-top: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; }
.footer-nav a { color: var(--text-soft); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  color: var(--text-muted); font-size: 0.84rem;
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding-block: clamp(90px, 13vw, 150px) clamp(20px, 5vw, 50px); }
.page-hero .lead { margin-top: 22px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .split, .split.narrow-left { grid-template-columns: 1fr; }
  .hero-canvas { opacity: 0.6; right: -8%; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 18px var(--gutter) 26px;
    background: rgba(5,6,11,0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open a { padding: 12px 0; font-size: 1rem; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .steps.connected::before { display: none; }
  .hero-canvas { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
