/* ═══════════════════════════════════════════════════════════
   ALEX NALIN — UI/UX Showcase Master Stylesheet
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a24;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);
  --text: #f1f1f5;
  --text-muted: rgba(241,241,245,0.5);
  --text-dim: rgba(241,241,245,0.3);
  --primary: #6366f1;
  --primary-light: #818cf8;
  --pink: #ec4899;
  --cyan: #38bdf8;
  --green: #4ade80;
  --amber: #fbbf24;
  --gradient: linear-gradient(135deg, #6366f1, #ec4899);
  --gradient2: linear-gradient(135deg, #0ea5e9, #38bdf8);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --neu-bg: #e8e8ef;
  --neu-shadow-light: #ffffff;
  --neu-shadow-dark: #c8c8d0;
  --neu-text: #3a3a4a;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f0f0f5;
  --bg2: #e8e8ef;
  --bg3: #ffffff;
  --surface: rgba(0,0,0,0.04);
  --border: rgba(0,0,0,0.08);
  --border-bright: rgba(0,0,0,0.15);
  --text: #111118;
  --text-muted: rgba(17,17,24,0.55);
  --text-dim: rgba(17,17,24,0.35);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; }
button { cursor: none; font-family: inherit; }
img { max-width: 100%; }

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

/* ── Custom Cursor ── */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%, -50%);
  transition: background 0.2s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--primary-light);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--transition), height 0.3s var(--transition), border-color 0.3s, opacity 0.3s;
  opacity: 0.7;
}
.cursor-ring.hovering { width: 48px; height: 48px; opacity: 1; border-color: var(--pink); }
.cursor-ring.clicking { width: 20px; height: 20px; background: rgba(99,102,241,0.15); }

/* ── Navigation ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.25rem 2.5rem;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(10,10,15,0.95);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; margin-right: auto; }
.logo-mark { font-size: 1.4rem; color: var(--primary-light); animation: spin-slow 8s linear infinite; display: inline-block; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.logo-accent { color: var(--primary-light); }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: background 0.2s, transform 0.2s;
}
.theme-toggle:hover { background: var(--border); transform: scale(1.05); }

/* ── Sections ── */
.section {
  position: relative;
  padding: 8rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 5rem; }
.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Reveal Animations ── */
.reveal-up, .reveal-fade, .reveal-scale,
.reveal-up-delay, .reveal-fade-delay, .reveal-scale-delay,
.reveal-up-delay2, .reveal-fade-delay2, .reveal-scale-delay2 {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.reveal-scale { transform: scale(0.95) translateY(20px); }
.reveal-scale-delay { transform: scale(0.95) translateY(20px); transition-delay: 0.1s; }
.reveal-scale-delay2 { transform: scale(0.95) translateY(20px); transition-delay: 0.2s; }
.reveal-up-delay { transition-delay: 0.1s; }
.reveal-up-delay2 { transition-delay: 0.2s; }
.reveal-fade-delay { transition-delay: 0.2s; }
.reveal-fade-delay2 { transition-delay: 0.4s; }
.in-view { opacity: 1 !important; transform: none !important; }

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 8rem 2rem 4rem;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; opacity: 0.6;
}
.hero-gradient-mesh {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(236,72,153,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(14,165,233,0.1) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.5rem 1.25rem; border-radius: 100px;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3);
  font-size: 0.85rem; font-weight: 500; color: var(--primary-light);
  margin-bottom: 2rem;
  animation: float 4s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.4);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%{box-shadow:0 0 0 0 rgba(74,222,128,0.4)}
  70%{box-shadow:0 0 0 8px rgba(74,222,128,0)}
  100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 800; line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.title-line { display: block; }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted); line-height: 1.8;
  margin-bottom: 3rem;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 4rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 2rem; border-radius: 12px;
  background: var(--gradient); border: none;
  color: white; font-size: 0.95rem; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(99,102,241,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(99,102,241,0.6); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 2rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border-bright);
  color: var(--text); font-size: 0.95rem; font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover { background: var(--border); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 2rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }
.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; z-index: 2; color: var(--text-dim);
  font-size: 0.8rem; letter-spacing: 0.08em;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--primary-light));
  animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce { 0%,100%{opacity:0.3;transform:scaleY(0.8)} 50%{opacity:1;transform:scaleY(1)} }

/* Floating Pills */
.floating-pills { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pill {
  position: absolute;
  padding: 0.4rem 1rem; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem; font-weight: 500; color: var(--text-muted);
  backdrop-filter: blur(10px);
  animation: float-random 6s ease-in-out infinite;
}
.pill-1 { top: 15%; left: 8%; animation-delay: 0s; }
.pill-2 { top: 25%; right: 6%; animation-delay: 1s; }
.pill-3 { top: 60%; left: 5%; animation-delay: 2s; }
.pill-4 { top: 70%; right: 8%; animation-delay: 0.5s; }
.pill-5 { bottom: 20%; left: 12%; animation-delay: 1.5s; }
.pill-6 { bottom: 25%; right: 12%; animation-delay: 2.5s; }
@keyframes float-random {
  0%,100%{transform:translate(0,0) rotate(0deg)}
  33%{transform:translate(4px,-8px) rotate(1deg)}
  66%{transform:translate(-4px,4px) rotate(-1deg)}
}

/* ═══════════════════════════ MARQUEE ═══════════════════════════ */
.marquee-band {
  width: 100%; overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  background: var(--bg2);
}
.marquee-track {
  display: flex; align-items: center; gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-muted);
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-dot { color: var(--primary-light); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ═══════════════════════════ GLASSMORPHISM ═══════════════════════════ */
.glass-section { position: relative; overflow: hidden; }
.section-bg-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: orb-float 8s ease-in-out infinite;
}
.orb-blue { width: 500px; height: 500px; background: rgba(99,102,241,0.2); top: -100px; left: -100px; }
.orb-purple { width: 400px; height: 400px; background: rgba(168,85,247,0.15); top: 50%; right: -80px; animation-delay: -3s; }
.orb-pink { width: 350px; height: 350px; background: rgba(236,72,153,0.12); bottom: -50px; left: 30%; animation-delay: -6s; }
@keyframes orb-float { 0%,100%{transform:translate(0,0)} 33%{transform:translate(30px,-30px)} 66%{transform:translate(-20px,20px)} }

.glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; position: relative; z-index: 1;
}
.glass-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}
.glass-card:hover { transform: translateY(-4px); box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.card-glow {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: rgba(99,102,241,0.25); filter: blur(60px);
  top: -50px; right: -50px; pointer-events: none;
  transition: opacity 0.3s;
}
.card-glow--green { background: rgba(74,222,128,0.2); }
.card-glow--amber { background: rgba(251,191,36,0.2); }
.card-glow--pink { background: rgba(236,72,153,0.2); }

/* Profile card */
.profile-avatar { position: relative; width: 80px; height: 80px; margin: 0 auto 1.25rem; }
.avatar-ring {
  position: absolute; inset: -4px; border-radius: 50%;
  background: conic-gradient(from 0deg, #6366f1, #ec4899, #38bdf8, #6366f1);
  animation: spin-slow 3s linear infinite;
}
.avatar-img {
  position: absolute; inset: 3px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(236,72,153,0.3));
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.avatar-status {
  position: absolute; bottom: 3px; right: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--green); border: 2px solid var(--bg); z-index: 2;
}
.card-name { text-align: center; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.25rem; }
.card-role { text-align: center; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1rem; }
.card-tags { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tag {
  padding: 0.3rem 0.75rem; border-radius: 100px;
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3);
  font-size: 0.78rem; font-weight: 500; color: var(--primary-light);
}
.card-stats { display: flex; justify-content: space-around; margin-bottom: 1.5rem; }
.mini-stat { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.mini-stat strong { font-size: 1.1rem; font-weight: 700; }
.mini-stat span { font-size: 0.75rem; color: var(--text-muted); }
.glass-btn {
  width: 100%; padding: 0.75rem; border-radius: 10px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(236,72,153,0.2));
  border: 1px solid rgba(99,102,241,0.4);
  color: white; font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s, transform 0.15s;
}
.glass-btn:hover { background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(236,72,153,0.4)); transform: scale(1.02); }

/* Analytics card */
.analytics-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.analytics-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }
.analytics-badge { padding: 0.3rem 0.7rem; border-radius: 100px; font-size: 0.78rem; font-weight: 700; }
.analytics-badge--up { background: rgba(74,222,128,0.15); color: var(--green); border: 1px solid rgba(74,222,128,0.3); }
.analytics-value { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; }
.bar {
  flex: 1; height: var(--h); border-radius: 4px 4px 0 0;
  background: rgba(99,102,241,0.3);
  transition: height 0.4s var(--transition);
}
.bar--active { background: linear-gradient(to top, #6366f1, #8b5cf6); }
.bar:hover { background: rgba(99,102,241,0.6); }
.analytics-footer { margin-top: 1rem; font-size: 0.875rem; color: var(--text-muted); }

/* Notif card */
.notif-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.notif-icon { font-size: 1.2rem; }
.notif-title { font-weight: 700; font-size: 1rem; flex: 1; }
.notif-count { padding: 0.2rem 0.6rem; border-radius: 100px; background: var(--primary); color: white; font-size: 0.78rem; font-weight: 700; }
.notif-list { display: flex; flex-direction: column; gap: 1rem; }
.notif-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.75rem; border-radius: 10px; transition: background 0.2s; }
.notif-item:hover { background: rgba(255,255,255,0.04); }
.notif-item--new { background: rgba(99,102,241,0.06); }
.notif-avatar { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: white; }
.notif-body { flex: 1; font-size: 0.875rem; line-height: 1.5; }
.notif-time { display: block; font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Music card */
.music-art { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.25rem; }
.album-art { position: relative; width: 70px; height: 70px; flex-shrink: 0; }
.album-rings { position: absolute; inset: 0; }
.ring {
  position: absolute; border-radius: 50%; border: 2px solid;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: spin-slow var(--duration, 4s) linear infinite;
}
.r1 { width: 100%; height: 100%; border-color: rgba(236,72,153,0.6); --duration: 4s; }
.r2 { width: 70%; height: 70%; border-color: rgba(99,102,241,0.5); --duration: 3s; animation-direction: reverse; }
.r3 { width: 40%; height: 40%; border-color: rgba(56,189,248,0.5); --duration: 5s; }
.album-center { position: absolute; inset: 30%; border-radius: 50%; background: var(--bg2); }
.music-eq { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.eq-bar {
  width: 4px; background: linear-gradient(to top, #6366f1, #ec4899);
  border-radius: 2px;
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1){height:40%;animation-delay:0s}
.eq-bar:nth-child(2){height:80%;animation-delay:0.15s}
.eq-bar:nth-child(3){height:60%;animation-delay:0.3s}
.eq-bar:nth-child(4){height:90%;animation-delay:0.1s}
.eq-bar:nth-child(5){height:50%;animation-delay:0.25s}
@keyframes eq-bounce { to{height:100%} }
.music-info strong { display: block; font-weight: 700; }
.music-info span { font-size: 0.85rem; color: var(--text-muted); }
.music-controls { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; }
.ctrl-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.ctrl-btn:hover { background: var(--primary); transform: scale(1.08); }
.ctrl-btn--play { background: linear-gradient(135deg,#6366f1,#ec4899); width:50px; height:50px; border:none; font-size:1.1rem; }
.music-progress { margin-top: 0.75rem; }
.progress-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; margin-bottom: 0.5rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg,#6366f1,#ec4899); border-radius: 4px; }
.progress-times { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }

/* ═══════════════════════════ BENTO GRID ═══════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.25rem;
}
.bento-cell {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; overflow: hidden;
  transition: transform 0.3s var(--transition), box-shadow 0.3s, border-color 0.3s;
  position: relative;
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-bright); }
.bento-cell--hero { grid-column: span 7; grid-row: span 2; background: var(--bg3); min-height: 320px; }
.bento-cell--stat { grid-column: span 5; }
.bento-cell--image { grid-column: span 5; min-height: 160px; }
.bento-cell--dark { grid-column: span 7; background: #0d1117; }
.bento-cell--palette { grid-column: span 4; }
.bento-cell--quote { grid-column: span 4; background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.1)); }
.bento-cell--progress { grid-column: span 4; text-align: center; }
.bento-cell--tags { grid-column: span 12; }
.bento-eyebrow { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); display: block; margin-bottom: 0.75rem; }
.bento-gradient-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(236,72,153,0.1));
  z-index: 0;
}
.bento-content { position: relative; z-index: 1; }
.bento-content h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: 0.75rem; }
.bento-content p { color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.bento-btn {
  padding: 0.65rem 1.5rem; border-radius: 10px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: white; font-weight: 600; font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
}
.bento-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-1px); }
.bento-img-float { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); }
.float-circle {
  position: absolute; border-radius: 50%;
  animation: float-random 5s ease-in-out infinite;
}
.c1 { width: 180px; height: 180px; background: radial-gradient(circle, rgba(99,102,241,0.4), transparent); right: 0; top: -90px; }
.c2 { width: 120px; height: 120px; background: radial-gradient(circle, rgba(236,72,153,0.3), transparent); right: 40px; top: 20px; animation-delay: -2s; }
.c3 { width: 80px; height: 80px; background: radial-gradient(circle, rgba(56,189,248,0.3), transparent); right: 100px; top: -20px; animation-delay: -4s; }
.big-number { font-family: var(--font-display); font-size: 3rem; font-weight: 800; display: block; margin-bottom: 0.5rem; }
.mini-sparkline { height: 40px; margin-top: 1rem; }
.mini-sparkline svg { width: 100%; height: 100%; }
.bento-cell--image { padding: 0; position: relative; }
.bento-image-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e1b4b, #312e81, #4338ca);
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
}
@keyframes gradient-shift {
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
.bento-image-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  font-weight: 600; font-size: 0.875rem; color: rgba(255,255,255,0.9);
}
.code-snippet { font-family: var(--font-mono); }
.code-header { display: flex; align-items: center; gap: 6px; margin-bottom: 1rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #fec12d; } .dot.green { background: #27c840; }
.code-filename { margin-left: auto; font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.code-snippet pre { font-size: 0.82rem; line-height: 1.8; }
.kw { color: #c084fc; } .fn { color: #60a5fa; } .param { color: #e2e8f0; }
.tag { color: #f87171; } .attr { color: #fb923c; } .str { color: #4ade80; }
.palette-swatches { display: flex; gap: 0.5rem; margin: 1rem 0; }
.swatch { width: 40px; height: 40px; border-radius: 10px; cursor: pointer; transition: transform 0.2s, border-radius 0.2s; }
.swatch:hover { transform: scale(1.15) translateY(-4px); border-radius: 12px; }
.bento-cell--palette p { color: var(--text-muted); font-size: 0.875rem; }
.quote-mark { font-family: Georgia, serif; font-size: 6rem; line-height: 0.5; color: var(--primary); opacity: 0.4; margin-bottom: 0.5rem; }
blockquote { font-family: var(--font-heading); font-size: 1rem; line-height: 1.6; font-style: italic; }
cite { display: block; margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); font-style: normal; }
.radial-progress { position: relative; width: 100px; height: 100px; margin: 1.25rem auto; }
.radial-progress svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.rp-bg { fill: none; stroke: var(--surface); stroke-width: 8; }
.rp-fill { fill: none; stroke: url(#rp-gradient); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 264; transition: stroke-dashoffset 1s var(--transition); }
.rp-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.bento-tag {
  padding: 0.4rem 0.9rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.bento-tag:hover { background: rgba(99,102,241,0.15); color: var(--primary-light); border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }

/* ═══════════════════════════ BRUTALISM ═══════════════════════════ */
.brutal-section { background: white; color: black; max-width: 100%; padding: 8rem 5%; }
[data-theme="dark"] .brutal-section { background: #f5f5f0; color: black; }
.brutal-bg-text {
  position: absolute; font-family: var(--font-display); font-size: 20vw;
  font-weight: 900; color: rgba(0,0,0,0.04); top: 50%; left: 50%;
  transform: translate(-50%,-50%); white-space: nowrap;
  pointer-events: none; user-select: none; letter-spacing: -0.05em;
}
.brutal-tag { background: black; color: white; border: none; }
.brutal-title { font-family: 'Syne', sans-serif; font-size: clamp(4rem, 10vw, 8rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.05em; }
.brutal-accent { color: #FFE600; -webkit-text-stroke: 3px black; }
.brutal-desc { color: rgba(0,0,0,0.6); }
.brutal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0;
  margin-top: 3rem;
}
.brutal-card {
  padding: 2.5rem;
  border: 3px solid black;
  margin: -1.5px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.brutal-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 black; z-index: 1; }
.brutal-card--main { background: #FFE600; }
.brutal-card--yellow { background: #FFE600; }
.brutal-card--dark { background: black; color: white; }
.brutal-card--dark:hover { box-shadow: 8px 8px 0 #FFE600; }
.brutal-card--wide { grid-column: 1 / -1; background: white; }
.brutal-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 1rem; }
.brutal-card-title { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 1rem; }
.brutal-stripe { width: 60px; height: 6px; background: black; margin-bottom: 1rem; }
.brutal-btn {
  display: inline-block; margin-top: 1.5rem;
  padding: 0.75rem 1.75rem; background: black; color: #FFE600;
  font-weight: 900; font-size: 0.875rem; letter-spacing: 0.08em;
  border: 3px solid black; text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.brutal-btn:hover { background: #FFE600; color: black; }
.brutal-num { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; opacity: 0.4; display: block; margin-bottom: 0.5rem; }
.brutal-card--dark .brutal-num { opacity: 0.3; }
.brutal-card h3 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 900; line-height: 0.9; margin-bottom: 0.75rem; }
.brutal-ticker { overflow: hidden; white-space: nowrap; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding-bottom: 1.5rem; border-bottom: 3px solid black; margin-bottom: 1.5rem; }
.brutal-ticker span { display: inline-block; animation: marquee 20s linear infinite; }
.brutal-stats-row { display: flex; gap: 3rem; }
.brutal-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.brutal-big { font-family: 'Syne', sans-serif; font-size: 3rem; font-weight: 900; line-height: 1; }
.brutal-stat span:last-child { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ═══════════════════════════ VIDEO SECTION ═══════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 1.5rem;
}
.video-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.video-card--large { grid-row: span 2; min-height: 480px; }
.video-card--sm { min-height: 220px; }
.vc-bg { position: absolute; inset: 0; }
.vc-bg--gradient1 { background: linear-gradient(135deg, #0f0c29, #302b63, #24243e); }
.vc-bg--gradient2 { background: linear-gradient(135deg, #093028, #237a57); }
.vc-bg--gradient3 { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); }
.vc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  transition: background 0.4s;
}
.video-card:hover .vc-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); }
.vc-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; z-index: 2; }
.vc-tag {
  display: inline-block; padding: 0.35rem 0.8rem; border-radius: 100px;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
  font-size: 0.78rem; font-weight: 600; color: white; margin-bottom: 0.75rem;
}
.vc-content h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: white; line-height: 1.2; margin-bottom: 1rem; }
.vc-play { display: flex; align-items: center; gap: 1rem; }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s; flex-shrink: 0;
}
.play-btn:hover { background: rgba(255,255,255,0.35); transform: scale(1.08); }
.play-btn svg { width: 20px; height: 20px; transform: translateX(2px); }
.vc-play span { color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500; }
.vc-hover-reveal { color: rgba(255,255,255,0.4); font-size: 0.875rem; transition: color 0.3s; }
.video-card:hover .vc-hover-reveal { color: rgba(255,255,255,0.8); }

/* Animated lines */
.animated-lines { position: absolute; inset: 0; overflow: hidden; }
.anim-line {
  position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  width: 100%; animation: scan 4s linear infinite;
}
.anim-line:nth-child(1){top:20%;animation-delay:0s}
.anim-line:nth-child(2){top:40%;animation-delay:0.8s}
.anim-line:nth-child(3){top:60%;animation-delay:1.6s}
.anim-line:nth-child(4){top:75%;animation-delay:2.4s}
.anim-line:nth-child(5){top:88%;animation-delay:3.2s}
@keyframes scan { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }
.floating-shapes { position: absolute; inset: 0; overflow: hidden; }
.shape { position: absolute; border-radius: 50%; animation: float-random 6s ease-in-out infinite; }
.s1 { width: 80px; height: 80px; background: rgba(52,211,153,0.2); top: 20%; left: 20%; }
.s2 { width: 50px; height: 50px; background: rgba(16,185,129,0.3); top: 50%; right: 25%; animation-delay: -2s; }
.s3 { width: 120px; height: 120px; background: rgba(5,150,105,0.15); bottom: 20%; left: 40%; animation-delay: -4s; }

/* ═══════════════════════════ NEUMORPHISM ═══════════════════════════ */
.neu-section { background: var(--neu-bg); }
[data-theme="dark"] .neu-section { background: #1e1e2a; --neu-shadow-light: rgba(255,255,255,0.05); --neu-shadow-dark: rgba(0,0,0,0.5); --neu-text: #e8e8f0; }
.neu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.neu-card {
  background: var(--neu-bg);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 8px 8px 20px var(--neu-shadow-dark), -8px -8px 20px var(--neu-shadow-light);
  color: var(--neu-text);
}
[data-theme="dark"] .neu-card { background: #1e1e2a; box-shadow: 8px 8px 20px rgba(0,0,0,0.5), -8px -8px 20px rgba(255,255,255,0.04); }
.neu-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--neu-text); }
.neu-rooms { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }
.neu-room {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.875rem 1rem; border-radius: 14px;
  background: var(--neu-bg);
  box-shadow: inset 3px 3px 8px var(--neu-shadow-dark), inset -3px -3px 8px var(--neu-shadow-light);
  font-size: 0.875rem; font-weight: 500;
  transition: box-shadow 0.2s;
}
[data-theme="dark"] .neu-room { box-shadow: inset 3px 3px 8px rgba(0,0,0,0.4), inset -3px -3px 8px rgba(255,255,255,0.03); }
.neu-room--active { box-shadow: 3px 3px 8px var(--neu-shadow-dark), -3px -3px 8px var(--neu-shadow-light); }
[data-theme="dark"] .neu-room--active { box-shadow: 3px 3px 8px rgba(0,0,0,0.4), -3px -3px 8px rgba(255,255,255,0.04); }
.neu-room-icon { font-size: 1.1rem; }
.neu-toggle {
  margin-left: auto; width: 40px; height: 22px;
  background: var(--neu-bg); border-radius: 11px;
  box-shadow: inset 3px 3px 6px var(--neu-shadow-dark), inset -3px -3px 6px var(--neu-shadow-light);
  position: relative; transition: background 0.3s;
}
[data-theme="dark"] .neu-toggle { box-shadow: inset 3px 3px 6px rgba(0,0,0,0.4), inset -3px -3px 6px rgba(255,255,255,0.03); }
.neu-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--neu-bg);
  box-shadow: 2px 2px 5px var(--neu-shadow-dark), -2px -2px 5px var(--neu-shadow-light);
  transition: transform 0.3s;
}
[data-theme="dark"] .neu-toggle::after { box-shadow: 2px 2px 5px rgba(0,0,0,0.4), -2px -2px 5px rgba(255,255,255,0.04); }
.neu-toggle--on { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.neu-toggle--on::after { transform: translateX(18px); background: white; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.neu-temp-widget { display: flex; align-items: center; gap: 1.5rem; }
.neu-knob {
  position: relative; width: 80px; height: 80px;
  background: var(--neu-bg); border-radius: 50%;
  box-shadow: 6px 6px 15px var(--neu-shadow-dark), -6px -6px 15px var(--neu-shadow-light);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  cursor: pointer;
}
[data-theme="dark"] .neu-knob { box-shadow: 6px 6px 15px rgba(0,0,0,0.4), -6px -6px 15px rgba(255,255,255,0.04); }
.knob-inner { text-align: center; }
.knob-value { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1; color: var(--primary); }
.knob-label { font-size: 0.7rem; color: var(--text-muted); }
.knob-ring { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--primary); animation: spin-slow 3s linear infinite; }
.neu-temp-info strong { display: block; font-size: 1rem; font-weight: 700; }
.neu-temp-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Player */
.neu-disc {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--neu-bg); margin: 0 auto 1.5rem;
  box-shadow: 6px 6px 15px var(--neu-shadow-dark), -6px -6px 15px var(--neu-shadow-light);
  position: relative; display: flex; align-items: center; justify-content: center;
  animation: spin-slow 6s linear infinite;
}
[data-theme="dark"] .neu-disc { box-shadow: 6px 6px 15px rgba(0,0,0,0.4), -6px -6px 15px rgba(255,255,255,0.04); }
.disc-groove { position: absolute; border-radius: 50%; border: 1px solid; }
.g1 { inset: 10px; border-color: rgba(0,0,0,0.08); }
.g2 { inset: 22px; border-color: rgba(0,0,0,0.06); }
.g3 { inset: 34px; border-color: rgba(0,0,0,0.04); }
.disc-center { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #ec4899); }
.neu-song-info { text-align: center; margin-bottom: 1.25rem; }
.neu-song-info strong { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.neu-song-info span { font-size: 0.85rem; color: var(--text-muted); }
.neu-slider-wrap { margin-bottom: 1.5rem; }
.neu-slider-track { height: 6px; background: var(--neu-bg); border-radius: 6px; box-shadow: inset 2px 2px 5px var(--neu-shadow-dark), inset -2px -2px 5px var(--neu-shadow-light); position: relative; }
[data-theme="dark"] .neu-slider-track { box-shadow: inset 2px 2px 5px rgba(0,0,0,0.4), inset -2px -2px 5px rgba(255,255,255,0.03); }
.neu-slider-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.neu-slider-thumb { position: absolute; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--neu-bg); box-shadow: 3px 3px 8px var(--neu-shadow-dark), -3px -3px 8px var(--neu-shadow-light); margin-left: -9px; }
.neu-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.25rem; }
.neu-btn {
  background: var(--neu-bg); border: none; border-radius: 50%;
  color: var(--neu-text); font-size: 1rem;
  box-shadow: 4px 4px 10px var(--neu-shadow-dark), -4px -4px 10px var(--neu-shadow-light);
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow 0.15s, transform 0.15s;
}
[data-theme="dark"] .neu-btn { box-shadow: 4px 4px 10px rgba(0,0,0,0.4), -4px -4px 10px rgba(255,255,255,0.04); }
.neu-btn:active { box-shadow: inset 3px 3px 7px var(--neu-shadow-dark), inset -3px -3px 7px var(--neu-shadow-light); transform: scale(0.95); }
.neu-btn--sm { width: 44px; height: 44px; }
.neu-btn--lg { width: 58px; height: 58px; font-size: 1.3rem; }
.neu-vol-row { display: flex; align-items: center; gap: 0.75rem; font-size: 1rem; }
.neu-vol-track { flex: 1; height: 4px; background: var(--neu-bg); border-radius: 4px; box-shadow: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light); }
[data-theme="dark"] .neu-vol-track { box-shadow: inset 2px 2px 4px rgba(0,0,0,0.4), inset -2px -2px 4px rgba(255,255,255,0.03); }
.neu-vol-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #6366f1, #8b5cf6); }

/* Calc */
.neu-display {
  text-align: right; margin-bottom: 1.5rem;
  padding: 1rem 1.25rem; border-radius: 14px;
  background: var(--neu-bg);
  box-shadow: inset 4px 4px 12px var(--neu-shadow-dark), inset -4px -4px 12px var(--neu-shadow-light);
}
[data-theme="dark"] .neu-display { box-shadow: inset 4px 4px 12px rgba(0,0,0,0.5), inset -4px -4px 12px rgba(255,255,255,0.03); }
.neu-display-expr { display: block; font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.neu-display-val { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.neu-keypad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; }
.neu-key {
  aspect-ratio: 1; border-radius: 12px;
  background: var(--neu-bg); border: none; font-size: 0.95rem; font-weight: 600;
  color: var(--neu-text); font-family: var(--font-body);
  box-shadow: 4px 4px 10px var(--neu-shadow-dark), -4px -4px 10px var(--neu-shadow-light);
  transition: box-shadow 0.1s, transform 0.1s;
}
[data-theme="dark"] .neu-key { box-shadow: 4px 4px 10px rgba(0,0,0,0.4), -4px -4px 10px rgba(255,255,255,0.04); }
.neu-key:active { box-shadow: inset 2px 2px 6px var(--neu-shadow-dark), inset -2px -2px 6px var(--neu-shadow-light); transform: scale(0.95); }
.neu-key--func { background: var(--neu-bg); color: var(--primary); }
.neu-key--op { background: var(--neu-bg); color: var(--primary); }
.neu-key--zero { grid-column: span 2; aspect-ratio: auto; padding: 0.6rem 1rem; border-radius: 12px; }
.neu-key--eq { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; box-shadow: 0 4px 15px rgba(99,102,241,0.4); }

/* ═══════════════════════════ 3D CARDS ═══════════════════════════ */
.threed-section { position: relative; overflow: hidden; }
.threed-bg { position: absolute; inset: 0; }
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.threed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  perspective: 1000px;
}
.card-3d {
  perspective: 800px; position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s;
}
.card-3d-inner {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem; position: relative; overflow: hidden;
  transition: box-shadow 0.3s;
}
.card-3d--featured .card-3d-inner {
  background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(244,63,94,0.05));
  border-color: rgba(236,72,153,0.3);
  box-shadow: 0 0 40px rgba(236,72,153,0.15);
}
.card-3d-shine {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none; transition: opacity 0.3s;
  opacity: 0;
}
.card-3d:hover .card-3d-shine { opacity: 1; }
.card-3d-badge {
  display: inline-block; padding: 0.35rem 0.9rem; border-radius: 100px;
  background: linear-gradient(135deg, #ec4899, #f43f5e);
  font-size: 0.75rem; font-weight: 700; color: white;
  margin-bottom: 1.25rem;
}
.card-3d-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.card-3d-inner h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.card-3d-inner p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.card-3d-footer { display: flex; justify-content: space-between; align-items: center; }
.card-3d-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.card-3d-btn {
  padding: 0.6rem 1.25rem; border-radius: 10px;
  background: var(--primary); border: none; color: white;
  font-size: 0.85rem; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
}
.card-3d-btn:hover { background: var(--primary-light); transform: scale(1.04); }

/* ═══════════════════════════ AURORA ═══════════════════════════ */
.aurora-section { position: relative; min-height: 600px; overflow: hidden; background: #050510; max-width: 100%; }
.aurora-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aurora-cards { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; padding: 4rem 5%; }
.aurora-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 2.5rem;
  text-align: center; width: 280px; position: relative; overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.aurora-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.2); box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.aurora-card-glow {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  filter: blur(50px); top: -40px; left: 50%; transform: translateX(-50%);
  background: rgba(99,102,241,0.4); pointer-events: none;
  animation: glow-pulse 3s ease-in-out infinite;
}
.aurora-card-glow--2 { background: rgba(56,189,248,0.4); animation-delay: -1s; }
.aurora-card-glow--3 { background: rgba(74,222,128,0.4); animation-delay: -2s; }
@keyframes glow-pulse { 0%,100%{opacity:0.7;transform:translateX(-50%) scale(1)} 50%{opacity:1;transform:translateX(-50%) scale(1.15)} }
.aurora-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.aurora-card h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 0.75rem; }
.aurora-card p { color: rgba(255,255,255,0.6); font-size: 0.9rem; line-height: 1.6; }

/* ═══════════════════════════ CLAYMORPHISM ═══════════════════════════ */
.clay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}
.clay-card {
  background: white; border-radius: 24px;
  padding: 1.75rem; position: relative; overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.1),
    0 0 0 1.5px rgba(0,0,0,0.04),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.3s var(--transition), box-shadow 0.3s;
}
.clay-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 0 1.5px rgba(0,0,0,0.04), inset 0 1px 0 rgba(255,255,255,0.8);
}
.clay-card--wide { grid-column: span 2; }
.clay-icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
}
.clay-card h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: #1a1a2e; margin-bottom: 0.35rem; }
.clay-card p { color: rgba(0,0,0,0.45); font-size: 0.85rem; }
.clay-badge {
  position: absolute; top: 1rem; right: 1rem;
  padding: 0.3rem 0.65rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 800; color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.clay-badge--blue { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.clay-badge--pink { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.clay-badge--green { background: linear-gradient(135deg, #10b981, #34d399); }
.clay-badge--orange { background: linear-gradient(135deg, #f97316, #fb923c); }
.clay-badge--cyan { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.clay-wide-content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.streak-row { display: flex; gap: 0.5rem; margin-top: 1rem; }
.streak-day {
  width: 32px; height: 32px; border-radius: 10px;
  background: rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: rgba(0,0,0,0.3);
}
.streak-day--done { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
.streak-day--active { background: linear-gradient(135deg, #f97316, #ec4899); color: white; box-shadow: 0 4px 12px rgba(249,115,22,0.4); }
.clay-streak-count { text-align: center; flex-shrink: 0; }
.streak-fire { font-size: 2rem; display: block; }
.streak-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: #1a1a2e; display: block; line-height: 1; }
.clay-streak-count span:last-child { font-size: 0.85rem; color: rgba(0,0,0,0.45); font-weight: 600; }

/* ═══════════════════════════ INTERACTIONS ═══════════════════════════ */
.interact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Hover Gallery */
.hover-gallery {
  display: grid; grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr; gap: 0.5rem;
  height: 320px; border-radius: var(--radius-lg); overflow: hidden;
}
.gallery-item {
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: flex 0.5s var(--transition);
}
.gi-1 { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.gi-2 { background: linear-gradient(135deg, #1a0533, #7c3aed); }
.gi-3 { background: linear-gradient(135deg, #050a17, #0c4a6e); }
.gi-4 { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.gi-content {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  transform: translateY(100%); transition: transform 0.3s;
}
.gallery-item:hover .gi-content { transform: translateY(0); }
.gi-content span { color: white; font-weight: 600; font-size: 0.875rem; }
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s;
}
.gallery-item:hover::after { background: rgba(255,255,255,0.05); }

/* Buttons */
.btn-showcase, .form-showcase, .tooltip-showcase {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
}
.showcase-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; }
.btn-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.interact-btn {
  padding: 0.75rem 1.5rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; width: 100%; text-align: center;
  transition: all 0.2s;
}
.ibtn-primary { background: var(--primary); border: none; color: white; }
.ibtn-primary:hover { background: var(--primary-light); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(99,102,241,0.35); }
.ibtn-outline { background: transparent; border: 1.5px solid var(--border-bright); color: var(--text); }
.ibtn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); transform: translateY(-1px); }
.ibtn-ghost { background: transparent; border: none; color: var(--text-muted); }
.ibtn-ghost:hover { color: var(--text); background: var(--surface); }
.ibtn-gradient { background: var(--gradient); border: none; color: white; }
.ibtn-gradient:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ibtn-glow { background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.4); color: var(--primary-light); }
.ibtn-glow:hover { background: rgba(99,102,241,0.25); box-shadow: 0 0 25px rgba(99,102,241,0.3); }
.ibtn-loading { background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); position: relative; overflow: hidden; }
.ibtn-loading.is-loading { color: transparent; }
.ibtn-loading.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: white;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  animation: btn-spin 0.8s linear infinite;
}
.ibtn-loading.done { background: linear-gradient(135deg, #10b981, #34d399); border: none; color: white; }
@keyframes btn-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Form */
.form-group { margin-bottom: 1.5rem; position: relative; }
.fl-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; }
.fl-input, .fl-select {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 0.9rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.fl-input:focus, .fl-select:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(99,102,241,0.15); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: 0.9rem; }
.toggle-switch { position: relative; width: 48px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--surface); border-radius: 13px;
  cursor: pointer; transition: background 0.3s;
  border: 1px solid var(--border);
}
.toggle-slider::before {
  content: ''; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted);
  transition: transform 0.3s, background 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); background: white; }
.fl-submit {
  width: 100%; margin-top: 1rem; padding: 0.875rem;
  background: var(--gradient); border: none; border-radius: 10px;
  color: white; font-weight: 600; font-size: 0.95rem;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fl-submit:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 8px 25px rgba(99,102,241,0.35); }

/* Tooltips */
.tooltip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tt-item { position: relative; display: flex; align-items: center; justify-content: center; }
.tt-btn {
  padding: 0.6rem 1rem; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 0.85rem; font-weight: 500;
  transition: background 0.2s; width: 100%;
}
.tt-btn:hover { background: var(--border); }
.tt-item::after {
  content: attr(data-tooltip);
  position: absolute; white-space: nowrap; z-index: 100;
  padding: 0.5rem 0.875rem; border-radius: 8px;
  background: #1a1a2e; color: white; font-size: 0.78rem; font-weight: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: scale(0.9);
}
.tt-item[data-tt-pos="top"]::after { bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(0.9); }
.tt-item[data-tt-pos="bottom"]::after { top: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(0.9); }
.tt-item[data-tt-pos="left"]::after { right: calc(100% + 8px); top: 50%; transform: translateY(-50%) scale(0.9); }
.tt-item[data-tt-pos="right"]::after { left: calc(100% + 8px); top: 50%; transform: translateY(-50%) scale(0.9); }
.tt-item:hover::after { opacity: 1; transform: none; }
.tt-item[data-tt-pos="top"]:hover::after { transform: translateX(-50%); }
.tt-item[data-tt-pos="bottom"]:hover::after { transform: translateX(-50%); }
.tt-item[data-tt-pos="left"]:hover::after { transform: translateY(-50%); }
.tt-item[data-tt-pos="right"]:hover::after { transform: translateY(-50%); }
.tt-item[data-tt-glass]::after { background: rgba(255,255,255,0.1); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.15); }

/* ═══════════════════════════ TYPOGRAPHY ═══════════════════════════ */
.typo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem;
  margin-bottom: 4rem;
}
.typo-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.typo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tc-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); display: block; margin-bottom: 1.5rem; }
.tc-sample { font-size: 5rem; font-weight: 800; line-height: 1; opacity: 0.15; position: absolute; top: 1rem; right: 1rem; }
.tc-preview { font-size: 1.4rem; font-weight: 700; line-height: 1.3; margin-bottom: 1rem; position: relative; }
.tc-meta { font-size: 0.78rem; color: var(--text-muted); }
.tc-1 { background: linear-gradient(135deg, rgba(99,102,241,0.08), var(--bg2)); }
.tc-2 { background: linear-gradient(135deg, rgba(236,72,153,0.08), var(--bg2)); }
.tc-3 { background: linear-gradient(135deg, rgba(14,165,233,0.08), var(--bg2)); }
.tc-4 { background: linear-gradient(135deg, rgba(74,222,128,0.08), var(--bg2)); }
.text-reveal-band {
  text-align: center; padding: 3rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.text-reveal-inner { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; align-items: center; }
.tr-word { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; opacity: 0.8; }
.tr-word:hover { opacity: 1; }

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.footer { position: relative; background: var(--bg2); border-top: 1px solid var(--border); overflow: hidden; }
.footer-glow { position: absolute; width: 600px; height: 300px; top: -150px; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(99,102,241,0.1), transparent); pointer-events: none; }
.footer-content { max-width: 1400px; margin: 0 auto; padding: 5rem 2.5rem 3rem; display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-brand { max-width: 280px; }
.footer-brand h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 800; margin: 0.75rem 0; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.footer-links { display: flex; gap: 4rem; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; min-width: 130px; }
.footer-col h4 { font-weight: 700; font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding: 1.5rem 2.5rem; display: flex; justify-content: space-between; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--text-dim); flex-wrap: wrap; gap: 1rem; }

/* ═══════════════════════════ SVG DEFS ═══════════════════════════ */
body::after {
  content: '';
  position: absolute; width: 0; height: 0; top: 0; left: 0;
}

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */
@media (max-width: 900px) {
  .bento-cell--hero { grid-column: span 12; }
  .bento-cell--stat { grid-column: span 12; }
  .bento-cell--image { grid-column: span 12; }
  .bento-cell--dark { grid-column: span 12; }
  .bento-cell--palette { grid-column: span 6; }
  .bento-cell--quote { grid-column: span 6; }
  .bento-cell--progress { grid-column: span 12; }
  .video-grid { grid-template-columns: 1fr; }
  .video-card--large { min-height: 320px; grid-row: auto; }
  .nav-links { display: none; }
  .floating-pills { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 5rem 1.25rem; }
  .bento-cell--palette, .bento-cell--quote { grid-column: span 12; }
  .clay-card--wide { grid-column: span 1; }
}

/* ═══════════════════════════ SCROLLBAR ═══════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* SVG gradient inline defs */
svg defs { display: none; }
