:root {
  color-scheme: dark;
  --bg-grad: linear-gradient(180deg, #04050d 0%, #090d1f 50%, #050816 100%);
  --panel: rgba(13, 19, 43, 0.72);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.72);
  --accent: #7c3aed;
  --accent-2: #06b6d4;
  --accent-3: #22c55e;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

html[data-theme='light'] {
  color-scheme: light;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.72);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.25), transparent 32%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.18), transparent 28%),
    var(--bg-grad);
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.2s ease;
}

html[data-theme='light'] body {
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.11), transparent 26%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 48%, #e6eefc 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 80%);
  pointer-events: none;
}

html[data-theme='light'] body::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 82%);
}

.bg-orb,
.grid-overlay,
.hero-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-orb {
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
}

.orb-one {
  top: -10rem;
  left: -8rem;
  background: rgba(124, 58, 237, 0.8);
  animation: float 14s ease-in-out infinite;
}

.orb-two {
  right: -10rem;
  top: 20rem;
  background: rgba(6, 182, 212, 0.65);
  animation: float 18s ease-in-out infinite reverse;
}

.grid-overlay {
  background: linear-gradient(transparent 0 95%, rgba(255, 255, 255, 0.03) 100%);
}

.hero-vignette {
  background: radial-gradient(circle at center, transparent 0 45%, rgba(0, 0, 0, 0.18) 100%);
}

html[data-theme='light'] .hero-vignette {
  background: radial-gradient(circle at center, transparent 0 48%, rgba(148, 163, 184, 0.12) 100%);
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

.topbar,
.hero,
.section,
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-text {
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.5), transparent 80%);
  transform: translateX(-140%);
  animation: shine 6s ease-in-out infinite;
}

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-direction: column;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

html[data-theme='light'] .menu-toggle {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.menu-toggle span {
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  position: relative;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 2.3rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex: 0 0 auto;
}

html[data-theme='light'] .theme-toggle {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.theme-toggle-track {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.theme-toggle-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #cbd5e1);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.25);
  transform: translateX(0);
  transition: transform 0.28s ease, background 0.28s ease;
}

html[data-theme='light'] .theme-toggle-thumb {
  transform: translateX(1.55rem);
  background: linear-gradient(135deg, #0f172a, #334155);
}

.animate-in,
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-in.is-visible,
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 6rem);
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  content: '';
  position: absolute;
  inset: -2rem -3rem auto auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}

html[data-theme='light'] .hero-copy::before {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

html[data-theme='light'] .eyebrow,
html[data-theme='light'] .section-kicker {
  color: rgba(15, 23, 42, 0.72);
}

.eyebrow::before,
.section-kicker::before {
  content: '';
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.12);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  margin: 1rem 0 1.25rem;
  max-width: 11ch;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #f8fafc, #7c3aed 35%, #06b6d4 70%, #f8fafc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 220% 100%;
  animation: gradientShift 6s ease-in-out infinite;
}

html[data-theme='light'] .gradient-text {
  background: linear-gradient(90deg, #0f172a, #7c3aed 36%, #0ea5e9 68%, #0f172a);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-text,
.section-heading p,
.contact-copy p,
.service-card p,
.step p,
.footer p,
.contact-points li,
.metric-label,
.card-header {
  color: var(--muted);
}

.hero-text {
  font-size: 1.08rem;
  max-width: 60ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #4f46e5 45%, var(--accent-2));
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.25);
}

html[data-theme='light'] .brand-mark,
html[data-theme='light'] .button-primary,
html[data-theme='light'] .step span {
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme='light'] .button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(15, 23, 42, 0.1);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.trust-row > div,
.hero-card,
.glass,
.service-card,
.step {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

html[data-theme='light'] .service-card,
html[data-theme='light'] .step,
html[data-theme='light'] .hero-card,
html[data-theme='light'] .trust-row > div,
html[data-theme='light'] .glass {
  background: rgba(255, 255, 255, 0.78);
}

.trust-row > div {
  padding: 1rem;
  border-radius: 1.25rem;
}

.trust-row strong {
  display: block;
  margin-bottom: 0.35rem;
}

.hero-card {
  border-radius: 2rem;
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -35% auto;
  width: 16rem;
  height: 16rem;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 72%);
  pointer-events: none;
}

html[data-theme='light'] .hero-card::after {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12), transparent 72%);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--accent-3);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.14);
}

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

.metric-grid article,
.service-card,
.step {
  border-radius: 1.4rem;
  padding: 1.15rem;
}

.metric-grid article {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

html[data-theme='light'] .metric-grid article {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(15, 23, 42, 0.06);
}

.metric-grid strong {
  display: block;
  font-size: 2rem;
  margin: 0.5rem 0;
}

.metric-grid p {
  margin: 0;
  color: var(--muted);
}

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

.section-heading {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-heading h2,
.contact-copy h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 0.85rem 0 1rem;
  letter-spacing: -0.04em;
}

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

.service-card h3,
.step h3 {
  margin-bottom: 0.65rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.steps {
  display: grid;
  gap: 1rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}

.step span {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-points {
  padding-left: 1.2rem;
}

.contact-form {
  border-radius: 1.8rem;
  padding: 1.4rem;
}

.contact-form label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
}

html[data-theme='light'] .contact-form input,
html[data-theme='light'] .contact-form textarea {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.08);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: rgba(239, 68, 68, 0.7);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.field-error {
  display: block;
  min-height: 1.25em;
  margin-top: 0.4rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: #fca5a5;
}

html[data-theme='light'] .field-error {
  color: #b91c1c;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.submit-button {
  width: 100%;
  margin-top: 0.25rem;
  gap: 0.7rem;
  position: relative;
}

.submit-button:disabled {
  opacity: 0.85;
  cursor: wait;
}

.submit-spinner {
  display: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.submit-button.is-loading .submit-spinner {
  display: inline-block;
}

.form-status {
  min-height: 1.4em;
  margin: 1rem 0 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  max-width: min(92vw, 28rem);
  padding: 0.95rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 12, 28, 0.88);
  color: var(--text);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

html[data-theme='light'] .toast {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.1);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[data-type='success'] {
  border-color: rgba(34, 197, 94, 0.35);
}

.toast[data-type='error'] {
  border-color: rgba(239, 68, 68, 0.35);
}

.footer {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-theme='light'] .footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-12px) translateX(8px);
  }
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

@keyframes shine {
  0%,
  72% {
    transform: translateX(-140%);
  }
  100% {
    transform: translateX(140%);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-in,
  .animate-on-scroll,
  .gradient-text,
  .brand-mark::after {
    opacity: 1;
    transform: none;
    animation: none !important;
  }

  .submit-spinner {
    animation: none !important;
  }
}

@media (max-width: 960px) {
  .hero,
  .split-section,
  .contact-section,
  .service-grid,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-wrap: wrap;
  }

  h1 {
    max-width: 14ch;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    order: 4;
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.9rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(6, 8, 22, 0.72);
    backdrop-filter: blur(18px);
  }

  html[data-theme='light'] .nav {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.72);
  }

  .nav[data-open='true'] {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.8rem;
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
  }

  html[data-theme='light'] .nav a {
    background: rgba(15, 23, 42, 0.04);
  }

  .menu-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .topbar,
  .hero,
  .section,
  .footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .hero {
    min-height: auto;
    padding-top: 1.5rem;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    transform: translateY(24px);
    max-width: none;
  }

  .toast.is-visible {
    transform: translateY(0);
  }
}
