:root {
  color-scheme: light;
  --background: #f8fafc;
  --foreground: #0f172a;
  --muted: #475569;
  --border: rgba(148, 163, 184, 0.2);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --font-body: "Inter", "Avenir Next", "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", "Inter", "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 35%, #eef2ff 100%);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-body), sans-serif;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(37, 99, 235, 0.18);
}

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

.font-display {
  font-family: var(--font-heading), sans-serif;
}

.section-shell {
  margin-inline: auto;
  width: 100%;
  max-width: 80rem;
  padding-inline: 1rem;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(226, 232, 240, 0.7);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.section-title {
  font-family: var(--font-heading), sans-serif;
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #020617;
}

.section-copy {
  font-size: 1rem;
  line-height: 1.75rem;
  color: #475569;
}

.bg-grid-fade {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
}

.shadow-card {
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.shadow-glow {
  box-shadow: 0 30px 80px rgba(37, 99, 235, 0.18);
}

.animated-border {
  position: relative;
  overflow: hidden;
}

.animated-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 140deg,
    rgba(37, 99, 235, 0.15),
    rgba(124, 58, 237, 0.24),
    rgba(37, 99, 235, 0.15)
  );
  animation: spin 8s linear infinite;
  z-index: -1;
}

.animated-border::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.9);
  z-index: -1;
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 76%
  );
  transform: translateX(-130%);
  transition: transform 0.8s ease;
}

.card-shine:hover::after {
  transform: translateX(130%);
}

.page-fade {
  animation: rise 0.65s ease both;
}

.spinner {
  display: inline-flex;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

[data-contact-form].is-loading [data-submit-label] {
  display: none;
}

[data-contact-form].is-loading [data-submit-loading] {
  display: inline-flex;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -16px, 0) scale(1.04);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 640px) {
  .section-shell {
    padding-inline: 1.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

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

@media (min-width: 1024px) {
  .section-shell {
    padding-inline: 2rem;
  }

  .section-title {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animated-border::before,
  .hero-orb,
  .page-fade,
  .spinner {
    animation: none;
  }

  .card-shine::after {
    transition: none;
  }
}
