@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:       #080612;
  --bg-card:  #110d24;
  --bg-card2: #1a1333;
  --border:   #2a1f4a;
  --accent:   #8b5cf6;
  --accent-2: #ec4899;
  --glow:     rgba(139, 92, 246, 0.25);
  --glow-2:   rgba(236, 72, 153, 0.2);
  --text:     #f0eaff;
  --muted:    #7c6fa0;
  --muted-2:  #4a3f6e;
  --grad:     linear-gradient(135deg, #8b5cf6, #ec4899);
  --font-d:   'Syne', sans-serif;
  --font-b:   'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Selection ─────────────────────────────── */
::selection { background: rgba(139,92,246,.35); color: #fff; }

/* ── Gradient text ─────────────────────────── */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 10px;
  font-family: var(--font-b); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 24px var(--glow);
}
.btn-primary:hover { box-shadow: 0 8px 40px var(--glow), 0 4px 20px var(--glow-2); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px var(--glow); }

/* ── Nav ───────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 14px 40px;
  background: rgba(8, 6, 18, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(42,31,74,.6);
  display: flex; align-items: center; gap: 36px;
  transition: padding .3s;
}
nav.scrolled { padding: 10px 40px; }
.nav-logo {
  font-family: var(--font-d); font-size: 20px; font-weight: 800;
  text-decoration: none; color: var(--text); letter-spacing: -.5px; flex-shrink: 0;
}
.nav-logo span { color: var(--accent-2); }
.nav-links {
  display: flex; gap: 28px; list-style: none; margin-left: auto;
}
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  padding: 9px 22px; border-radius: 8px;
  background: var(--grad); color: #fff;
  text-decoration: none; font-size: 13px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--glow); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); font-size: 22px; margin-left: auto; }

@media (max-width: 768px) {
  nav { padding: 14px 20px; gap: 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: 57px; left: 0; right: 0; bottom: 0;
    background: var(--bg); padding: 24px; border-top: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open li a { display: block; padding: 16px 0; font-size: 20px; border-bottom: 1px solid var(--border); color: var(--text); }
  /* Surface the CTA buttons inside the open mobile menu (were hidden before) */
  .nav-links.open ~ .nav-cta {
    display: block; position: fixed; left: 24px; right: 24px; z-index: 1000;
    text-align: center; padding: 15px; font-size: 15px;
  }
  .nav-links.open ~ .nav-cta:last-of-type { bottom: 40px; }
  .nav-links.open ~ .nav-cta:nth-last-of-type(2) { bottom: 100px; }
}

/* ── Footer ────────────────────────────────── */
footer {
  background: #050410;
  border-top: 1px solid var(--border);
  padding: 48px 40px 32px;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  font-family: var(--font-d); font-size: 18px; font-weight: 800;
  color: var(--text); text-decoration: none;
}
.footer-logo span { color: var(--accent-2); }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.6; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); font-size: 14px; text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1100px; margin: 32px auto 0;
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { color: var(--muted-2); font-size: 12px; }
.disclaimer-badge {
  background: rgba(139,92,246,.1); border: 1px solid rgba(139,92,246,.2);
  color: var(--muted); font-size: 11px; padding: 4px 12px; border-radius: 99px;
}

/* ── Section base ──────────────────────────── */
section { padding: 100px 40px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-d); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 16px;
}
.section-sub { color: var(--muted); font-size: 17px; max-width: 540px; }

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px var(--glow);
}

/* ── Page hero (non-home) ─────────────────── */
.page-hero {
  padding: 160px 40px 80px;
  text-align: center;
}
.page-hero .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--font-d); font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 20px;
}
.page-hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto; }

/* ── Glow blob ─────────────────────────────── */
.glow-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; animation: blobFloat 8s ease-in-out infinite;
}
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(.97); }
}

/* ── Particles ─────────────────────────────── */
.particle {
  position: absolute; border-radius: 50%;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  90%  { opacity: .4; }
  100% { transform: translateY(-110vh) translateX(var(--dx,0)); opacity: 0; }
}

@keyframes bubbleWobble {
  0%   { transform: scale(1, 1);         border-radius: 50%; }
  20%  { transform: scale(1.07, 0.93);   border-radius: 50% 50% 48% 52%; }
  40%  { transform: scale(1, 1);         border-radius: 50%; }
  65%  { transform: scale(0.94, 1.07);   border-radius: 52% 48% 50% 50%; }
  100% { transform: scale(1, 1);         border-radius: 50%; }
}

@media (max-width: 768px) {
  section { padding: 70px 20px; }
  .page-hero { padding: 130px 20px 60px; }
  footer { padding: 40px 20px 28px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
}

/* ── Grain overlay ─────────────────────────────────── */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none;
  opacity: .032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Masked word reveal ────────────────────────────── */
.reveal-word {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding-bottom: .12em; margin-bottom: -.12em; /* room for descenders */
}
.reveal-word-inner {
  display: inline-block;
  transform: translateY(115%);
}

/* ── Scroll progress bar ───────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  z-index: 10001;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 10px var(--glow);
}

/* ── Back to top ───────────────────────────────────── */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); cursor: pointer;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .3s, border-color .2s, box-shadow .2s;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-to-top:hover { border-color: var(--accent); box-shadow: 0 0 20px var(--glow); }

/* ── Tilt glare ────────────────────────────────────── */
.tilt-glare {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0;
  transition: opacity .3s;
}

/* ── Reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Available badge ───────────────────────────────── */
.available-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  color: #86efac;
  background: rgba(134,239,172,.07);
  border: 1px solid rgba(134,239,172,.22);
  padding: 6px 14px 6px 10px; border-radius: 99px;
  margin-bottom: 22px;
}
.available-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #86efac;
  animation: availPulse 2.2s ease-out infinite;
}
@keyframes availPulse {
  0%   { box-shadow: 0 0 0 0 rgba(134,239,172,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(134,239,172,0); }
  100% { box-shadow: 0 0 0 0 rgba(134,239,172,0); }
}

/* ── Tech marquee ──────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 13px 0;
  user-select: none;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 34s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 0 22px;
  color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap;
}
.marquee-item::after {
  content: ''; display: block;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--muted-2); flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
