@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ─── Dark mode tokens (default) ─── */
:root {
  --bg: #050507;
  --bg-2: #09090e;
  --surface: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --text: #ffffff;
  --text-muted: #7a7a85;
  --text-subtle: #4a4a55;
  --purple: #9B1AC4;
  --cyan: #E0007F;
  --purple-dim: rgba(155,26,196,0.15);
  --cyan-dim: rgba(224,0,127,0.12);
  --glow-purple: 0 0 60px rgba(155,26,196,0.3);
  --glow-cyan: 0 0 60px rgba(224,0,127,0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --nav-h: 72px;
  --orb-1: rgba(155,26,196,0.12);
  --orb-2: rgba(224,0,127,0.08);
  --nav-bg: rgba(5,5,7,0.85);
  --mobile-nav-bg: rgba(5,5,7,0.97);
}

/* ─── Light mode tokens ─── */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f7;
    --bg-2: #ebebef;
    --surface: rgba(0,0,0,0.04);
    --surface-2: rgba(0,0,0,0.07);
    --border: rgba(0,0,0,0.1);
    --border-2: rgba(0,0,0,0.18);
    --text: #0a0a0f;
    --text-muted: #5a5a65;
    --text-subtle: #9a9aa5;
    --purple: #7B00A4;
    --cyan: #C0005F;
    --purple-dim: rgba(123,0,164,0.12);
    --cyan-dim: rgba(192,0,95,0.1);
    --glow-purple: 0 0 60px rgba(123,0,164,0.2);
    --glow-cyan: 0 0 60px rgba(192,0,95,0.15);
    --orb-1: rgba(123,0,164,0.07);
    --orb-2: rgba(192,0,95,0.05);
    --nav-bg: rgba(245,245,247,0.88);
    --mobile-nav-bg: rgba(245,245,247,0.98);
  }
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  /* cursor: none removed on mobile — see below */
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none !important; }
}

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; line-height: 1.1; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* ─── Custom Cursor (desktop only) ─── */
@media (pointer: fine) {
  body { cursor: none; }
}
#cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: transform 0.15s ease, background 0.2s;
  transform: translate(-50%, -50%);
}
#cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid rgba(155,26,196,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s;
}
body.cursor-hover #cursor { transform: translate(-50%,-50%) scale(2.5); background: var(--cyan); }
body.cursor-hover #cursor-ring { width: 60px; height: 60px; border-color: rgba(224,0,127,0.4); }

/* ─── Canvas Stars ─── */
#star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Noise Overlay ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

/* ─── Ambient Glows ─── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.glow-orb-1 {
  width: 45vw; height: 45vw;
  top: -15%; left: -10%;
  background: radial-gradient(circle, var(--orb-1), transparent 70%);
  animation-duration: 18s;
}
.glow-orb-2 {
  width: 55vw; height: 55vw;
  bottom: -20%; right: -15%;
  background: radial-gradient(circle, var(--orb-2), transparent 70%);
  animation-duration: 24s;
  animation-direction: alternate-reverse;
}
@keyframes orb-drift {
  0% { transform: translate(0,0) scale(1); }
  50% { transform: translate(3%,5%) scale(1.1); }
  100% { transform: translate(-4%,2%) scale(0.95); }
}

/* ─── Navigation ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}

/* ─── Logo image ─── */
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

/* Keep old text logo style for fallback */
.nav-logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(110deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 30px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: var(--surface-2); }

.nav-cta {
  padding: 10px 22px !important;
  background: linear-gradient(110deg, var(--purple), var(--cyan)) !important;
  color: #fff !important;
  font-weight: 600 !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  border-radius: 30px !important;
  transition: box-shadow 0.3s, transform 0.2s !important;
}
.nav-cta:hover { box-shadow: var(--glow-purple); transform: translateY(-2px) !important; }

/* Mobile hamburger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  /* Ensure minimum tap target */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ─── Main content offset ─── */
main { position: relative; z-index: 2; }

/* ─── Utility ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 5%; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cyan);
  border: 1px solid rgba(224,0,127,0.2);
  border-radius: 30px;
  background: rgba(224,0,127,0.05);
  margin-bottom: 24px;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.05;
}
.section-title .accent {
  background: linear-gradient(110deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  /* Ensure touch-friendly tap target */
  min-height: 44px;
}
.btn-primary {
  background: linear-gradient(110deg, var(--purple), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 24px rgba(155,26,196,0.3);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 40px rgba(155,26,196,0.45); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(155,26,196,0.3); }

/* ─── Reveal animations (JS controlled) ─── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: none; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale.visible { opacity: 1; transform: none; }

/* stagger delays */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }
.delay-6 { transition-delay: 0.6s !important; }

/* ─── Glass Card ─── */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass:hover {
  border-color: rgba(155,26,196,0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(155,26,196,0.1);
}

/* ─── Divider ─── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
  margin: 0;
}

/* ─── Page sections ─── */
.page-section { padding: 120px 0; }
.page-section-sm { padding: 80px 0; }

/* ─── Footer ─── */
footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

/* Footer logo */
.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.footer-col h5 {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 0.8rem;
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: all 0.2s;
}
.footer-socials a:hover { border-color: var(--purple); color: var(--purple); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-section { padding: 80px 0; }
  .page-section-sm { padding: 60px 0; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .page-section { padding: 60px 0; }
  .page-section-sm { padding: 48px 0; }
  /* Prevent horizontal overflow on small screens */
  .container { padding: 0 4%; }
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--mobile-nav-bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  /* Ensure it covers full viewport on mobile */
  width: 100%;
  height: 100%;
  height: 100dvh;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s;
  /* bigger tap targets */
  padding: 8px 20px;
}
.mobile-nav a:hover { color: var(--text); }
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 5%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  /* min tap target */
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Marquee ─── */
.marquee-wrap { overflow: hidden; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-track { display: flex; gap: 48px; animation: marquee 25s linear infinite; white-space: nowrap; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 16px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-subtle);
  flex-shrink: 0;
}
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Stats bar ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 80px;
}
.stat-item {
  background: var(--bg-2);
  padding: 40px 32px;
  text-align: center;
  transition: background 0.3s;
}
.stat-item:hover { background: var(--surface-2); }
.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(110deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.05em; }

@media (max-width: 640px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .stat-item { padding: 28px 20px; }
  .stat-num { font-size: 2rem; }
}

/* ─── Mobile: prevent tilt transform breaking layout ─── */
@media (pointer: coarse) {
  [data-tilt] { transform: none !important; }
}
