:root {
  /* Antigravity-inspired Palette - TRUE DARK MODE */
  --bg-dark: #050505;
  --bg-card: rgba(20, 20, 25, 0.4);
  --primary: #818cf8;
  --primary-glow: #a5b4fc;
  --accent: #f472b6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Advanced Gradients */
  --gradient-main: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #db2777 100%);
  --gradient-text: linear-gradient(90deg, #818cf8, #c084fc, #f472b6);
  --gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* UI Tokens */
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.2);
  --border-glass: rgba(255, 255, 255, 0.08);
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  /* Deeper, more subtle noise/gradient background */
  background-image:
    radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(219, 39, 119, 0.08), transparent 25%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Enhanced Glassmorphism */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  /* Deeper shadow */
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow for cards */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-nav {
  background: rgba(5, 5, 5, 0.85);
  /* Darker nav */
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

/* Titanium / Chrome Text Effect */
.text-antigravity {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Typography */
h1,
h2,
h3,
h4,
.font-heading {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

/* Forms & Inputs */
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-glass) !important;
  color: white !important;
  border-radius: 12px !important;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.2) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

/* Buttons */
.btn-primary {
  background: #fff;
  /* High contrast button like Antigravity */
  color: #000;
  font-weight: 600;
  border-radius: 9999px;
  border: none;
  padding: 12px 28px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: scale(1.05);
  /* Slight grow */
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Gravity Animations */
@keyframes gravity-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-15px) rotate(2deg);
  }

  66% {
    transform: translateY(10px) rotate(-1deg);
  }
}

@keyframes slow-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-gravity {
  animation: gravity-float 8s ease-in-out infinite;
}

.animate-spin-slow {
  animation: slow-spin 20s linear infinite;
}

/* Utilities */
.hero-glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  z-index: -1;
  pointer-events: none;
}

/* Writer Animation Sprite */
@keyframes writer-typing {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -800% 0;
  }
}

.writer-animation {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
}