:root {
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --blue: #3b82f6;
  --green: #10b981;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ink: #14151a;
  --ink-soft: #55586b;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --border: #e7e7f0;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2f7;
    --ink-soft: #b3b4c2;
    --bg: #0f0f14;
    --bg-soft: #17171f;
    --border: #2a2b38;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

/* Accessibility: skip link + focus states */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--purple);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 8px;
  z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

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

.section-sub {
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 2.2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-light), var(--purple));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124,58,237,.55);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-small { padding: .55rem 1.2rem; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  margin-right: auto;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-light), var(--blue));
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
}
.main-nav { display: flex; gap: 1.4rem; }
.main-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); font-weight: 700; }
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 24px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .btn-small { display: none; }
}

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.badge .icon { color: var(--purple-light); }
.hero h1 { margin-bottom: .6em; }
.hero-sub {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 4rem 0; }
section[id] { scroll-margin-top: 76px; }
.platforms, .faq { background: var(--bg-soft); }

/* Platform grid */
.platform-grid, .feature-grid, .stat-grid, .testimonial-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.platform-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.platform-card, .feature-card, .testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: relative;
}
.platform-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .6rem;
  vertical-align: middle;
}
.platform-badge .icon { width: 28px; height: 28px; }
.platform-name { font-weight: 700; vertical-align: middle; }
.platform-card p { margin: .6rem 0 0; color: var(--ink-soft); font-size: .92rem; }
.status {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.status-live { background: rgba(16,185,129,.12); color: var(--green); }
.status-soon { background: rgba(245,158,11,.12); color: var(--amber); }

/* Features */
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: .8rem;
}
.feature-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Preview / illustrative */
.illustrative-tag {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  background: rgba(245,158,11,.1);
  border: 1px solid rgba(245,158,11,.35);
  color: var(--ink);
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .92rem;
  max-width: 760px;
  margin-bottom: 2.2rem;
}
.illustrative-tag .icon { color: var(--amber); margin-top: .2em; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 1.5rem; }
.stat-card {
  text-align: center;
  padding: 1.4rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.stat-card strong { display: block; font-size: 1.8rem; color: var(--purple); }
.stat-card span { color: var(--ink-soft); font-size: .85rem; }
.stat-card em { font-style: normal; opacity: .7; }

.testimonial-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.testimonial-card { border-style: dashed; }
.testimonial-card p { font-size: .95rem; }
.testimonial-persona {
  display: block;
  font-size: .82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

/* FAQ */
.faq-list details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  margin-bottom: .8rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chevron { color: var(--ink-soft); transition: transform .2s ease; }
.faq-list details[open] .chevron { transform: rotate(180deg); }
.faq-list p { margin: .7rem 0 0; color: var(--ink-soft); }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 30;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--purple); }

/* Footer mail icon alignment */
.footer-inner a { display: inline-flex; align-items: center; gap: .4rem; }

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(59,130,246,.08));
}
.cta p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 1.6rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.6rem 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .6rem;
  color: var(--ink-soft);
  font-size: .88rem;
}
.footer-inner a { color: var(--ink-soft); }
