:root {
  --bg: #070b14;
  --bg-soft: #0d1424;
  --surface: #111a2e;
  --text: #f2f6ff;
  --text-dim: #a7b2c9;
  --accent: #1d536d;
  --accent-2: #1a324a;
  --accent-3: #5da6c8;
  --gradient: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  --gradient-text: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 100%);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(3, 6, 16, .45);
  --header-h: 68px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

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

/* ============ Header ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(7, 11, 20, .9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.brand img { height: 12px; width: auto; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text-dim);
  font-size: 1rem;
  font-weight: 500;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--text); }

.header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29, 83, 109, .5); }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .12);
}
.lang-switch a {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .2s ease;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="true"] { color: var(--accent-3); }
.lang-sep { color: rgba(255, 255, 255, .25); font-size: .85rem; }
.lang-switch-mobile {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  margin-top: 16px;
}

.nav-toggle {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: var(--text);
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: rgba(7, 11, 20, .97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 20px 26px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 49;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-weight: 500;
}
.mobile-menu a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.mobile-menu .mobile-cta {
  margin-top: 10px;
  text-align: center;
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(29, 83, 109, .5); }
.btn-primary { background: var(--gradient); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  left: 0; right: 0;
  top: var(--header-h);
  bottom: 0;
  z-index: -2;
}
.hero-media img,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.hero-media video { opacity: 0; transition: opacity .9s ease; }
.hero-media.video-ready video { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(7, 11, 20, .46) 0%, rgba(7, 11, 20, .31) 45%, rgba(7, 11, 20, .18) 100%),
    linear-gradient(to bottom, rgba(7, 11, 20, .25) 0%, rgba(7, 11, 20, 0) 40%, var(--bg) 100%);
}
.hero-content {
  max-width: 940px;
  margin: 0 auto;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
}
.hero h1 {
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  color: #fff;
}
.hero h1 .grad { background: none; background-clip: initial; -webkit-background-clip: initial; -webkit-text-fill-color: currentColor; color: #fff; }
.hero p {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 8px;
  hyphens: none;
  overflow-wrap: normal;
  text-wrap: balance;
}
.nobreak { white-space: nowrap; }

/* Lead form */
.lead-form { margin: 26px auto 0; max-width: 600px; }
.lead-form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.lead-form-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lead-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lead-form input[type="email"]::placeholder { color: rgba(167, 178, 201, .7); }
.lead-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(29, 83, 109, .35);
}
.lead-form .btn { white-space: nowrap; }
.lead-form-success {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(29, 83, 109, .18);
  border: 1px solid rgba(29, 83, 109, .55);
  color: var(--accent-3);
  font-weight: 600;
}
.lead-form-error {
  display: none;
  margin-top: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: #f87171;
}
.lead-form.is-success .lead-form-label,
.lead-form.is-success .lead-form-row { display: none; }
.lead-form.is-success .lead-form-success { display: block; }
.lead-form.is-error .lead-form-error { display: block; }
.lead-form input.is-invalid { border-color: #ef4444; }
.lead-form input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-promises {
  list-style: none;
  margin: 22px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 600px;
}
.hero-promises li {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10.24px;
  color: var(--text-dim);
}
.hero-promises li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(29, 83, 109, .22);
  border: 1px solid rgba(29, 83, 109, .55);
  color: var(--accent-3);
  font-size: .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Sections ============ */
.section { padding: 84px 0; }
.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1d536d;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.5625rem, 4vw, 2.4414rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 14px;
}
.section-header p { color: var(--text-dim); font-size: 1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Benefits */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.feature-card {
  position: relative;
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: -150%;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(93, 166, 200, .95) 30deg,
    transparent 90deg,
    transparent 180deg,
    rgba(29, 83, 109, .95) 210deg,
    transparent 270deg,
    transparent 360deg
  );
  animation: feature-border-spin 14s linear infinite;
  will-change: transform;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: inherit;
  z-index: -1;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
}
@keyframes feature-border-spin {
  to { transform: rotate(360deg); }
}

html.reveal-enabled .feature-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease, box-shadow .3s ease;
}
html.reveal-enabled .feature-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
html.reveal-enabled .feature-card:nth-child(2) { transition-delay: .12s; }
html.reveal-enabled .feature-card:nth-child(3) { transition-delay: .24s; }

.feature-card:hover,
html.reveal-enabled .feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow);
}
.feature-icon {
  color: #fff;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(29, 83, 109, .2);
  border: 1px solid rgba(29, 83, 109, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-dim); font-size: 1rem; }

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: rgba(29, 83, 109, .6); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent-3);
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 20px 20px;
  color: var(--text-dim);
  font-size: 1rem;
}

/* CTA band */
.cta-band {
  border-radius: 24px;
  padding: 48px 28px 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: stretch;
  text-align: left;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -150%;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(93, 166, 200, .95) 30deg,
    transparent 90deg,
    transparent 180deg,
    rgba(29, 83, 109, .95) 210deg,
    transparent 270deg,
    transparent 360deg
  );
  animation: feature-border-spin 14s linear infinite;
  will-change: transform;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 1.5px;
  border-radius: inherit;
  z-index: -1;
  background:
    linear-gradient(135deg, #1d536d 0%, #1a324a 100%),
    radial-gradient(ellipse at top center, rgba(255, 255, 255, .12), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.5625rem, 4vw, 1.9531rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 520px; margin: 0 0 8px; }
.cta-band .lead-form { margin: 26px 0 0; }
.cta-band .lead-form-label { color: rgba(255, 255, 255, .9); }
.cta-band .lead-form input[type="email"] {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .3);
}
.cta-band .lead-form input[type="email"]::placeholder { color: rgba(255, 255, 255, .55); }
.cta-band .btn-primary { background: #fff; color: var(--bg); }
.cta-band .btn:hover,
.cta-band .btn-primary:hover { box-shadow: none; }
.cta-band-content { min-width: 0; padding-bottom: 44px; }
.cta-band-visual {
  display: flex;
  justify-content: center;
  align-items: stretch;
}
.cta-band-visual img {
  width: 100%;
  max-width: 280px;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 56px 0 40px;
}
.site-footer .brand img { height: 11px; }
.footer-top {
  display: grid;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-brand p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 320px;
  margin-top: 16px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #5a6478;
  margin-bottom: 4px;
}
.footer-col a { color: var(--text-dim); font-size: 1rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 28px;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--text-dim);
  font-size: 1rem;
}
.footer-social a { color: var(--text-dim); transition: color .2s ease; }
.footer-social a:hover { color: var(--text); }
.footer-bottom small { color: #5a6478; font-size: 0.8rem; }

/* ============ Legal pages ============ */
.legal-page {
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
}
.legal {
  max-width: 780px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.legal-updated {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 44px 0 12px;
}
.legal h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--accent-3);
}
.legal p {
  color: var(--text-dim);
  margin-bottom: 12px;
}
.legal ul {
  color: var(--text-dim);
  margin: 0 0 12px;
  padding-left: 22px;
  display: grid;
  gap: 6px;
}
.legal li::marker { color: var(--accent-3); }
.legal a { color: var(--accent-3); text-decoration: underline; }

/* ============ Media queries ============ */
@media (min-width: 640px) {
  .lead-form-row { flex-direction: row; align-items: stretch; }
  .lead-form .btn { flex-shrink: 0; }
}

@media (min-width: 768px) {
  .brand img { height: 16px; }
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .hero h1 { white-space: nowrap; font-size: clamp(1.85rem, 4.7vw, 3.0518rem); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-band { grid-template-columns: minmax(0, 1fr) auto; gap: 44px; padding: 56px 48px 0; }
  .cta-band-content { padding: 0 0 56px; }
  .cta-band-visual img { max-width: 360px; min-height: initial; }
  .footer-top { grid-template-columns: 1.2fr 2fr; align-items: start; }
  .footer-cols { justify-items: start; justify-content: start; max-width: 640px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .header-cta { display: inline-flex; }
  .hero-promises { flex-direction: row; flex-wrap: nowrap; gap: 18px; max-width: 700px; justify-content: center; }
}

@media (min-width: 1280px) {
  :root { --container: 1240px; }
  .section { padding: 100px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-media video { opacity: 0; }
  .hero-media.video-ready video { position: static; opacity: 0; }
}