/* IA Geniuz — Design System */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Brand palette: navy #2C375F · blue #17629f · cream #E5DDCD · coral #EB5C6D */
  --bg: #1a2142;
  --bg-elev-1: #232c54;
  --bg-elev-2: #2c375f;
  --bg-elev-3: #364170;
  --fg: #E5DDCD;
  --fg-muted: rgba(229, 221, 205, 0.62);
  --fg-subtle: rgba(229, 221, 205, 0.38);
  --border: rgba(229, 221, 205, 0.08);
  --border-strong: rgba(229, 221, 205, 0.16);
  --accent: #17629f;
  --accent-hover: #2a82c4;
  --accent-glow: rgba(23, 98, 159, 0.40);
  --accent-soft: rgba(23, 98, 159, 0.12);
  --coral: #EB5C6D;
  --coral-soft: rgba(235, 92, 109, 0.14);
  --success: #22c55e;
  --warn: #fbbf24;
  --danger: #ef4444;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container: 1280px;
  --header-h: 72px;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--fg); }

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.brand img {
  width: 28px;
  height: 28px;
  display: block;
}
.brand-text {
  display: flex;
  align-items: center;
  gap: 2px;
  line-height: 1;
}
.brand-text b { color: #ffffff; font-weight: 600; }
.brand-text span { color: rgba(255,255,255,0.85); font-weight: 500; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: #ffffff; background: rgba(255,255,255,0.06); }
.nav-link.active { color: #ffffff; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-cta .btn-ghost { color: rgba(255,255,255,0.82); }
.header-cta .btn-ghost:hover { color: #ffffff; background: rgba(255,255,255,0.06); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent;
  color: var(--fg);
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.16) inset, 0 12px 32px -8px var(--accent-glow);
}
.btn-secondary {
  background: rgba(255,255,255,0.04);
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,237,247,0.22);
}
.btn-ghost {
  color: var(--fg-muted);
}
.btn-ghost:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ===== Section primitives ===== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-tight { padding: 72px 0; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-hover);
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 24px;
}
.section-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-hover);
  box-shadow: 0 0 8px var(--accent-hover);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--fg);
  text-wrap: balance;
}
.section-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0;
  text-wrap: pretty;
}
.section-head {
  margin-bottom: 64px;
  max-width: 780px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== Cards ===== */
.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s, transform .2s, background .2s;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}

/* ===== Hairline divider ===== */
.hairline {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* ===== Footer ===== */
.site-footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--fg-muted);
  transition: color .15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-subtle);
}

/* ===== Image placeholder ===== */
.img-placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, var(--bg-elev-2), var(--bg-elev-1));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  overflow: hidden;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Glow primitive ===== */
.glow-bg {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
}

/* ===== Utility ===== */
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-muted); }
.text-center { text-align: center; }
.relative { position: relative; }
.z1 { position: relative; z-index: 1; }

/* ===== Hero v2: video bg + blur shape + marquee ===== */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  overflow: visible;
  display: flex;
  flex-direction: column;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}
.hero-v2-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-v2-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: none;
  filter: saturate(1.1);
}
.hero-v2-bg-tint {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(23, 98, 159, 0.20) 0%, transparent 60%),
    linear-gradient(180deg, rgba(26,33,66,0.75) 0%, rgba(26,33,66,0.55) 40%, rgba(26,33,66,0.85) 100%);
  pointer-events: none;
}
.hero-v2-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 984px;
  max-width: 110%;
  height: 527px;
  background: #0c1029;
  opacity: 0.85;
  filter: blur(82px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-v2-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: calc(100vh - var(--header-h));
}

.hero-v2-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0 32px;
}

.hero-v2-eyebrow {
  margin-bottom: 28px;
}

.hero-v2-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 1.02;
  letter-spacing: -0.024em;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}
.hero-v2-headline .grad {
  background-image: linear-gradient(100deg, #2a82c4 0%, #E5DDCD 50%, #EB5C6D 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  background-position: 0% 50%;
  animation: heroGrad 8s ease-in-out infinite alternate;
}
@keyframes heroGrad {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.hero-v2-sub {
  margin: 20px auto 0;
  max-width: 540px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(229, 221, 205, 0.78);
  text-wrap: pretty;
}

.hero-v2-cta {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(229,221,205,0.22);
  cursor: pointer;
  transition: all .2s;
  position: relative;
  overflow: hidden;
}
.hero-v2-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(229,221,205,0.35);
  transform: translateY(-1px);
}

/* Marquee */
.hero-v2-marquee {
  padding: 24px 0 40px;
  position: relative;
  z-index: 2;
}
.marquee-row {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: center;
  padding: 0 32px;
}
.marquee-label {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(229, 221, 205, 0.55);
}
.marquee-track {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-inner {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.marquee-glass {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}

/* Header divider gradient under nav */
.hero-v2 .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  position: relative;
}
.hero-v2 .site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,221,205,0.22), transparent);
}

@media (max-width: 800px) {
  .marquee-row { grid-template-columns: 1fr; gap: 16px; }
  .marquee-label { text-align: center; }
  .hero-v2-blur { height: 380px; filter: blur(60px); }
}
.liquid-glass {
  background: rgba(255, 255, 255, 0.012);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 880px) {
  .nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}
