:root {
  --bg: #FAFAFC;
  --surface: #FFFFFF;
  --surface-2: #F4F2F8;
  --primary: #8B2BE2;
  --secondary: #5B0FA8;
  --text: #0D0D14;
  --text-muted: #6B6B85;
  --border: rgba(13,13,20,0.08);
  --border-strong: rgba(139,43,226,0.35);
  --shadow-sm: 0 1px 2px rgba(13,13,20,0.04), 0 4px 12px rgba(13,13,20,0.05);
  --shadow-md: 0 4px 16px rgba(13,13,20,0.06), 0 16px 40px -8px rgba(91,15,168,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 90px;
}

::selection { background: var(--primary); color: white; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAV ============ */
nav.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,252,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  height: 80px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(139,43,226,0.25));
}
@media (max-width: 480px) {
  .logo-mark { height: 65px; }
}
.logo > span.wordmark { display: none; }
.nav-links {
  display: none;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
}
@media (min-width: 800px) {
  .nav-links { display: flex; }
}
.nav-links a:hover { color: var(--text); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 24px rgba(139,43,226,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
  background: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(139,43,226,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(139,43,226,0.04); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(139,43,226,0.16), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 64px; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(139,43,226,0.08);
  border: 1px solid rgba(139,43,226,0.28);
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

h1.headline {
  margin-top: 24px;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.headline .grad {
  background: linear-gradient(90deg, #8B2BE2, #5B0FA8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

p.sub {
  margin-top: 24px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.secondary-link {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  transition: gap 0.2s ease;
}
.secondary-link:hover { gap: 10px; color: var(--primary); }

/* portrait */
.portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 20px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px -20px rgba(139,43,226,0.3), inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
  background: #EFEDF5;
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-corner {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--secondary);
  font-weight: 500;
}
.portrait-corner .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 8px rgba(22,163,74,0.6);
}

/* ============ STATS ============ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139,43,226,0.03), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  padding: 56px 0;
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
.stat {
  padding: 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.stat:last-child { border-bottom: none; }
@media (min-width: 720px) {
  .stat { border-bottom: none; border-right: 1px solid var(--border); }
  .stat:last-child { border-right: none; }
}
.stat-num {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #A05BE9, #8B2BE2 50%, #5B0FA8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-label {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

/* ============ TRUSTED BY STRIP ============ */
.trusted-strip {
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
}
.trusted-strip .lbl {
  text-align: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.trusted-strip .row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 36px;
  align-items: center;
  justify-items: center;
}
@media (min-width: 720px) { .trusted-strip .row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .trusted-strip .row { grid-template-columns: repeat(7, 1fr); gap: 24px; } }
.trusted-strip img {
  height: 30px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.5) contrast(1.1);
  opacity: 0.65;
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}
.trusted-strip img:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: scale(1.04);
}

/* ============ SECTIONS ============ */
section.block { padding: 110px 0; position: relative; }
.section-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
h2.section-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  max-width: 780px;
}
.section-intro {
  color: var(--text-muted);
  margin-top: 20px;
  font-size: 17px;
  max-width: 640px;
}

/* ============ FIX CARDS ============ */
.fix-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 56px;
}
@media (min-width: 760px) { .fix-grid { grid-template-columns: repeat(3, 1fr); } }

.fix-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 36px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.fix-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(139,43,226,0.45), transparent 55%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}
.fix-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fix-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139,43,226,0.14), rgba(91,15,168,0.06));
  border: 1px solid rgba(139,43,226,0.32);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.fix-icon svg { width: 26px; height: 26px; color: var(--primary); }
.fix-num {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}
.fix-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.fix-card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.about-text p { color: var(--text-muted); font-size: 17px; line-height: 1.7; margin-top: 24px; max-width: 520px; }
.about-photo {
  aspect-ratio: 4/5;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
  background: #EFEDF5;
  box-shadow: 0 30px 80px -20px rgba(139,43,226,0.25);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ TESTIMONIALS ============ */
.test-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 56px;
}
@media (min-width: 760px) { .test-grid { grid-template-columns: repeat(3, 1fr); } }
.test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
.stars { display: flex; gap: 4px; color: var(--primary); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.test-card blockquote {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.005em;
  font-weight: 500;
  text-wrap: pretty;
}
.test-card cite {
  font-style: normal;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.test-card cite::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--primary);
}

/* ============ FAQ ============ */
.faq-wrap { max-width: 820px; margin-top: 48px; }
details.faq {
  border-top: 1px solid var(--border);
  padding: 24px 4px;
}
details.faq:last-of-type { border-bottom: 1px solid var(--border); }
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: color 0.2s;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary:hover { color: var(--primary); }
details.faq summary .plus {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  transition: all 0.25s ease;
  color: var(--primary);
  font-size: 18px;
  line-height: 0;
}
details.faq[open] summary .plus { transform: rotate(45deg); background: var(--primary); color: white; border-color: var(--primary); }
details.faq .faq-body {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 14px;
  padding-right: 56px;
  max-width: 720px;
}

/* ============ FINAL CTA ============ */
.final-cta {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  text-align: center;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(139,43,226,0.18), transparent 60%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F4FE 100%);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 80px 32px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 40px 100px -30px rgba(139,43,226,0.3);
}
.final-cta h2 {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.final-cta p {
  color: var(--text-muted);
  font-size: 18px;
  margin: 22px auto 0;
  max-width: 540px;
  line-height: 1.55;
}
.final-cta .btn { margin-top: 36px; padding: 16px 28px; font-size: 16px; }

/* ============ FOOTER ============ */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
}
.foot-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 14px;
}
@media (min-width: 720px) { .foot-inner { flex-direction: row; align-items: center; } }
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: var(--text); }

/* ============ STICKY CTA ============ */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 20px 60px -10px rgba(139,43,226,0.32), 0 4px 12px rgba(13,13,20,0.06);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), opacity 0.4s ease;
  opacity: 0;
  max-width: calc(100vw - 32px);
}
.sticky-cta.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.sticky-cta-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sticky-cta-text .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(139,43,226,0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(139,43,226,0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(139,43,226,0); }
  100% { box-shadow: 0 0 0 0 rgba(139,43,226,0); }
}
@media (max-width: 560px) {
  .sticky-cta-text { display: none; }
  .sticky-cta { padding: 6px; }
}

@media (max-width: 480px) {
  .nav-cta-label { display: none; }
  .nav-inner { gap: 12px; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 200;
  width: calc(100vw - 48px);
  max-width: 680px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: 0 20px 60px -10px rgba(139,43,226,0.25), 0 4px 12px rgba(13,13,20,0.06);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), opacity 0.45s ease;
  opacity: 0;
}
.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.cookie-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
