/* ---------- tokens ---------- */
:root {
  --ink: #0b1220;
  --ink-soft: #55617c;
  --ink-faint: #8a94ab;
  --bg: #ffffff;
  --bg-soft: #f5f7fc;
  --bg-deep: #0a0f1f;
  --accent: #2f5bff;
  --accent-2: #6a4dff;
  --accent-ink: #ffffff;
  --accent-soft: #eaf0ff;
  --gold: #f4b23e;
  --green: #0e9f6e;
  --red: #d92d20;
  --border: #e4e9f2;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 10px rgba(11, 18, 32, 0.06);
  --shadow: 0 16px 40px rgba(11, 18, 32, 0.1);
  --shadow-lg: 0 30px 70px rgba(11, 18, 32, 0.16);
  --glow: 0 10px 30px rgba(47, 91, 255, 0.35);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #fff; }

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); }

.container { width: min(1120px, 92%); margin-inline: auto; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.nav.scrolled { background: rgba(255, 255, 255, 0.96); box-shadow: 0 8px 30px rgba(11, 18, 32, 0.08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-dot {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.94rem;
  position: relative;
  padding-block: 6px;
  transition: color 0.2s ease;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-links a:not(.btn):hover, .nav-links a:not(.btn):focus-visible { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a:not(.btn):focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, #3b6bff 0%, #2f5bff 55%, #5a4bff 100%);
  background-size: 160% 160%;
  background-position: 0% 50%;
  color: var(--accent-ink);
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(47, 91, 255, 0.48); background-position: 100% 50%; }
.btn-primary:disabled, .btn-primary.loading { background: #a9bdf7; box-shadow: none; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.42); }

.btn.loading::after {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 700px at 82% -12%, rgba(47, 91, 255, 0.3), transparent 62%),
    radial-gradient(900px 600px at -8% 115%, rgba(244, 178, 62, 0.14), transparent 55%),
    linear-gradient(180deg, #070c1d 0%, #0c1531 100%);
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 141, 255, 0.5), transparent);
}
.hero-fx { position: absolute; inset: 0; pointer-events: none; }
.hero-gridlines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.orb-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle at 35% 35%, rgba(74, 120, 255, 0.35), transparent 65%);
  animation: drift-1 26s ease-in-out infinite alternate;
}
.orb-2 {
  width: 440px;
  height: 440px;
  bottom: -160px;
  left: -130px;
  background: radial-gradient(circle at 60% 40%, rgba(244, 178, 62, 0.15), transparent 65%);
  animation: drift-2 32s ease-in-out infinite alternate;
}
@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-60px, 40px, 0) scale(1.12); }
}
@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(50px, -50px, 0) scale(1.1); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 56px; } }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero .eyebrow { color: #8faeff; }
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, #8fb0ff, #6d8bff 55%, #a78bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(90, 120, 255, 0.4));
}
.hero-sub {
  font-size: 1.08rem;
  color: rgba(222, 230, 255, 0.78);
  margin: 0 0 28px;
  max-width: 52ch;
}

.hero-checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 13px; }
.hero-checks li { display: flex; gap: 12px; align-items: flex-start; color: #eef2ff; font-weight: 500; }
.check-ic {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 3px;
  display: grid;
  place-items: center;
  color: #a7c0ff;
  background: rgba(47, 91, 255, 0.22);
  border: 1px solid rgba(122, 152, 255, 0.35);
}

.hero-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-note { color: rgba(190, 203, 235, 0.72); font-size: 0.9rem; }

/* ---------- hero visual ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 460px;
  height: 460px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47, 91, 255, 0.26), transparent 65%);
  pointer-events: none;
}

/* invoice-chaser mockup card */
.invoice-card {
  position: relative;
  width: min(360px, 100%);
  z-index: 1;
  background: linear-gradient(180deg, #101a38, #0b1329);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 60px rgba(47, 91, 255, 0.18);
  transform: rotate(2deg);
  animation: phone-in 1s cubic-bezier(0.22, 1, 0.36, 1) both 0.15s;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.invoice-card.show { opacity: 1; transform: rotate(2deg); }
@keyframes phone-in {
  from { opacity: 0; transform: rotate(2deg) translateY(30px) scale(0.96); }
  to { opacity: 1; transform: rotate(2deg) translateY(0) scale(1); }
}
.invoice-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.invoice-title { color: #fff; font-weight: 700; font-size: 0.98rem; }
.invoice-amount {
  font-weight: 800;
  font-size: 1.35rem;
  background: linear-gradient(135deg, #8fb0ff, #a78bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.invoice-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 8px; color: #e8edfb; }
.invoice-row span { color: #7d8cb8; }
.invoice-row .bad { color: #f4b23e; font-weight: 600; }
.invoice-divider { border-top: 1px dashed rgba(255, 255, 255, 0.18); margin: 18px 0; }
.chaser-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #8faeff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bubble {
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 88%;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.bubble.show { opacity: 1; transform: none; }
.bubble.out { background: linear-gradient(135deg, #3b6bff, #2f5bff); color: #fff; border-bottom-right-radius: 4px; margin-left: auto; }
.bubble.typing { background: rgba(47, 91, 255, 0.22); padding: 14px 16px; width: fit-content; }
.typing i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9db8ff;
  margin: 0 2px;
  animation: dot-bounce 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #fff;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.badge {
  display: inline-block;
  margin-top: 6px;
  background: linear-gradient(135deg, #12b582, #0e9f6e);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(14, 159, 110, 0.4);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.badge.show { opacity: 1; transform: none; }
.badge strong { font-weight: 800; }

.toast {
  position: absolute;
  top: 150px;
  left: -52px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  animation: toast-bob 6s ease-in-out 2s infinite;
}
.toast.show { opacity: 1; transform: translateY(0); }
@keyframes toast-bob {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}
.toast-ic {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
}
.toast-body { display: grid; gap: 1px; }
.toast-body strong { font-size: 0.88rem; }
.toast-body span { color: var(--ink-soft); font-size: 0.78rem; }

/* ---------- stats ---------- */
.stats {
  position: relative;
  background: linear-gradient(180deg, #f3f6ff 0%, #edf2ff 100%);
  border-block: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-block: 52px;
  text-align: center;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat strong {
  display: inline;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #2f5bff, #6a4dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--ink-soft); font-size: 0.92rem; display: block; margin-top: 4px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: linear-gradient(180deg, #f5f7fc, #eef2fb); }
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin: 0 0 48px; max-width: 60ch; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(47, 91, 255, 0.35); }
.step::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.step:hover::after { transform: scaleX(1); }
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b6bff, #6a4dff);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px rgba(47, 91, 255, 0.3);
}
.step h3 { margin: 0 0 8px; font-size: 1.06rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* pipeline */
.pipeline { margin-top: 88px; }
.pipeline-title { font-size: clamp(1.35rem, 2.4vw, 1.8rem); letter-spacing: -0.02em; margin: 0 0 8px; }
.pipeline-sub { color: var(--ink-soft); font-size: 1rem; margin: 0 0 44px; max-width: 58ch; }

.pipeline-flow {
  position: relative;
  container-type: inline-size;
  margin-top: 8px;
}
.pipeline-line {
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(47, 91, 255, 0) 0%, rgba(47, 91, 255, 0.55) 18%, rgba(47, 91, 255, 0.55) 82%, rgba(47, 91, 255, 0) 100%);
  overflow: visible;
}
.pipeline-line::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  opacity: 0.8;
  animation: line-sweep 2.4s ease-in-out infinite;
}
@keyframes line-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(calc(100cqw + 100%)); }
}

.pnodes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pnode {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.pipeline.live .pnode { opacity: 1; transform: none; }
.picon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 14px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.pnode:hover .picon { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(47, 91, 255, 0.4); }
.picon svg { width: 28px; height: 28px; }
.pnode h4 { margin: 0 0 4px; font-size: 0.98rem; letter-spacing: -0.01em; }
.pnode .ptag { color: var(--ink-faint); font-size: 0.8rem; }
.ptimer-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.packet {
  position: absolute;
  top: 29px;
  left: 0;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.18), 0 2px 6px rgba(47, 91, 255, 0.4);
  animation: packet-flow 7s linear infinite;
  animation-play-state: paused;
}
.pipeline.live .packet { animation-play-state: running; }
.packet.p1 { animation-delay: 0s; }
.packet.p2 { animation-delay: 1.75s; }
.packet.p3 { animation-delay: 3.5s; }
.packet.p4 { animation-delay: 5.25s; }
@keyframes packet-flow {
  from { transform: translateX(-16px); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  to { transform: translateX(calc(100cqw - 2px)); opacity: 0; }
}
@supports not (container-type: inline-size) {
  @keyframes packet-flow {
    from { left: -16px; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    to { left: 100%; opacity: 0; }
  }
}

@media (max-width: 860px) {
  .pnodes { grid-template-columns: 1fr; gap: 26px; }
  .pnode { flex-direction: row; text-align: left; gap: 18px; align-items: center; justify-content: flex-start; }
  .picon { margin-bottom: 0; flex-shrink: 0; width: 56px; height: 56px; }
  .pnode h4 { margin: 0 0 2px; }
  .ptimer-chip { margin-top: 6px; }
  .pipeline-line {
    left: 28px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(47, 91, 255, 0) 0%, rgba(47, 91, 255, 0.55) 10%, rgba(47, 91, 255, 0.55) 90%, rgba(47, 91, 255, 0) 100%);
  }
  .pipeline-line::after { width: 100%; height: 34%; top: auto; bottom: 0; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.7), transparent); animation: line-sweep-v 2.4s ease-in-out infinite; }
  .packet { display: none; }
}
@keyframes line-sweep-v {
  from { transform: translateY(calc(-100% - 100cqw)); }
  to { transform: translateY(calc(100cqw + 100%)); }
}

/* offer card */
.offer-card {
  position: relative;
  overflow: hidden;
  max-width: 660px;
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow);
}
.offer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
}
.offer-head h3 { margin: 0 0 6px; font-size: 1.55rem; letter-spacing: -0.02em; }
.offer-head p { margin: 0; color: var(--ink-soft); }
.offer-price { margin: 26px 0; padding: 24px 0; border-block: 1px solid var(--border); display: grid; gap: 2px; }
.offer-price strong {
  font-size: 2rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #2f5bff, #6a4dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.offer-price span { color: var(--ink-soft); }
.offer-price .plus { color: var(--gold); font-weight: 800; font-size: 1.3rem; margin: 8px 0; }
.offer-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.offer-list li { position: relative; padding-left: 30px; }
.offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.offer-foot { color: var(--ink-soft); font-size: 0.9rem; margin: 16px 0 0; }

/* forms */
.form-card {
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px;
  box-shadow: var(--shadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-card:focus-within {
  border-color: rgba(47, 91, 255, 0.35);
  box-shadow: var(--shadow), 0 0 0 4px rgba(47, 91, 255, 0.07);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.96rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:hover, select:hover, textarea:hover { border-color: #c9d3e6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.12);
}
textarea { resize: vertical; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--red); background: #fffafa; }
.field-error input:focus, .field-error select:focus, .field-error textarea:focus { box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1); }
.err-msg { display: block; color: var(--red); font-size: 0.82rem; font-weight: 500; margin-top: 6px; }
.form-status { min-height: 24px; font-weight: 600; margin: 16px 0 0; font-size: 0.95rem; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.form-legal { color: var(--ink-faint); font-size: 0.8rem; margin: 14px 0 0; }

/* faq */
.faq { max-width: 740px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq details:hover { border-color: rgba(47, 91, 255, 0.3); }
.faq details[open] { border-color: rgba(47, 91, 255, 0.35); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  font-weight: 600;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(2px); }
.faq p { color: var(--ink-soft); margin: 0 0 18px; }

/* footer */
.footer {
  position: relative;
  background: var(--bg-deep);
  color: #b7c3e0;
  padding: 56px 0 40px;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(47, 91, 255, 0.6), rgba(244, 178, 62, 0.4), transparent);
}
.footer .logo { color: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.footer-tag { color: #8b98c0; margin: 8px 0 0; }
.footer-links { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-legal { width: 100%; color: #66739b; font-size: 0.82rem; margin: 24px 0 0; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* no-JS fallback: everything visible */
.no-js .reveal, .no-js .bubble, .no-js .badge, .no-js .toast, .no-js .invoice-card { opacity: 1; transform: none; }

/* ---------- mobile nav ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 4vw 20px;
    box-shadow: 0 20px 40px rgba(11, 18, 32, 0.12);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 8px; font-size: 1rem; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .orb, .packet, .typing i, .live-dot, .toast { display: none !important; }
}
