:root {
  --navy-900: #071526;
  --navy-800: #0B1F38;
  --navy-700: #0F2A4A;
  --navy-600: #16385F;
  --lime: #8CC63F;
  --teal: #1FA9A0;
  --blue: #1B5FAA;
  --text: #F2F6FA;
  --muted: #A9B4C2;
  --line: rgba(255, 255, 255, .1);
  --grad: linear-gradient(90deg, var(--lime), var(--teal) 50%, #3D8BEA);
  --radius: 18px;
  --wrap: 1180px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy-800);
  color: var(--text);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; font: 600 .78rem/1 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase; color: var(--lime);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1 var(--font-head); text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 10px 30px -10px rgba(31, 169, 160, .8); }
.btn--primary:hover { background: #22bdb2; box-shadow: 0 14px 34px -10px rgba(31, 169, 160, .95); }
.btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(7, 21, 38, .85); backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { width: min(var(--wrap), 100% - 32px); margin-inline: auto; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__icon { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand__word { font: 800 1.2rem/1 var(--font-head); letter-spacing: .04em; }
.brand__word b { color: var(--teal); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; color: #DCE4EE; }
.nav__links a:not(.btn):hover { color: #fff; }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: grid; gap: 5px; place-content: center; width: 48px; height: 48px;
    background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px; background: rgba(7, 21, 38, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 16px; min-height: 52px; }
}

/* Scroll-driven hero */
.scrolly { position: relative; height: 420vh; background: var(--navy-900); }
.scrolly__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrolly__canvas { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--navy-900) url("assets/hero_start.webp") center/cover no-repeat; }
.scrolly__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(7, 21, 38, .55), rgba(7, 21, 38, .15) 70%),
    linear-gradient(180deg, rgba(7, 21, 38, .6) 0%, rgba(7, 21, 38, 0) 22%, rgba(7, 21, 38, 0) 65%, rgba(7, 21, 38, .85) 100%);
}
.scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 96px 20px 80px; max-width: 980px; margin-inline: auto;
  opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.scene.is-active { opacity: 1; transform: none; pointer-events: auto; }
.scene h1, .scene h2, .scene .lead { text-shadow: 0 2px 24px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .6); }
.scene .eyebrow { padding: 8px 14px; border-radius: 999px; background: rgba(7, 21, 38, .72); border: 1px solid rgba(140, 198, 63, .35); }
.scene .grad { text-shadow: none; filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .7)); background-image: linear-gradient(90deg, #A6E05A, #2FD1C4 55%, #6FB0FF); }
.scene .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #E6EDF5; max-width: 640px; }
.scene .cta-row { justify-content: center; }
.scene__title { font-size: clamp(2rem, 5vw, 3.8rem); }
.scene--3 { justify-content: flex-end; padding-bottom: 14vh; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 760px; }
.chips li {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  background: rgba(7, 21, 38, .6); border: 1px solid rgba(140, 198, 63, .45); backdrop-filter: blur(8px);
}
.scrolly__hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: #CFD8E3; transition: opacity .3s;
}
.scrolly__hint span { width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px; position: relative; }
.scrolly__hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(12px); } }
.scrolly__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.scrolly__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }

@media (max-width: 767px) {
  .scrolly { height: 340vh; }
  .scene { padding: 88px 16px 72px; }
  .scene .cta-row { flex-direction: column; width: 100%; max-width: 360px; }
  .scene .btn { width: 100%; }
  .chips li { font-size: .9rem; padding: 9px 14px; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--alt { background: linear-gradient(180deg, var(--navy-700), var(--navy-800)); }
.section__head { max-width: 760px; margin-bottom: 48px; }
.section__head .muted { font-size: 1.1rem; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(31,169,160,.6); box-shadow: 0 24px 48px -24px rgba(31,169,160,.5); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); flex: 1; }
.link { color: var(--lime); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.layer {
  display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; border-radius: var(--radius);
  background: rgba(7, 21, 38, .55); border: 1px solid var(--line); border-left: 5px solid;
}
.layer h3 { margin-bottom: .3em; }
.layer p { margin: 0; color: var(--muted); }
.layer__tag { font: 800 1.1rem/1 var(--font-head); padding-top: 4px; }
.layer--1 { border-left-color: var(--lime); } .layer--1 .layer__tag { color: var(--lime); }
.layer--2 { border-left-color: var(--teal); margin-left: 24px; } .layer--2 .layer__tag { color: var(--teal); }
.layer--3 { border-left-color: #3D8BEA; margin-left: 48px; } .layer--3 .layer__tag { color: #5A9EF0; }
@media (max-width: 640px) { .layer--2, .layer--3 { margin-left: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 28px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.stat b { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1.1 var(--font-head); }
.stat:nth-child(1) b { color: var(--lime); } .stat:nth-child(2) b { color: var(--teal); }
.stat:nth-child(3) b { color: #5A9EF0; } .stat:nth-child(4) b { color: var(--lime); }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.step { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.step p { color: var(--muted); margin: 0; }
.step__n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  font: 800 1.2rem/1 var(--font-head); color: var(--navy-900); background: var(--grad);
}

.guarantee {
  display: flex; gap: 28px; align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 24px;
  background: linear-gradient(120deg, rgba(140,198,63,.14), rgba(31,169,160,.14) 50%, rgba(27,95,170,.2));
  border: 1px solid rgba(31,169,160,.4);
}
.guarantee svg { width: 88px; height: 88px; flex: none; border-radius: 22px; }
.guarantee h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.guarantee p { margin: 0; color: #DCE4EE; font-size: 1.08rem; }
@media (max-width: 600px) { .guarantee { flex-direction: column; text-align: center; } }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(7,21,38,.5); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem/1 var(--font-body); color: var(--teal); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.contact { overflow: hidden; }
.contact__bg {
  position: absolute; inset: 0; opacity: .5;
  background:
    linear-gradient(90deg, var(--navy-800) 0%, rgba(11, 31, 56, .92) 40%, rgba(11, 31, 56, .55) 100%),
    url("assets/hero_end.webp") center/cover no-repeat;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.contact .wrap { position: relative; }
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact__list a { color: var(--lime); font-weight: 600; }

.form {
  display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); border-radius: 22px;
  background: rgba(7, 21, 38, .88); border: 1px solid var(--line); backdrop-filter: blur(12px);
}
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff;
  font: 400 1rem/1.4 var(--font-body);
}
.form select option { background: var(--navy-800); }
.form input::placeholder, .form textarea::placeholder { color: #8796A8; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,169,160,.3); }
.form [aria-invalid="true"] { border-color: #F07A6A; }
.form__msg { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--lime); }
.form__msg.is-error { color: #F7A094; }

.footer { border-top: 1px solid var(--line); padding: 40px 0 96px; background: var(--navy-900); }
.footer__inner { display: grid; gap: 10px; justify-items: center; text-align: center; }
.footer p { margin: 0; }

.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .scene { transition: none; }
  .scrolly__hint span::after { animation: none; }
}
