:root {
  --bg-1: #050b1d;
  --bg-2: #10234f;
  --bg-3: #1b4f86;
  --text: #eef6ff;
  --muted: #c2d4ec;
  --card: rgba(10, 22, 54, 0.76);
  --line: rgba(167, 218, 255, 0.22);
  --glow: #79d9ff;
  --accent: #b8f3ff;
  --shadow: 0 14px 34px rgba(2, 6, 20, 0.42);
  --radius: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background-color: var(--bg-1);
  background-image:
    radial-gradient(circle at 14% 18%, rgba(99, 160, 255, 0.34) 0%, transparent 43%),
    radial-gradient(circle at 86% 16%, rgba(114, 241, 255, 0.22) 0%, transparent 37%),
    linear-gradient(165deg, rgba(5, 11, 29, 0.95), rgba(12, 31, 73, 0.9) 55%, rgba(27, 79, 134, 0.86)),
    linear-gradient(rgba(5, 11, 29, 0.68), rgba(5, 11, 29, 0.68)),
    url("assets/background.jpg");
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-size: auto, auto, auto, auto, 680px 680px;
  background-position: center top, center top, center top, center, center;
  background-blend-mode: normal, normal, normal, normal, soft-light;
  min-height: 100vh;
  padding-bottom: 0;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 22% 76%, rgba(159, 219, 255, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(120, 199, 255, 0.08) 0%, transparent 34%);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
p { margin: 0 0 .9rem; color: var(--muted); }

.container { width: min(100% - 1.2rem, 1080px); margin-inline: auto; }
.section { padding: 3.3rem 0; }
.section--soft { background: rgba(7, 16, 40, 0.42); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.skip-link {
  position: absolute; top: -40px; left: 8px; z-index: 99;
  background: #fff; color: #111; padding: 8px 12px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(6, 15, 39, 0.76);
  border-bottom: 1px solid var(--line);
}

.nav { display: flex; align-items: center; gap: .8rem; min-height: 62px; padding: .45rem 0; }
.nav__brand {
  font-size: clamp(1.08rem, 2.9vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  padding: .2rem 0;
  background: linear-gradient(135deg, #dff7ff 0%, #9feeff 45%, #7dd9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(137, 222, 255, 0.22);
}
.nav__brand:hover,
.nav__brand:focus-visible {
  filter: brightness(1.08);
}
.nav__cta { margin-left: auto; }

.btn {
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: .72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(135deg, #68d3ff, #9ff7e5);
  color: #052235; border: 0;
  box-shadow: 0 10px 25px rgba(107, 221, 255, .38);
}
.btn--ghost { background: rgba(255, 255, 255, 0.06); }
.btn--small { padding: .5rem .75rem; font-size: .92rem; }

.hero { padding-top: 3.8rem; position: relative; overflow: hidden; }
.hero__grid { display: grid; gap: 1.4rem; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .09em; }
.hero__title { font-size: clamp(2rem, 8vw, 3.3rem); }
.hero__subtitle { font-size: 1.05rem; max-width: 35ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.05rem 0; }
.trust-list {
  display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: .9rem 0 0;
}
.trust-list li {
  padding: .32rem .65rem; border-radius: 999px;
  border: 1px solid var(--line); color: #def1ff; background: rgba(134, 204, 255, .08);
  font-size: .87rem;
}

.hero__mockup-wrap {
  position: relative; min-height: 290px;
  display: grid; place-items: center;
}
.hero__glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 230, 255, .48) 0%, rgba(120, 230, 255, 0) 72%);
  filter: blur(8px);
}
.phone-mockup {
  width: 180px; height: 340px; border-radius: 32px;
  padding: 10px; background: linear-gradient(180deg, #102252, #08122e);
  border: 1px solid rgba(165, 228, 255, .34); box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.phone-mockup__screen {
  width: 100%; height: 100%; border-radius: 22px;
  background: linear-gradient(180deg, rgba(143,227,255,.08), rgba(143,227,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden;
}
.knot {
  position: absolute; border: 2px solid rgba(143,227,255,.8); border-radius: 100%;
}
.knot--a { width: 80px; height: 80px; top: 48px; left: 44px; }
.knot--b { width: 58px; height: 58px; top: 120px; left: 18px; }
.knot--c { width: 70px; height: 70px; top: 174px; right: 20px; }

.cards, .pricing-grid {
  display: grid; gap: .85rem;
  grid-template-columns: 1fr;
}
.card, .price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}
.price-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 26, 0.18) 0%, rgba(4, 10, 26, 0.62) 55%, rgba(4, 10, 26, 0.9) 100%);
  z-index: 0;
}
.price-card > * {
  position: relative;
  z-index: 1;
}
.price-card h3 { color: #f4fbff; margin-bottom: .2rem; }
.price-card p { color: #d8eaff; margin-bottom: .45rem; }
.price-card strong {
  font-size: 1.2rem;
  color: #b6f4ff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  margin-top: auto;
  margin-bottom: 0;
}
.price-card--rain {
  background: center / cover no-repeat url("assets/rain.jpg");
}
.price-card--fire {
  background: center / cover no-repeat url("assets/fire.jpg");
}
.price-card--waves {
  background: center / cover no-repeat url("assets/waves.jpg");
}
.price-card--underwater {
  background: center / cover no-repeat url("assets/underwater.jpg");
}

.steps {
  margin: 0; padding-left: 1.2rem;
  display: grid; gap: .45rem;
}
.steps li { color: #d7e6ff; }

.carousel {
  display: grid;
  gap: .7rem;
  justify-items: center;
}
.carousel__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(210, 234, 255, 0.35);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.carousel__dot:hover,
.carousel__dot:focus-visible {
  background: rgba(210, 234, 255, 0.72);
  transform: scale(1.08);
}
.carousel__dot.is-active {
  background: #9feeff;
  box-shadow: 0 0 0 5px rgba(159, 238, 255, 0.18);
}
.carousel__viewport {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(173, 230, 255, 0.35);
  background: rgba(6,9,26,.55);
  width: min(100%, 340px);
  aspect-ratio: 9 / 19;
  justify-self: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 0 5px rgba(148, 220, 255, 0.06);
}
.carousel__track { display: flex; transition: transform .35s ease; will-change: transform; touch-action: pan-y; }
.carousel__slide { min-width: 100%; flex: 0 0 100%; margin: 0; }
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  background: linear-gradient(120deg, #22356f, #17244c);
}

.faq { display: grid; gap: .75rem; }
.faq__item {
  border: 1px solid rgba(167, 218, 255, 0.28);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 36, 84, 0.78), rgba(10, 23, 55, 0.72));
  box-shadow: 0 10px 22px rgba(3, 8, 24, 0.3);
}
.faq__question {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  text-align: left;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 1rem 3rem 1rem .95rem;
  font-weight: 700;
  font-size: .98rem;
}
.faq__question::after {
  content: "";
  position: absolute;
  right: .95rem;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(146, 218, 255, 0.18);
}
.faq__question::before {
  content: "";
  position: absolute;
  right: .95rem;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  background:
    linear-gradient(#dff6ff, #dff6ff) center / 10px 2px no-repeat,
    linear-gradient(#dff6ff, #dff6ff) center / 2px 10px no-repeat;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.faq__question[aria-expanded="true"]::after {
  background: rgba(159, 238, 255, 0.3);
}
.faq__question[aria-expanded="true"]::before {
  background:
    linear-gradient(#dff6ff, #dff6ff) center / 10px 2px no-repeat;
}
.faq__question:focus-visible {
  background: rgba(140, 216, 255, 0.08);
}
.faq__answer {
  padding: 0 .95rem 1rem;
  color: var(--muted);
  border-top: 1px solid rgba(167, 218, 255, 0.16);
}
.faq__answer p { margin: .75rem 0 0; }

form {
  display: grid; gap: .6rem;
  max-width: 620px;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
input, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: .7rem .8rem;
}
input:focus, textarea:focus, button:focus, a:focus {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .65rem .3rem;
  margin-bottom: .45rem;
  border-top: 1px solid var(--line);
}
.legal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: .35rem .1rem;
  margin: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}

.site-footer { padding: 1rem 0 1.2rem; text-align: center; color: var(--muted); }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none;
  align-items: center; justify-content: center; padding: 1rem; z-index: 70;
}
.modal__dialog {
  width: min(100%, 520px);
  background: #0c1d49;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
.no-scroll { overflow: hidden; }

.toast-root {
  position: fixed; right: .7rem; bottom: 12px; z-index: 80;
  display: grid; gap: .45rem;
}
.toast {
  padding: .62rem .8rem; border-radius: 10px; color: #081931;
  background: #9ee6ff; box-shadow: var(--shadow);
}
.toast--error { background: #ffb3bd; }
.toast--info { background: #c9d5ff; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.hero__content > * { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.is-ready .hero__content > * { opacity: 1; transform: translateY(0); }
.is-ready .hero__content > *:nth-child(2) { transition-delay: .06s; }
.is-ready .hero__content > *:nth-child(3) { transition-delay: .11s; }
.is-ready .hero__content > *:nth-child(4) { transition-delay: .16s; }

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

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .nav { padding: 0; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .cards, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel__viewport { width: min(100%, 380px); }
  .site-footer { padding-bottom: 1.2rem; }
  .toast-root { bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
