:root {
  --color-bg: #0f0f10;
  --color-bg-elevated: #1e1e1e;
  --color-bg-soft: #26262a;
  --color-accent: #7e1aa8;
  --color-accent-soft: rgba(126, 26, 168, 0.16);
  --color-text: #ffffff;
  --color-text-muted: #b3b3c0;
  --color-border-subtle: #33333a;
  --color-focus: #ae4ae3;
  --radius-pill: 999px;
  --radius-card: 18px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 10px 24px rgba(0, 0, 0, 0.35);
  --transition-fast: 160ms ease-out;
  --transition-med: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  --container-width: min(1120px, 100% - 2.4rem);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #261239 0, #050507 55%, #050507 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

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

button {
  font-family: inherit;
}

.container {
  width: var(--container-width);
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  padding-top: 0.6rem;
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0.96), rgba(5, 5, 7, 0.5), transparent 75%);
  border-bottom: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0 0.8rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 25% 25%, #fefefe, #e493ff 35%, #7e1aa8 65%, #3a1050 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #050507;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 32px rgba(0, 0, 0, 0.6);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.header-link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast),
    transform 120ms ease-out;
}

.header-link:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transform: translateY(-1px);
}

.header-link:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.hero {
  padding: 2.8rem 0 3.6rem;
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 760px;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 3.8vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0 0 1.7rem;
  color: var(--color-text-muted);
  max-width: 32rem;
  font-size: 0.98rem;
}

.pill-splash {
  margin-top: 1.4rem;
}

.pill-intro {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-start;
  max-width: 640px;
}

.pill-note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.pill-note a {
  color: #ffffff;
  text-decoration: underline;
}

.hero-mini-trust {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero-mini-trust span {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 10, 16, 0.92);
}

.router {
  background: linear-gradient(145deg, rgba(18, 18, 24, 0.98), rgba(26, 18, 36, 0.98));
  border-radius: 24px;
  padding: 1.6rem 1.4rem 1.45rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.router-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.12rem;
}

.router-helper {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.router-steps {
  border-radius: 18px;
  background: radial-gradient(circle at top right, rgba(126, 26, 168, 0.18), transparent 60%),
    linear-gradient(135deg, rgba(14, 14, 20, 0.95), rgba(20, 20, 28, 0.96));
  padding: 0.75rem 0.8rem 0.75rem;
}

.router-step-indicator {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.router-stage {
  min-height: 4.4rem;
  padding: 0.3rem 0.1rem 0.2rem;
}

.router-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.4rem;
}

.router-reset {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.router-reset::before {
  content: "↺";
  font-size: 0.85em;
}

.router-reset:hover {
  color: #ffffff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 18, 0.9);
  color: #f7f7ff;
  padding: 0.5rem 0.95rem;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color var(--transition-med), color var(--transition-med), border-color var(--transition-med),
    transform 140ms ease-out, box-shadow 160ms ease-out, opacity 120ms ease-out, filter 140ms ease-out;
}

.pill--floating {
  animation: pillFloat 7s ease-in-out infinite alternate;
}

.pill-cloud .pill {
  max-width: 100%;
}

.pill-cloud .pill:nth-child(1) {
  margin-left: 0;
}

.pill-cloud .pill:nth-child(2) {
  margin-left: 10px;
}

.pill-cloud .pill:nth-child(3) {
  margin-left: 20px;
}

.pill-cloud .pill:nth-child(4) {
  margin-left: 0;
}

.pill-cloud .pill:nth-child(5) {
  margin-left: 16px;
}

.pill-cloud .pill:nth-child(6) {
  margin-left: 28px;
}

.pill-cloud .pill:nth-child(7) {
  margin-left: 4px;
}

.pill-cloud .pill:nth-child(8) {
  margin-left: 18px;
}

.pill-cloud .pill:nth-child(9) {
  margin-left: 30px;
}

.pill-cloud .pill:nth-child(3n + 1) {
  animation-duration: 6.2s;
}

.pill-cloud .pill:nth-child(3n + 2) {
  animation-duration: 7.4s;
  animation-delay: 0.6s;
}

.pill-cloud .pill:nth-child(3n + 3) {
  animation-duration: 8s;
  animation-delay: 0.9s;
}

.pill-label-main {
  font-weight: 500;
}

.pill-label-sub {
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

.pill-tag {
  font-size: 0.7rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
}

.pill:hover {
  background: rgba(22, 22, 30, 0.96);
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}

.pill:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.pill--primary {
  border-color: rgba(126, 26, 168, 0.4);
  background: radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(135deg, rgba(126, 26, 168, 0.84), rgba(61, 16, 94, 0.92));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.pill--primary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px) scale(1.01);
}

.pill--selected {
  background: linear-gradient(135deg, #7e1aa8, #a33de0);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8);
}

.pill--selected .pill-label-sub {
  color: rgba(255, 255, 255, 0.78);
}

.pill-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  background: rgba(0, 0, 0, 0.15);
}

.pill--selected .pill-check::before {
  content: "✓";
}

.pill--dimmed {
  opacity: 0.5;
  filter: blur(0.3px);
}

.router-question {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.router-question strong {
  color: #ffffff;
}

.router-recommendation {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem 0.7rem;
  border-radius: 14px;
  background: rgba(11, 12, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.router-recommendation-title {
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.router-recommendation-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
}

.router-recommendation-body {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.router-recommendation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.router-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform 120ms ease-out,
    box-shadow 160ms ease-out, color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #7e1aa8, #b24ce6);
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.hero-fallback {
  margin-top: 1.7rem;
}

.hero-fallback-label {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.hero-fallback-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.card-link {
  text-decoration: none;
  flex: 1 1 0;
  min-width: min(220px, 100%);
}

.card {
  background: linear-gradient(135deg, rgba(21, 21, 26, 0.96), rgba(27, 22, 32, 0.96));
  border-radius: var(--radius-card);
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  transition: transform 140ms ease-out, box-shadow 180ms ease-out, border-color 160ms ease-out,
    background-color 160ms ease-out;
}

.card-inline {
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.card-link:hover .card {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.hero-aside {
  display: none;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(24, 24, 32, 0.98), rgba(34, 26, 42, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-item {
  padding: 0.4rem 0.6rem;
  border-radius: 14px;
  background: rgba(8, 8, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.trust-label {
  display: block;
  font-size: 0.74rem;
  color: var(--color-text-muted);
}

.trust-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.quote-card {
  background: radial-gradient(circle at 0 0, rgba(126, 26, 168, 0.32), transparent 58%),
    linear-gradient(135deg, rgba(16, 16, 22, 0.95), rgba(18, 12, 26, 0.97));
  border-radius: 18px;
  padding: 1rem 1.1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.quote-text {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
}

.quote-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.services {
  padding: 0.5rem 0 2.6rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.service-card {
  position: relative;
}

.service-intro {
  margin-top: 0.1rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.service-list {
  padding-left: 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.service-list li + li {
  margin-top: 0.15rem;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(circle at bottom center, #050509 0, #050507 55%, #050507 100%);
  padding: 1.4rem 0 1.1rem;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-heading {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li + li {
  margin-top: 0.15rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-note {
  margin-top: 0.6rem;
}

.footer-bottom {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

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

@media (max-width: 880px) {
  .header-inner {
    padding-inline: 0.4rem;
  }

  .hero {
    padding-top: 2.1rem;
    min-height: calc(100vh - 56px);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (max-width: 600px) {
  .site-header {
    position: static;
  }

  .header-nav {
    display: none;
  }

  .hero {
    padding-inline: 0.3rem;
  }

  .hero-inner {
    align-items: flex-start;
  }

  .router {
    padding: 1.3rem 1.1rem 1.2rem;
  }

  .router-steps {
    padding-inline: 0.65rem;
  }

  .hero-fallback-grid {
    flex-direction: column;
  }

  .card {
    padding: 0.9rem 0.95rem 0.95rem;
  }
}

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

@keyframes pillFloat {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55);
  }
  50% {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
  }
}

