@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fafbff;
  color: #0b1020;
}
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
img, svg { display: block; max-width: 100%; }

.font-display, .logo-text, .hero-title, .section-title, .card-title, .compare-title,
.finder-question, .finder-result-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.App { min-height: 100vh; background: #fafbff; }

button:focus-visible, a:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: 2px;
  border-radius: 10px;
}

.smooth,
.nav-link, .btn-dark, .mobile-toggle, .card, .card-link, .btn-emerald,
.footer-chip, .footer-links a, .faq-item, .faq-chev, .btn-ghost {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, opacity .2s ease;
}

.text-ultra {
  background: linear-gradient(90deg, #10b981, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 251, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e7eaf3;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; align-items: baseline; gap: 2px; }
.logo-py, .logo-mutator { font-size: 19px; font-weight: 700; }
.logo-py { color: #0b1020; }
.logo-py-light { color: #fff; }

.nav { display: none; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #4a5167;
  padding: 8px 12px;
}
.nav-link:hover { color: #0b1020; }

.header-cta { display: none; align-items: center; gap: 8px; }

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b1020;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
}
.btn-dark:hover { background: #131a2f; }
.btn-small { padding: 8px 16px; }

.mobile-toggle {
  padding: 8px;
  border-radius: 8px;
}
.mobile-toggle:hover { background: #eceef6; }
.mobile-toggle svg { width: 20px; height: 20px; }

.mobile-menu {
  display: none;
  border-top: 1px solid #e7eaf3;
  background: #fff;
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-link { padding: 8px 0; font-size: 15px; font-weight: 600; color: #4a5167; }
.mobile-cta {
  margin-top: 8px;
  display: inline-flex;
  justify-content: center;
  padding: 10px 0;
  background: #0b1020;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-light {
  background:
    radial-gradient(800px 420px at 80% 15%, rgba(16,185,129,0.18), transparent 60%),
    radial-gradient(700px 500px at 15% 85%, rgba(99,102,241,0.18), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-bg-light {
  background-image:
    linear-gradient(rgba(11,16,32,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,16,32,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 64px;
}
.hero-content { max-width: 720px; margin: 0 auto; text-align: center; }
.hero-title {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
  color: #0b1020;
}
.hero-text {
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #4a5167;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .hero-title { font-size: 52px; } }
@media (min-width: 1024px) { .hero-title { font-size: 60px; } }
@media (min-width: 768px) {
  .hero-inner { padding-top: 80px; padding-bottom: 80px; }
  .hero-text { font-size: 17px; }
}

/* ---------- Section shared ---------- */
.section-title {
  font-size: 32px;
  font-weight: 700;
  color: #0b1020;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-sub { margin-top: 12px; color: #4a5167; font-size: 16px; }
@media (min-width: 768px) { .section-title { font-size: 42px; } }

/* ---------- Products ---------- */
.products { padding: 64px 0; }
.products-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.products-head { max-width: 720px; margin: 0 auto; text-align: center; }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
  align-items: stretch;
}
@media (min-width: 1024px) { .cards-grid { grid-template-columns: 1fr 1fr; } }

.card {
  position: relative;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); }

.card-lite {
  background: #fff;
  border: 1px solid #e7eaf3;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
}
.card-lite:hover { box-shadow: 0 8px 28px rgba(16, 24, 40, 0.07), 0 2px 6px rgba(16, 24, 40, 0.04); }

.ultra-ring {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, #10b981, #6366f1 50%, #8b5cf6) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.07), 0 2px 6px rgba(16, 24, 40, 0.04);
}

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon-lite { background: #e6fff5; }
.card-icon-ultra { background: linear-gradient(135deg, #10b981, #6366f1); }
.card-eyebrow { font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.16em; }
.card-title { font-size: 26px; font-weight: 700; color: #0b1020; line-height: 1; margin-top: 2px; }

.card-desc { color: #4a5167; font-size: 15px; margin-bottom: 24px; }
.card-desc b { color: #0b1020; }

.card-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.card-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: #2b3142; }
.card-list li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; stroke: #10b981; }

.card-badges {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  margin-top: 8px;
  border-top: 1px solid #eef1f7;
}
.card-badge { display: flex; align-items: center; gap: 6px; }
.card-badge img { width: 16px; height: 16px; object-fit: contain; flex-shrink: 0; }
.card-badge span { font-size: 12px; color: #6b7280; }

.card-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #eef1f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.card-ultra .card-foot { border-top: none; padding-top: 12px; margin-top: 0; }
.card-foot-note { font-size: 13px; color: #6b7280; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: #0b1020; font-weight: 600; font-size: 14px;
}
.card-link:hover { gap: 10px; }
.card-link svg { stroke: currentColor; }

.compare-cta {
  margin-top: 32px;
  border-radius: 16px;
  border: 1px solid #e7eaf3;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.compare-title { font-size: 22px; font-weight: 700; color: #0b1020; }
.compare-sub { color: #4a5167; font-size: 15px; margin-top: 4px; }
@media (min-width: 768px) {
  .compare-cta { flex-direction: row; align-items: center; padding: 28px; }
}

.btn-emerald {
  display: inline-flex; align-items: center; gap: 8px;
  background: #10b981; color: #062017;
  font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(16,185,129,0.25), 0 18px 50px -10px rgba(16,185,129,0.35);
  white-space: nowrap;
}
.btn-emerald:hover { background: #0d9267; }
.btn-emerald svg { stroke: #062017; }

/* ---------- FAQ ---------- */
.faq { padding: 64px 0; background: #fafbff; border-top: 1px solid #e7eaf3; border-bottom: 1px solid #e7eaf3; }
.faq-inner-wrap { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.faq-head { text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }

.faq-item {
  border-radius: 16px;
  border: 1px solid #e7eaf3;
  background: #fff;
}
.faq-item:hover { background-color: #f3f6ff; border-color: #d6dcef; box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05); }
.faq-item.open { background-color: #fff; border-color: #d6dcef; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.07); }

.faq-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px 24px;
}
.faq-item-q { flex: 1; font-size: 15px; font-weight: 700; color: #0b1020; }
.faq-chev { width: 20px; height: 20px; stroke: #10b981; flex-shrink: 0; transition: transform .3s ease; }
.faq-chev.open { transform: rotate(180deg); }

.faq-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-collapse.open { grid-template-rows: 1fr; }
.faq-collapse-inner { overflow: hidden; min-height: 0; }
.faq-item-a {
  padding: 0 24px 24px;
  font-size: 14.5px;
  color: #4a5167;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease .05s, transform .3s ease .05s;
}
.faq-collapse.open .faq-item-a { opacity: 1; transform: translateY(0); }

@media (min-width: 768px) {
  .faq-item-btn { padding: 20px 24px; }
  .faq-item-q { font-size: 16px; }
  .faq-item-a { padding: 0 24px 24px; }
}

/* ---------- Footer ---------- */
.footer { background: #0b1020; color: #fff; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.footer-desc { font-size: 14.5px; color: #a7b0c7; margin-top: 20px; max-width: 420px; line-height: 1.6; }
.footer-contacts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.footer-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
}
.footer-chip:hover { background: rgba(255,255,255,0.1); }

.footer-heading { font-size: 12px; font-weight: 700; color: #6e7692; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-links a { color: #c9ccd4; }
.footer-links a:hover { color: #fff; }

.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom p { font-size: 13px; color: #6e7692; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(12, 1fr); }
  .footer-col-brand { grid-column: span 5; }
  .footer-col-product { grid-column: span 3; }
  .footer-col-legal { grid-column: span 4; }
}

/* ---------- Version Finder Modal ---------- */
.finder-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.finder-overlay.open { display: flex; }
.finder-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(4px);
}
.finder-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.07), 0 2px 6px rgba(16, 24, 40, 0.04);
  overflow: hidden;
}
.finder-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #eef1f7;
}
.finder-header-left { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #0b1020; }
.finder-header-left svg { stroke: #10b981; }
.finder-close { padding: 6px; border-radius: 8px; }
.finder-close:hover { background: #f3f4f8; }

.finder-body { padding: 24px; }
.finder-step-label { font-size: 12px; color: #6b7280; margin-bottom: 16px; }
.finder-progress { height: 6px; background: #eef1f7; border-radius: 999px; overflow: hidden; margin-bottom: 24px; }
.finder-progress-bar { height: 100%; background: linear-gradient(90deg, #10b981, #6366f1); transition: width .2s ease; }
.finder-question { font-size: 22px; font-weight: 700; color: #0b1020; margin-bottom: 20px; }

.finder-options { display: flex; flex-direction: column; gap: 10px; }
.finder-option {
  width: 100%; text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e7eaf3;
  font-size: 14.5px; font-weight: 500; color: #2b3142;
}
.finder-option:hover { border-color: #10b981; background: #f0fdf7; }

.finder-result { text-align: center; }
.finder-result-icon {
  display: inline-flex; width: 56px; height: 56px;
  border-radius: 999px; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #10b981, #6366f1);
  margin-bottom: 16px;
}
.finder-result-icon svg { width: 28px; height: 28px; stroke: #fff; }
.finder-result-eyebrow { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.16em; }
.finder-result-title { font-size: 30px; font-weight: 700; margin-top: 4px; }
.finder-result-text { color: #4a5167; font-size: 14.5px; margin-top: 12px; max-width: 420px; margin-left: auto; margin-right: auto; }

.finder-result-actions {
  margin-top: 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: #0b1020; font-weight: 600; font-size: 14.5px;
  padding: 12px 16px; border-radius: 8px;
}
.btn-ghost:hover { background: #f3f4f8; }

@media (min-width: 640px) {
  .finder-result-actions { flex-direction: row; }
}
