/* ---------- 0) Global sanity ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --gutter: clamp(1.5rem, 4vw, 3rem);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #05070f;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: 0;
}

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

/* ---------- 1a) Header polish ---------- */

.site-header {
  background: rgba(7, 10, 22, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(5, 8, 20, 0.55);
}

.site-header .container-xxl {
  min-height: 72px;
}

.site-header .nav-link {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: #ffffff;
  background: rgba(79, 125, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(79, 125, 255, 0.35);
  outline: none;
}

.site-header .nav-link.active,
.site-header .nav-link.is-active,
.site-header .nav-link[aria-current="page"],
.site-header .nav-link[aria-current="true"] {
  color: #ffffff;
  background: rgba(236, 72, 153, 0.3);
  box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.55),
    0 10px 22px rgba(236, 72, 153, 0.15);
}

/* ---------- 1) Typography polish ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 {
  line-height: 1.15;
}

h2 {
  line-height: 1.15;
}

h3 {
  line-height: 1.15;
}

p {
  text-wrap: pretty;
}

.type-display {
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-family: var(--font-family-display);
}

.type-headline {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-family: var(--font-family-display);
}

.type-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.type-body {
  font-size: 1rem;
  line-height: 1.65;
}

.type-display + .type-lead,
.type-display + .type-body,
.type-headline + .type-lead,
.type-headline + .type-body {
  margin-top: clamp(0.75rem, 1.6vw, 1.35rem);
}

.type-lead + .type-body,
.type-body + .type-body {
  margin-top: clamp(0.35rem, 1vw, 0.6rem);
}

ul,
ol {
  margin: 0.75rem 0;
  padding-left: 1.1rem;
}

.card h3,
.card h4,
.card h5,
.glass-card h3,
.glass-card h4,
.glass-card h5,
.highlight-card h3,
.highlight-card h4,
.highlight-card h5 {
  margin: 0 0 0.75rem;
}

.glass-card li + li,
.highlight-card li + li {
  margin-top: 0.5rem;
}

/* ---------- 2) Surface + depth ---------- */

.surface-glass {
  background: rgba(10, 16, 32, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.surface-card {
  background: linear-gradient(
    140deg,
    rgba(15, 23, 42, 0.9),
    rgba(7, 11, 24, 0.95)
  );
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 20px 55px rgba(2, 6, 23, 0.6);
}

.glass-card,
.highlight-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 18px 36px rgba(8, 15, 35, 0.45);
  padding: var(--space-lg);
  color: var(--text-primary);
  overflow: hidden;
  background-clip: padding-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover,
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(8, 15, 35, 0.5);
}

.glass-card > * + *,
.highlight-card > * + * {
  margin-top: var(--space-sm);
}

.glass-card > :last-child,
.highlight-card > :last-child {
  margin-bottom: 0;
}

.highlight-card::after {
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(
      circle at 12% 12%,
      rgba(79, 125, 255, 0.32),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 85%,
      rgba(255, 79, 216, 0.25),
      transparent 55%
    );
  filter: blur(24px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

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

/* ---------- 2a) Service imagery ---------- */

.service-highlight__image,
.service-card__image {
  position: relative;
  width: 100%;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.service-highlight__image img,
.service-card__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  transition: transform 0.5s ease;
}

/* ---------- 3) Buttons + inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  letter-spacing: 0.01em;
}

.btn-neon-primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(236, 72, 153, 0.86));
  color: #f8fafc;
  border: 1px solid transparent;
}

.btn-neon-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(79, 125, 255, 0.35);
}

.hero-cta-group {
  --hero-cta-height: 3rem;
  --hero-cta-padding-y: 0.85rem;
  --hero-cta-padding-x: 2.3rem;
  --hero-cta-font-size: 1.05rem;
  --hero-cta-radius: 999px;
  --hero-cta-gap: 1.5rem;
}

.hero-cta-group .d-flex {
  align-items: center;
  gap: var(--hero-cta-gap);
}

.hero-cta-group .btn {
  min-width: 12.5rem;
}

.btn-hero-primary {
  min-height: var(--hero-cta-height);
  padding: var(--hero-cta-padding-y) var(--hero-cta-padding-x);
  font-size: var(--hero-cta-font-size);
  border-radius: var(--hero-cta-radius);
  box-shadow: 0 20px 44px rgba(79, 125, 255, 0.48), 0 0 34px rgba(236, 72, 153, 0.6);
}

.btn-hero-primary:hover {
  box-shadow: 0 22px 52px rgba(79, 125, 255, 0.65), 0 0 42px rgba(236, 72, 153, 0.75);
}

.btn-hero-secondary {
  min-height: var(--hero-cta-height);
  padding: var(--hero-cta-padding-y) var(--hero-cta-padding-x);
  font-size: var(--hero-cta-font-size);
  border-radius: var(--hero-cta-radius);
  opacity: 0.82;
}

.btn-hero-secondary:hover {
  opacity: 0.95;
}

.btn-neon-ghost {
  background: rgba(8, 11, 22, 0.7);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-neon-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 125, 255, 0.6);
  box-shadow: 0 10px 24px rgba(79, 125, 255, 0.25);
}

.highlight-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-card .btn {
  margin-top: auto;
  align-self: flex-start;
  min-width: 11.5rem;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
textarea,
select {
  height: 3rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background-color: rgba(12, 18, 34, 0.85);
  color: #f8fafc;
  padding: 0.65rem 0.95rem;
  line-height: 1.4;
}

textarea {
  height: auto;
  min-height: 7rem;
  resize: vertical;
}

.form-control::placeholder,
input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
input[type="date"]::placeholder,
input[type="time"]::placeholder,
input[type="datetime-local"]::placeholder,
input[type="month"]::placeholder,
input[type="week"]::placeholder,
textarea::placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
textarea:focus,
select:focus {
  border-color: rgba(79, 125, 255, 0.7);
  box-shadow: 0 0 0 0.25rem rgba(79, 125, 255, 0.25),
    0 0 18px rgba(79, 125, 255, 0.35);
  outline: none;
}

/* ---------- 4) Accent lines + dividers ---------- */

.divider-glow {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(79, 125, 255, 0.5),
    rgba(255, 79, 216, 0.4),
    transparent
  );
}

.hero-title {
  text-transform: none;
  letter-spacing: -0.005em;
  font-size: inherit;
}

.hero-subhead {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 68ch;
}

.hero-panel {
  animation: none !important;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

@media (hover: hover) {
  .hero-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 70px rgba(6, 10, 26, 0.6),
      0 0 28px rgba(79, 125, 255, 0.35);
  }

  .hero-panel:hover .hero-panel__glow {
    opacity: 0.85;
  }
}

/* ---------- 5) Section rhythm ---------- */

.section-padding {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.section-frame,
.section-panel {
  position: relative;
  width: min(100%, 84rem);
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(
    150deg,
    rgba(12, 18, 36, 0.7),
    rgba(7, 11, 24, 0.9)
  );
  box-shadow: 0 24px 60px rgba(4, 7, 18, 0.45);
  backdrop-filter: blur(18px);
  background-clip: padding-box;
}

/* ---------- 6) Mobile polish ---------- */

@media (max-width: 600px) {
  h1,
  h2 {
    letter-spacing: -0.01em;
  }

  .theme-landing .row > [class*="col-"],
  .theme-landing .row > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .theme-landing .row.g-4 {
    row-gap: 1.5rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-frame,
  .section-panel {
    padding: 1.5rem;
  }
}

/* ---------- 7) Landing snap overrides ---------- */

.theme-landing {
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);
}

.theme-landing .snap-section::before,
.theme-landing .snap-section::after {
  opacity: 0.12 !important;
}

.theme-landing .stack-2xl {
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
}

.theme-landing .gap-2xl {
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
}

.theme-landing .space-y-2xl > * + * {
  margin-top: clamp(0.75rem, 1.8vw, 1.75rem);
}

.theme-landing::before {
  opacity: 0.25 !important;
}

.theme-landing::after {
  opacity: 0.3 !important;
}

.section-slab::before {
  opacity: 0.22 !important;
}

.section-slab::after {
  opacity: 0.22 !important;
}

.section-slab--light::before {
  opacity: 0.24 !important;
}

.section-slab--light::after {
  opacity: 0.28 !important;
}

.section-slab--light .text-muted {
  color: rgba(226, 232, 240, 0.8) !important;
}

.theme-landing .snap-scroll {
  scroll-snap-type: none !important;
}

.theme-landing .full-bleed-grid {
  --full-bleed-max: 90rem;
  grid-template-columns:
    minmax(var(--full-bleed-gutter), 1fr)
    minmax(0, min(100%, var(--full-bleed-max)))
    minmax(var(--full-bleed-gutter), 1fr);
}

.theme-landing .full-bleed-grid > .full-bleed-content {
  grid-column: 2;
}

.theme-landing .section-frame,
.theme-landing .section-panel {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.theme-landing .snap-section {
  opacity: 1;
  filter: none;
  transform: none;
  height: auto;
  min-height: unset;
  scroll-snap-align: none;
}

.theme-landing .snap-section__inner {
  padding: clamp(36px, 4.5vh, 64px) 0;
}

@media (max-width: 600px) {
  .theme-landing .snap-section__inner {
    padding: clamp(40px, 5vh, 72px) 0;
  }
}

/* Landing layout expansion for wider, more premium presentation */
.theme-landing .container-xxl {
  max-width: min(96vw, 1720px);
}

@media (max-width: 991px) {
  .theme-landing .container-xxl {
    max-width: 100%;
    padding-inline: clamp(1rem, 3vw, 1.75rem);
  }
}

/* ---------- Landing friendliness + depth ---------- */
.section-soft-glow {
  position: relative;
}

.section-soft-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 10%, rgba(59, 130, 246, 0.14), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.12), transparent 40%);
  pointer-events: none;
}

.text-gradient-soft {
  background: linear-gradient(90deg, #f8fafc 0%, #dbeafe 45%, #e9d5ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-friendly-copy {
  max-width: 60ch;
  color: color-mix(in srgb, var(--text-primary) 86%, #ffffff 14%);
}

.card-lift {
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.42);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-lift:hover {
  transform: translateY(-3px);
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 20px 36px rgba(2, 6, 23, 0.5);
}

.cta-spotlight {
  border: 1px solid rgba(167, 139, 250, 0.32);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.55);
}
