:root {
  --ink: #14122b;
  --muted: #5e5872;
  --line: #e6e1f0;
  --soft: #f6f4fb;
  --magenta: #e436b4;
  --deep: #0c0618;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-weight: 400;
  line-height: 1.6;
}

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

a { color: #6d28d9; text-decoration: none; }
a:hover { color: var(--magenta); }

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.wrap.narrow { width: min(760px, calc(100% - 48px)); }

.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(8, 4, 20, 0.88) 0%, rgba(12, 6, 28, 0.62) 48%, rgba(18, 8, 36, 0.72) 100%),
    url("../img/bg.jpg") center 20% / cover no-repeat;
  overflow: hidden;
}

.topnav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 22px 40px;
}

.topnav.is-stuck {
  position: fixed;
  background: rgba(10, 6, 22, 0.92);
  backdrop-filter: blur(14px);
  padding-top: 14px;
  padding-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand img { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a:hover { color: #fff; }

.nav-cta {
  justify-self: end;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #fff;
  color: var(--deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 8px;
  background: #fff;
}

.hero-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 120px 0 110px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 28px;
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-fill,
.btn-ghost,
#sendMessageButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.btn-fill {
  background: #fff;
  color: var(--deep);
}

.btn-fill:hover { background: #f3e9ff; color: var(--deep); }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  display: block;
}

.phone {
  width: 320px;
  max-width: 100%;
  justify-self: end;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(180deg, #3a2468 0%, #12081f 42%);
  border: 3px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 520px;
  border-radius: 26px;
  background: #241046;
  overflow: hidden;
}

.phone-bar {
  padding: 14px 16px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.phone-who { font-size: 14px; font-weight: 600; }

.chat {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 12px 18px;
  scrollbar-width: none;
}

.chat::-webkit-scrollbar { display: none; }

.bubble {
  max-width: 86%;
  margin: 0 0 10px;
  padding: 8px 12px 6px;
  border-radius: 16px;
}

.bubble p { margin: 0; font-size: 14px; line-height: 1.4; color: inherit; }

.bubble time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.65;
}

.bubble.out {
  margin-left: auto;
  background: #fd3ec2;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble.in {
  margin-right: auto;
  background: #fff;
  color: #1a0b33;
  border-bottom-left-radius: 4px;
}

.bubble.preview { max-width: 92%; }

.bubble.preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-top: 8px;
  border-radius: 12px;
}

.approve {
  display: inline-flex;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  background: #14122b;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: default;
  transition: transform 0.15s ease, background 0.15s ease;
}

.approve.is-tapped {
  background: #168a52;
  transform: scale(0.96);
}

.typing {
  display: inline-flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
}

.typing[hidden] { display: none; }

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ab19fe;
  animation: typing-dot 1s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

.band { padding: 88px 0; }

.band-soft { background: var(--soft); }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pair-side {
  display: flex;
  align-items: center;
  background: var(--soft);
  padding: 88px 0;
}

.pair-side:first-child { justify-content: flex-end; }

.pair-copy { width: min(520px, 100%); }

.pair-side:first-child .pair-copy { padding: 0 56px 0 24px; }

.pair-exit {
  justify-content: flex-start;
  background: #0c0618;
  color: #fff;
}

.pair-exit .pair-copy { padding: 0 24px 0 56px; }

.kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
}

.band h2,
.pair h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.band p,
.pair p { margin: 0; color: var(--muted); font-size: 17px; }

.pair .pair-exit h2 { color: #fff; }

.pair .pair-exit p { color: rgba(255, 255, 255, 0.78); }

.card-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  grid-template-columns: repeat(3, 1fr);
}

.card-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px 24px;
}

.pico {
  width: 28px;
  height: 28px;
  display: block;
  color: var(--ink);
}

.pico * {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-grid .pico,
.price-grid .pico { margin-bottom: 16px; }

.price-grid .featured .pico { color: #fff; }

.card-grid h3,
.path h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.path {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  counter-reset: path;
}

.path li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 26px 22px;
  counter-increment: path;
}

.path .pico {
  position: absolute;
  top: 18px;
  right: 22px;
}

.path li::before {
  content: counter(path, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--magenta);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.cover-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.cover-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 600;
}

.agents {
  font-size: 22px !important;
  font-weight: 600;
  color: var(--ink) !important;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  align-items: stretch;
}

.price-grid article {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 26px 24px;
}

.price-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
}

.price {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price small,
.monthly {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.monthly { margin: 10px 0 0; }

.price-grid ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.price-grid li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.price-grid .featured {
  background: var(--deep);
  color: #fff;
  border-color: var(--deep);
}

.price-grid .featured .price,
.price-grid .featured h3 { color: #fff; }

.price-grid .featured .price small,
.price-grid .featured .monthly { color: rgba(255, 255, 255, 0.72); }

.price-grid .featured li { border-top-color: rgba(255, 255, 255, 0.16); }

.flag {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 12px;
  font-weight: 700;
}

.band .price-note {
  margin: 64px auto 0;
  max-width: 640px;
  text-align: center;
}

.refs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.refs li {
  background: var(--soft);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
}

.refs small {
  display: inline;
  margin-left: 6px;
  font-weight: 500;
  color: var(--muted);
}

.contact-split form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--soft);
  border-radius: 24px;
  padding: 28px;
}

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

#contactForm input,
#contactForm textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
}

#contactForm textarea { resize: vertical; }

#success { min-height: 24px; font-weight: 600; color: var(--ink); }

#sendMessageButton {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--deep);
  color: #fff;
}

#sendMessageButton:hover { background: #2a2148; }

.help-block { color: #b42318; font-size: 13px; }

footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 0;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
}

footer img { height: 26px; width: auto; }

footer p { margin: 0; font-size: 14px; line-height: 1.55; }

@media (max-width: 900px) {
  .topnav { grid-template-columns: 1fr auto; padding: 16px 20px; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 14px;
    padding: 8px 20px 20px;
    background: rgba(10, 6, 22, 0.96);
  }
  .nav-links.is-open { display: flex; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 110px;
    min-height: 0;
  }
  .phone { justify-self: center; }
  .phone-screen { height: 460px; }
  .card-grid,
  .path,
  .price-grid,
  .pair,
  .split,
  .fields { grid-template-columns: 1fr; }
  .band { padding: 64px 0; }
  .pair-side { justify-content: flex-start; padding: 64px 24px; }
  .pair-copy,
  .pair-side:first-child .pair-copy,
  .pair-exit .pair-copy { width: 100%; padding: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typing span { animation: none; }
}
