:root {
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --bg: #08122a;
  --bg-2: #101a34;
  --surface: rgba(17, 30, 57, 0.8);
  --surface-strong: rgba(22, 38, 70, 0.95);
  --text: #edf2ff;
  --text-soft: #b8c7ea;
  --line: rgba(139, 163, 212, 0.26);
  --primary: #6366f1;
  --primary-2: #14b8a6;
  --radius: 18px;
  --shadow: 0 16px 40px rgba(0, 8, 24, 0.35);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background: linear-gradient(180deg, #071126 0%, #091730 45%, #081229 100%);
  font-family: var(--font-sans);
  line-height: 1.55;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 12, 30, 0.6) 0%, rgba(7, 14, 32, 0.82) 55%, rgba(6, 11, 24, 0.92) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.4;
  animation: drift 16s ease-in-out infinite;
}

.hero-glow-a {
  width: 34rem;
  height: 34rem;
  top: -8rem;
  left: -8rem;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.7) 0%, rgba(99, 102, 241, 0) 70%);
}

.hero-glow-b {
  width: 36rem;
  height: 36rem;
  right: -10rem;
  bottom: 10rem;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.6) 0%, rgba(20, 184, 166, 0) 70%);
  animation-delay: 4s;
}

.route-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(137, 158, 206, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 158, 206, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 25% 20%, rgba(86, 103, 173, 0.45), transparent 25%),
    radial-gradient(circle at 75% 65%, rgba(32, 130, 122, 0.4), transparent 32%);
  background-size:
    42px 42px,
    42px 42px,
    100% 100%,
    100% 100%;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.45));
  animation: pulseGrid 12s linear infinite;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem max(1rem, calc((100vw - 1100px) / 2));
  backdrop-filter: blur(14px);
  background: rgba(6, 14, 31, 0.78);
  border-bottom: 1px solid rgba(137, 158, 206, 0.2);
}

.brand {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.02em;
  justify-self: start;
}

.top-nav {
  display: flex;
  gap: 1rem;
  color: var(--text-soft);
  justify-self: center;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  justify-self: end;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(19, 35, 66, 0.75);
  padding: 0.55rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.menu-toggle span + span {
  margin-top: 6px;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: rgba(19, 35, 66, 0.75);
}

.lang-btn {
  border: 0;
  color: var(--text-soft);
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.is-active {
  color: white;
  background: linear-gradient(120deg, var(--primary), #4f46e5);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(5, 9, 22, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.mobile-menu {
  position: fixed;
  top: 72px;
  right: 1rem;
  left: 1rem;
  z-index: 25;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(9, 19, 41, 0.97);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mobile-menu a {
  display: block;
  padding: 0.62rem 0;
}

.mobile-menu a.btn {
  display: inline-flex;
  padding: 0.8rem 1.15rem;
}

.mobile-menu .btn {
  margin-top: 0.4rem;
  width: 100%;
}

.menu-open .menu-backdrop,
.menu-open .mobile-menu {
  opacity: 1;
  pointer-events: auto;
}

.menu-open .mobile-menu {
  transform: translateY(0);
}

body.menu-open {
  overflow: hidden;
}

main {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: clamp(2.4rem, 8vw, 5rem) 0;
  scroll-margin-top: 88px;
}

.hero {
  text-align: center;
  padding-top: clamp(4rem, 10vw, 6rem);
}

.eyebrow {
  margin: 0 auto 0.8rem;
  width: fit-content;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d8dfff;
  background: rgba(75, 93, 163, 0.45);
  border: 1px solid rgba(150, 170, 220, 0.35);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  max-width: 18ch;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: clamp(2rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-subtitle,
.section-intro {
  max-width: 64ch;
  margin: 0.9rem auto 0;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--primary), #4f46e5);
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.15rem;
  box-shadow: 0 12px 26px rgba(79, 70, 229, 0.35);
  cursor: pointer;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn-sm {
  padding: 0.58rem 0.9rem;
  font-size: 0.88rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  box-shadow: none;
}

.grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
}

.section-cta {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
}

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

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

.card,
.panel,
.step,
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.panel,
.step {
  padding: 1.1rem;
}

.panel-accent {
  border-color: rgba(90, 216, 197, 0.42);
  background: linear-gradient(140deg, rgba(22, 42, 76, 0.95), rgba(10, 49, 62, 0.92));
}

.card p,
.panel p,
.step p,
.contact-head p,
.trust {
  margin: 0.45rem 0 0;
  color: var(--text-soft);
}

.steps {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.9rem;
}

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

.step-index {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(167, 185, 227, 0.4);
  background: rgba(80, 96, 170, 0.35);
  color: #eef2ff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-wrap {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.contact-form {
  padding: 1rem;
}

label {
  display: block;
  margin-top: 0.7rem;
  margin-bottom: 0.28rem;
  font-size: 0.88rem;
  color: #d6def8;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(138, 157, 207, 0.35);
  background: rgba(8, 18, 42, 0.72);
  color: var(--text);
  padding: 0.72rem 0.8rem;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(99, 102, 241, 0.6);
  outline-offset: 2px;
}

.contact-form .btn {
  margin-top: 1rem;
  width: 100%;
}

.form-feedback {
  min-height: 1.4rem;
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: #8ce8c6;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding: 1.1rem 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.dot {
  margin: 0 0.4rem;
}

.mobile-cta {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  text-align: center;
  z-index: 30;
  display: none;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(26px, -22px);
  }
}

@keyframes pulseGrid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(8px, -12px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 930px) {
  .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
  }

  .top-nav {
    display: none;
  }

  .brand {
    font-size: 2rem;
    line-height: 1;
  }

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

  .header-actions {
    gap: 0.45rem;
  }

  .header-actions .lang-switch {
    display: flex !important;
    transform: scale(0.92);
    transform-origin: right center;
  }

  .contact-wrap,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header .btn-sm {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 6rem;
  }
}

@media (max-width: 420px) {
  .header-actions .lang-switch {
    transform: scale(0.84);
  }
}

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

  .hero-glow,
  .route-grid {
    animation: none;
  }
}

.legal-page {
  background: linear-gradient(180deg, #071126 0%, #091730 45%, #081229 100%);
}

.legal-wrap {
  width: min(900px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
  background: rgba(17, 30, 57, 0.84);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.4rem;
}

.legal-wrap h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal-wrap h2 {
  font-size: 1.1rem;
  margin-top: 1.3rem;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--text-soft);
}

.legal-wrap ul {
  padding-left: 1.1rem;
}

.legal-updated {
  margin-top: 0;
  color: #d4ddf8;
}

.legal-back {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: #d8e3ff;
}

.guide-hero h1 {
  max-width: 22ch;
}

.guide-cta-panel {
  text-align: center;
}

.faq-grid .faq-card h3 {
  font-size: 1rem;
}
