:root {
  --background: 210 33% 99%;
  --foreground: 224 38% 13%;
  --primary: 214 84% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 214 36% 94%;
  --secondary-foreground: 224 38% 15%;
  --muted: 216 32% 96%;
  --muted-foreground: 218 14% 42%;
  --destructive: 0 69% 48%;
  --destructive-foreground: 0 0% 100%;
  --border: 216 24% 86%;
  --card: 0 0% 100%;
  --card-foreground: 224 38% 13%;
  --shadow-sm: 0 10px 28px hsl(222 47% 11% / 0.06);
  --shadow-md: 0 18px 44px hsl(222 47% 11% / 0.09);
  --shadow-lg: 0 30px 70px hsl(222 47% 11% / 0.13);
  --transition-fast: 140ms ease;
  --transition-smooth: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm: 0.55rem;
  --radius-md: 0.85rem;
  --radius-lg: 1.15rem;
}

.dark {
  --background: 224 35% 8%;
  --foreground: 213 31% 96%;
  --primary: 213 94% 68%;
  --primary-foreground: 224 35% 8%;
  --secondary: 222 25% 15%;
  --secondary-foreground: 213 31% 96%;
  --muted: 223 26% 13%;
  --muted-foreground: 216 16% 73%;
  --destructive: 0 80% 66%;
  --destructive-foreground: 224 35% 8%;
  --border: 222 20% 22%;
  --card: 224 30% 11%;
  --card-foreground: 213 31% 96%;
  --shadow-sm: 0 14px 34px hsl(0 0% 0% / 0.24);
  --shadow-md: 0 22px 54px hsl(0 0% 0% / 0.34);
  --shadow-lg: 0 34px 86px hsl(0 0% 0% / 0.44);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, hsl(var(--border) / 0.34) 1px, transparent 1px),
    linear-gradient(180deg, hsl(var(--border) / 0.28) 1px, transparent 1px),
    linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--muted)) 100%);
  background-size: 48px 48px, 48px 48px, auto;
  background-attachment: fixed;
  color: hsl(var(--foreground));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 8%, hsl(var(--primary) / 0.11), transparent 25rem),
    radial-gradient(circle at 88% 18%, hsl(220 18% 55% / 0.10), transparent 23rem),
    linear-gradient(180deg, hsl(var(--background) / 0.72), hsl(var(--background) / 0.88));
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: hsl(var(--primary) / 0.18); }

.glass-card {
  position: relative;
  overflow: hidden;
  background: hsl(var(--card) / 0.96);
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, hsl(0 0% 100% / 0.28), transparent 38%);
  opacity: 0.72;
}

.glass-card > * { position: relative; z-index: 1; }

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--foreground)), hsl(var(--primary)) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.focus-ring:focus-visible {
  outline: 3px solid hsl(var(--primary) / 0.28);
  outline-offset: 3px;
}

.page-shell {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: hsl(var(--primary));
}

.surface-muted {
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
}

.float-orb { animation: floatOrb 7s ease-in-out infinite; }

@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.skeleton { position: relative; overflow: hidden; background: hsl(var(--muted)); border-radius: var(--radius-lg); border: 1px solid hsl(var(--border)); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, hsl(var(--primary) / 0.18), transparent); animation: shimmer 1.25s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
