/* === RESET & TOKENS === */
:root { --font: 'Outfit', sans-serif; --radius: 20px; --radius-sm: 12px; }

[data-theme="light"], :root {
  --bg: #fafafa;
  --bg2: #f0f0f5;
  --surface: rgba(255,255,255,0.7);
  --surface2: rgba(240,240,250,0.8);
  --border: rgba(0,0,0,0.06);
  --text: #111;
  --text2: #555;
  --text3: #999;
  --accent: #6C3CE0;
  --accent-light: #ede7fd;
  --cyan: #0891b2;
  --emerald: #059669;
  --rose: #e11d48;
  --amber: #d97706;
  --fuchsia: #c026d3;
  --glass-bg: rgba(255,255,255,0.55);
  --glass-border: rgba(255,255,255,0.8);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.06);
  --nav-bg: rgba(250,250,250,0.75);
  --orb1: rgba(108,60,224,0.2);
  --orb2: rgba(6,182,212,0.15);
  --orb3: rgba(225,29,72,0.12);
  --marquee-bg: var(--accent);
  --marquee-text: #fff;
}

[data-theme="dark"] {
  --bg: #0a0a12;
  --bg2: #12121e;
  --surface: rgba(22,22,40,0.7);
  --surface2: rgba(30,30,55,0.8);
  --border: rgba(255,255,255,0.06);
  --text: #f0f0f8;
  --text2: #aaa;
  --text3: #666;
  --accent: #a78bfa;
  --accent-light: #1e1640;
  --cyan: #22d3ee;
  --emerald: #34d399;
  --rose: #fb7185;
  --amber: #fbbf24;
  --fuchsia: #e879f9;
  --glass-bg: rgba(20,20,40,0.6);
  --glass-border: rgba(255,255,255,0.08);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.3);
  --nav-bg: rgba(10,10,18,0.75);
  --orb1: rgba(167,139,250,0.2);
  --orb2: rgba(34,211,238,0.12);
  --orb3: rgba(251,113,133,0.1);
  --marquee-bg: #1e1640;
  --marquee-text: var(--accent);
}

@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #0a0a12; --bg2: #12121e;
    --surface: rgba(22,22,40,0.7); --surface2: rgba(30,30,55,0.8);
    --border: rgba(255,255,255,0.06);
    --text: #f0f0f8; --text2: #aaa; --text3: #666;
    --accent: #a78bfa; --accent-light: #1e1640;
    --cyan: #22d3ee; --emerald: #34d399; --rose: #fb7185; --amber: #fbbf24; --fuchsia: #e879f9;
    --glass-bg: rgba(20,20,40,0.6); --glass-border: rgba(255,255,255,0.08);
    --card-shadow: 0 8px 32px rgba(0,0,0,0.3);
    --nav-bg: rgba(10,10,18,0.75);
    --orb1: rgba(167,139,250,0.2); --orb2: rgba(34,211,238,0.12); --orb3: rgba(251,113,133,0.1);
    --marquee-bg: #1e1640; --marquee-text: var(--accent);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
  transition: background 0.4s, color 0.4s; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
strong { color: var(--text); }

/* Film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* === NAV === */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; align-items: center; gap: 24px;
  padding: 12px 28px; border-radius: 999px;
  background: var(--nav-bg); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 90vw;
}
.nav-brand {
  font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.03em;
  white-space: nowrap;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { font-size: 12.5px; font-weight: 500; color: var(--text2); transition: 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.theme-switcher {
  display: flex; gap: 2px; margin-left: 8px;
  background: var(--surface2); border-radius: 999px; padding: 3px;
}
.theme-btn {
  background: none; border: none; cursor: pointer;
  width: 26px; height: 26px; border-radius: 50%; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s; opacity: 0.5;
}
.theme-btn:hover { opacity: 0.8; }
.theme-btn.active { background: var(--bg); opacity: 1; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav { top: 12px; padding: 10px 20px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 12px); left: 0; right: 0;
    flex-direction: column; background: var(--nav-bg); backdrop-filter: blur(24px);
    padding: 20px 24px; gap: 12px; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--card-shadow);
  }
  .nav-links.open { display: flex; }
}

/* === HERO === */
.hero {
  position: relative; min-height: auto;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 32px 0; overflow: hidden;
}
.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); animation: float 20s ease-in-out infinite;
}
.orb-1 { width: 500px; height: 500px; top: -10%; right: -5%; background: var(--orb1); }
.orb-2 { width: 400px; height: 400px; bottom: 10%; left: -10%; background: var(--orb2); animation-delay: -7s; }
.orb-3 { width: 300px; height: 300px; top: 40%; right: 30%; background: var(--orb3); animation-delay: -14s; }
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-20px) scale(1.05); }
  66% { transform: translate(-20px,30px) scale(0.95); }
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1140px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 768px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.12); color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  margin-bottom: 20px;
  animation: badge-pulse 2.5s ease-in-out infinite;
}
.hero-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981, 0 0 12px rgba(16,185,129,0.4);
  animation: dot-blink 2s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(38px, 7vw, 68px); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--cyan), var(--fuchsia));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: 16px; color: var(--text2); max-width: 480px; margin-bottom: 28px; line-height: 1.7; }
@media (max-width: 768px) { .hero-sub { margin: 0 auto 28px; } }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 768px) { .hero-cta { justify-content: center; } }
.hero-photo {
  width: 100%; max-width: 320px; border-radius: 50%;
  border: 4px solid var(--border);
  box-shadow: 0 20px 60px rgba(108,60,224,0.15);
  justify-self: center;
}

/* Scrolling marquee */
.hero-marquee {
  position: relative; z-index: 2;
  margin-top: 40px; padding: 14px 0;
  background: var(--marquee-bg); overflow: hidden;
  border-radius: var(--radius);
}
.marquee-track {
  display: flex; gap: 40px; width: max-content;
  animation: marquee 20s linear infinite;
}
.marquee-track span {
  font-size: 14px; font-weight: 700; color: var(--marquee-text);
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; font-family: var(--font);
  transition: all 0.3s; text-decoration: none;
}
.btn-glow {
  background: linear-gradient(135deg, #6C3CE0, #c026d3);
  color: white; box-shadow: 0 4px 20px rgba(108,60,224,0.35);
}
.btn-glow:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 32px rgba(108,60,224,0.4); color: white; }
.btn-glass {
  background: var(--glass-bg); color: var(--text);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* === GLASS CARD === */
.glass-card {
  background: var(--glass-bg); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* === BENTO STATS === */
.bento-stats { padding: 32px 0; }
.bento-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 700px) { .bento-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 450px) { .bento-row { grid-template-columns: repeat(2, 1fr); } }
.bento-card {
  text-align: center; padding: 28px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  backdrop-filter: blur(12px); transition: 0.35s;
}
.bento-card:hover { transform: translateY(-4px) scale(1.02); }
.bc-num { display: block; font-size: 32px; font-weight: 900; letter-spacing: -0.03em; }
.bc-label { display: block; font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }
.bc-accent .bc-num { color: var(--accent); }
.bc-cyan .bc-num { color: var(--cyan); }
.bc-rose .bc-num { color: var(--rose); }
.bc-amber .bc-num { color: var(--amber); }
.bc-emerald .bc-num { color: var(--emerald); }

/* === HEADINGS === */
section { padding: 60px 0; }
.big-heading {
  font-size: clamp(32px, 5vw, 48px); font-weight: 900;
  letter-spacing: -0.04em; margin-bottom: 36px;
}
.big-heading span { color: var(--accent); }
.section-sub { color: var(--text2); font-size: 15px; margin-top: -24px; margin-bottom: 36px; }

/* === FOOTER === */
footer {
  text-align: center; padding: 32px; font-size: 13px; color: var(--text3);
  border-top: 1px solid var(--border);
}

/* === GO TO TOP === */
.go-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #fff;
  border: none; cursor: pointer;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(108,60,224,0.4);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.go-top.visible {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.go-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 28px rgba(108,60,224,0.5);
}
