/* =========================================================
   Reset + Global Layout
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-100);
  background: var(--gradient-hero);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: clip;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  z-index: -2;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

body::before {
  top: -120px;
  right: -80px;
  background: rgba(255, 143, 193, 0.42);
}

body::after {
  left: -120px;
  bottom: -120px;
  background: rgba(116, 221, 242, 0.28);
}

::selection {
  color: #fff;
  background: rgba(155, 124, 255, 0.8);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

input,
textarea,
select {
  outline: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

main {
  display: block;
}

body.menu-open {
  overflow: hidden;
}

/* =========================================================
   Global Typography
   ========================================================= */
h1,
h2,
h3,
h4,
.display {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  color: var(--text-200);
  max-width: 70ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.76);
  color: var(--primary-100);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.eyebrow .icon {
  width: 14px;
  height: 14px;
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

.section-sm {
  padding: var(--space-16) 0;
}

.container,
.container-wide {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.container-wide {
  width: min(100% - 32px, var(--container-wide));
}

.section-head {
  display: grid;
  gap: 18px;
  margin-bottom: 36px;
}

.section-kicker {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--secondary-100);
}

.section-copy {
  font-size: 1.05rem;
}

.grid-2,
.grid-3,
.grid-4,
.cluster {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cluster {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
}

.stack {
  display: grid;
  gap: 18px;
}

.surface {
  background: var(--gradient-panel);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(var(--glass-saturate));
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.muted {
  color: var(--text-200);
}

.highlight {
  background: linear-gradient(135deg, var(--primary-100), var(--secondary-100));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(155, 124, 255, 0.3), transparent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.mono {
  font-family: var(--font-mono);
}

.page-shell {
  padding-top: calc(var(--nav-height) + 18px);
}

.page-shell.page-dashboard {
  padding-top: 0;
}

/* =========================================================
   Motion Helpers
   ========================================================= */
@keyframes floatSoft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 95, 162, 0.26);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 95, 162, 0);
  }
}

@keyframes beamFlow {
  from {
    stroke-dashoffset: 180;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .section {
    padding: 76px 0;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }
}

@media (max-width: 560px) {
  .container,
  .container-wide {
    width: min(100% - 20px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .page-shell {
    padding-top: calc(var(--nav-height) + 8px);
  }
}

@media (max-width: 430px) {
  p {
    max-width: 34ch;
  }
}
