:root {
  --brand-blue: #17a1e7;
  --brand-purple: #8c52ff;
  --brand-purple-deep: #8756e4;
  --ink: #0c1222;
  --ink-muted: #4a5568;
  --surface: #f7fbff;
  --surface-soft: #eef6fc;
  --white: #ffffff;
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: color-mix(in srgb, var(--brand-blue) 35%, white);
  color: var(--ink);
}

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

/* Atmosphere */
.hero-plane {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, color-mix(in srgb, var(--brand-purple) 28%, transparent), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, color-mix(in srgb, var(--brand-blue) 32%, transparent), transparent 50%),
    linear-gradient(160deg, #f4faff 0%, #eef4ff 42%, #f7f2ff 100%);
}

.hero-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--brand-blue) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--brand-blue) 8%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, black 20%, transparent 75%);
  opacity: 0.55;
}

.hero-mark {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-48%);
  width: min(58vw, 560px);
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
  animation: mark-drift 14s ease-in-out infinite alternate;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-blue) 10%, transparent);
  background: color-mix(in srgb, var(--white) 92%, transparent);
}

.nav-wordmark {
  display: block;
  height: 3.5rem;
  width: auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.hero-wordmark {
  display: block;
  width: min(100%, 36rem);
  height: auto;
  margin-left: -0.5rem;
}

.footer-wordmark {
  display: block;
  height: 4rem;
  width: auto;
}

.section-band {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--brand-blue) 4%, transparent) 40%, transparent);
}

.brand-gradient-text {
  background: linear-gradient(105deg, var(--brand-blue) 0%, var(--brand-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
  background: linear-gradient(105deg, var(--brand-blue), var(--brand-purple));
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--brand-blue) 25%, transparent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--brand-purple) 28%, transparent);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 35%, transparent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  background: color-mix(in srgb, var(--white) 70%, transparent);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.btn-secondary:hover {
  border-color: var(--brand-purple);
  transform: translateY(-2px);
  background: var(--white);
}

.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--brand-blue);
}

.service-row {
  border-top: 1px solid color-mix(in srgb, var(--brand-blue) 16%, transparent);
  transition: background 0.25s ease, padding-left 0.25s ease;
}

.service-row:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--brand-blue) 16%, transparent);
}

.service-row:hover {
  background: color-mix(in srgb, var(--brand-blue) 5%, transparent);
  padding-left: 0.5rem;
}

.process-step {
  position: relative;
}

.process-step::after {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: calc(100% + 0.5rem);
  width: calc(100% - 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
  opacity: 0.35;
}

.process-step:last-child::after {
  display: none;
}

@media (max-width: 767px) {
  .process-step::after {
    display: none;
  }
}

.form-field {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--brand-blue) 22%, transparent);
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 18%, transparent);
}

.form-field::placeholder {
  color: color-mix(in srgb, var(--ink-muted) 70%, white);
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-animate > * {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-rise 0.85s ease forwards;
}

.hero-animate > *:nth-child(1) { animation-delay: 0.05s; }
.hero-animate > *:nth-child(2) { animation-delay: 0.18s; }
.hero-animate > *:nth-child(3) { animation-delay: 0.32s; }
.hero-animate > *:nth-child(4) { animation-delay: 0.46s; }

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mark-drift {
  from {
    transform: translateY(-48%) translateX(0);
  }
  to {
    transform: translateY(-52%) translateX(-2%);
  }
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
}

.mobile-menu.is-open {
  max-height: 320px;
  opacity: 1;
}

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

  .hero-animate > *,
  .reveal,
  .hero-mark {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
