:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-alt: #101522;
  --card: #141b2c;
  --card-soft: rgba(20, 27, 44, 0.72);
  --text: #eef2ff;
  --muted: #b6c1e1;
  --accent: #8cf5ff;
  --accent-strong: #4dd6ff;
  --highlight: #5c7cff;
  --border: rgba(140, 155, 200, 0.2);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1100px;
  --gradient: linear-gradient(135deg, rgba(76, 125, 255, 0.25), rgba(140, 245, 255, 0.18));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.mesh-background {
  background: transparent;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  scroll-margin-top: 96px;
}

.section.tight {
  padding: 56px 0;
}

.section-title {
  font-size: clamp(1.6rem, 2vw, 2.4rem);
  margin: 0 0 16px;
}

.section-lead {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 720px;
}

.header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4dd6ff, #5c7cff);
  box-shadow: 0 12px 30px rgba(92, 124, 255, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a.is-active {
  position: relative;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gradient);
  border: 1px solid var(--border);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(92, 124, 255, 0.25);
}

.menu-button {
  display: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
}

.hero {
  position: relative;
  padding: 96px 0 72px;
  background: transparent;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  margin-bottom: 16px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-visual {
  display: grid;
  place-items: center;
  padding: 16px;
}

.hero-illustration {
  width: min(100%, 480px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(6, 12, 24, 0.6));
  animation: float 8s ease-in-out infinite;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent-strong);
  color: #03121d;
}

.btn.secondary {
  background: transparent;
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(2, 10, 20, 0.4);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.trust-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(92, 124, 255, 0.2);
  border: 1px solid rgba(92, 124, 255, 0.4);
}

.trust-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--card-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 245, 255, 0.4);
  box-shadow: 0 24px 60px rgba(7, 15, 30, 0.45);
}

.service-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 230px;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

.text-link:hover {
  color: var(--text);
}

.icon {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(140, 245, 255, 0.2);
  border: 1px solid rgba(140, 245, 255, 0.4);
}

.icon svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 52px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(76, 214, 255, 0.2);
  border: 1px solid rgba(76, 214, 255, 0.4);
  color: var(--accent);
  font-weight: 600;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}

.list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.section-note {
  margin-top: 24px;
  color: var(--muted);
  max-width: 720px;
}

.cta-panel {
  background: var(--gradient);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: grid;
  gap: 12px;
  align-items: center;
}

.cta-panel .btn.primary {
  justify-self: start;
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-meta a {
  color: var(--text);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-alt);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-links,
.footer-meta {
  display: grid;
  gap: 12px;
}

.footer a {
  color: var(--muted);
}

.footer a:hover {
  color: var(--text);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  font-weight: 500;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.form textarea {
  min-height: 140px;
}

.notice {
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.quote {
  font-style: italic;
  color: var(--muted);
}

.testimonial-card {
  display: grid;
  gap: 12px;
}

.testimonial-card strong {
  font-weight: 600;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    right: 24px;
    top: 76px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: none;
    min-width: 200px;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 88px 0 64px;
  }

  .button-group {
    width: 100%;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }
}

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

  .hero-illustration {
    animation: none;
  }

  * {
    transition: none !important;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
#particles-js {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg);
  background-size: 100% !important;
  pointer-events: none;
  z-index: 0;
}

body.mesh-background .header,
body.mesh-background main,
body.mesh-background footer {
  position: relative;
  z-index: 1;
}
