/* ── Shared design tokens & base styles ─────────────────────── */
:root {
  --bg:          #0C0C10;
  --surface:     #13131A;
  --surface2:    #1C1C26;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.13);
  --text:        #EEEEF2;
  --text-mid:    rgba(238,238,242,.52);
  --text-soft:   rgba(238,238,242,.28);
  --accent:      #4338CA;
  --accent-dim:  rgba(67,56,202,.12);
  --accent-glow: rgba(67,56,202,.38);
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
section { padding: 100px 0; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-soft); margin-bottom: 20px;
}
.label::before {
  content: ''; display: block; width: 20px; height: 1.5px;
  background: var(--accent); flex-shrink: 0;
}

.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.025em; color: var(--text); margin-bottom: 16px;
}
.section-sub {
  font-size: 1.0625rem; color: var(--text-mid);
  line-height: 1.72; max-width: 480px; font-weight: 400;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-family: 'DM Sans', sans-serif; font-size: .9375rem;
  font-weight: 600; text-decoration: none; cursor: pointer; border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { transform: scale(1.04) translateY(-1px); box-shadow: 0 14px 40px var(--accent-glow); }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border2); }
.btn-ghost:hover { background: var(--surface); border-color: rgba(255,255,255,.22); }

/* Nav – floating pill (light glass) */
nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 40px);
  max-width: 1060px;

  background: rgba(255,255,255,.82);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);

  border: 1px solid rgba(12,12,18,.1);
  border-radius: 100px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 8px 32px rgba(12,12,18,.1),
    0 2px 8px rgba(12,12,18,.06);

  transition: background .35s ease, box-shadow .35s ease;

  /* dark text for light bg */
  --text:      #0C0C12;
  --text-mid:  rgba(12,12,18,.55);
  --text-soft: rgba(12,12,18,.38);
}
nav.scrolled {
  background: rgba(255,255,255,.93);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 12px 40px rgba(12,12,18,.14),
    0 2px 8px rgba(12,12,18,.08);
}
nav .container { padding: 0; max-width: none; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 8px 0 28px; }
.logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  text-decoration: none; display: flex; align-items: center; gap: 7px; letter-spacing: -.02em;
}
.logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-mid); font-size: .875rem; font-weight: 450; transition: color .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Marquee strip */
.mq-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0; }
.mq-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%); }
.mq-track { display: flex; gap: 10px; width: max-content; padding: 20px 0; }
.mq-left  { animation: mq-go 34s linear infinite; }
.mq-right { animation: mq-bk 34s linear infinite; }
.mq-wrap:hover .mq-left, .mq-wrap:hover .mq-right { animation-play-state: paused; }
@keyframes mq-go { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
@keyframes mq-bk { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logo-card {
  display: flex; align-items: center; gap: 10px; padding: 12px 22px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); white-space: nowrap; flex-shrink: 0;
  transition: border-color .25s ease; cursor: default;
}
.logo-card:hover { border-color: rgba(67,56,202,.4); }
.logo-card span { font-family: 'Bricolage Grotesque', sans-serif; font-size: .85rem; font-weight: 700; color: var(--text-mid); }

/* Reveal */
.rev { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.rev.in { opacity: 1; transform: translateY(0); }

/* Page hero (subpages) */
.page-hero {
  padding: 80px 0 72px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--bg) 60%, rgba(67,56,202,.06) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -150px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(67,56,202,.15) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .breadcrumb {
  font-size: .78rem; color: var(--text-soft); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.page-hero .breadcrumb a { color: var(--text-soft); text-decoration: none; transition: color .2s; }
.page-hero .breadcrumb a:hover { color: var(--text); }
.page-hero .breadcrumb span { opacity: .4; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; list-style: none; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--text-soft); font-size: .8125rem; transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .78rem; color: var(--text-soft); }

/* Responsive shared */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  section { padding: 64px 0; }
  nav { width: calc(100% - 24px); top: 10px; }
  .nav-inner { height: 50px; padding: 0 6px 0 20px; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
}
