/* THEME DESIGN TOKENS */
:root {
  --bg-base: #030712;
  --bg-surface: #18181b;
  --bg-elevated: #1f2937;
  --text-primary: #f5f5f0;
  --text-secondary: #a1a1aa;
  --text-inverse: #1a1a18;
  --border-subtle: rgba(255,255,255,0.08);
  --shadow-ambient: rgba(0,0,0,0.5);
  --glow-accent: rgba(56, 189, 248, 0.15);
  
  --font-display: 'Clash Display', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

/* NOISE OVERLAY */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  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.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* AURORA BACKGROUND */
.aurora-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  overflow: hidden;
  z-index: -1;
  background: var(--bg-base);
}
.aurora-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse 80% 50% at 50% -20%,
    rgba(52, 211, 153, 0.15),
    transparent
  ),
  radial-gradient(
    ellipse 50% 50% at 80% 20%,
    rgba(56, 189, 248, 0.1),
    transparent
  ),
  radial-gradient(
    ellipse 50% 50% at 20% 80%,
    rgba(139, 92, 246, 0.08),
    transparent
  );
  animation: aurora-drift 20s ease-in-out infinite alternate;
}
@keyframes aurora-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, 2%) rotate(1deg); }
}

/* LIQUID GLASS (Advanced Glassmorphism) */
.liquid-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 32px var(--shadow-ambient);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
}
.liquid-glass:hover {
  transform: translateY(-4px);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
}

/* ANIMATED GRADIENT BORDER */
.gradient-border-button {
  position: relative;
  border-radius: 9999px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: all 0.3s ease;
}
.gradient-border-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    #34d399 0%,
    #38bdf8 50%,
    #8b5cf6 100%
  );
  background-size: 200% 200%;
  animation: border-shimmer 3s ease-in-out infinite;
  z-index: -1;
  transition: opacity 0.3s ease;
}
.gradient-border-button:hover {
  background: transparent;
  color: #030712;
}
.gradient-border-button:hover::before {
  inset: 0;
}
@keyframes border-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1.5rem;
}
.bento-cell-large {
  grid-column: span 4;
}
.bento-cell-medium {
  grid-column: span 2;
}
@media (min-width: 1024px) {
  .bento-cell-large { grid-column: span 2; grid-row: span 2; }
  .bento-cell-medium { grid-column: span 2; grid-row: span 1; }
}

/* TYPOGRAPHY */
.text-hero {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.text-gradient {
  background: linear-gradient(135deg, #f5f5f0 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
  background: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* SPLIT DIAGONAL */
.split-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

/* SKELETON LOADER ANIMATION */
.skeleton-loader {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  z-index: 20;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.8s infinite ease-in-out;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.skeleton-loader.loaded {
  opacity: 0;
  visibility: hidden;
}
@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

