/* =========================================================
   LAUNCH — SaaS landing page template
   Edit the variables below to re-theme the whole page.
   ========================================================= */
:root {
  /* Colors */
  --bg: #0b0d1a;
  --bg-alt: #11142a;
  --surface: #161a33;
  --border: #262b4d;
  --text: #eef0ff;
  --text-muted: #a3a8c8;
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --accent: #22d3ee;
  --success: #34d399;
  --danger: #fb7185;

  /* Typography */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --gutter: 20px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.muted { color: var(--text-muted); }

.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: .75rem; }
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 60ch; }
.grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px -8px rgba(139,92,246,.7); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-outline { color: var(--text); border-color: var(--border); width: 100%; }
.btn-outline:hover { border-color: var(--primary); }
.btn-light { background: #fff; color: #1e1b4b; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,13,26,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; position: relative; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.nav-toggle { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px; cursor: pointer; }
.nav-menu {
  display: none; position: absolute; top: 68px; left: 0; right: 0;
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  padding: 1rem var(--gutter) 1.5rem; flex-direction: column; gap: 1rem;
}
.nav-menu.is-open { display: flex; }
.nav-menu ul { display: flex; flex-direction: column; gap: .25rem; }
.nav-menu ul a { display: block; padding: .6rem 0; text-decoration: none; color: var(--text-muted); font-weight: 600; }
.nav-menu ul a:hover { color: var(--text); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 2rem; padding: 0; background: none; border: 0; }
  .nav-menu ul { flex-direction: row; gap: 1.75rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 64px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(139,92,246,.35), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -200px; bottom: -260px; width: 600px; height: 600px;
  background: radial-gradient(closest-side, rgba(34,211,238,.18), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 800; }
.hero .eyebrow { text-transform: none; letter-spacing: 0; color: var(--text-muted); font-weight: 600; display: inline-flex; align-items: center; gap: .6rem; }
.pill { background: rgba(139,92,246,.18); color: #c4b5fd; border: 1px solid rgba(139,92,246,.4); padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero-actions.center { justify-content: center; }
.hero-note { font-size: .88rem; color: var(--text-muted); }

/* Product mockup */
.mockup {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.02) inset;
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-alt); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4070; }
.mock-bar i:first-child { background: #fb7185; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 10px; font-size: .75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-body { display: flex; min-height: 260px; }
.mock-side { width: 56px; border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; gap: 12px; }
.mock-side b { display: block; height: 10px; border-radius: 4px; background: #2a2f58; }
.mock-side b:first-child { background: var(--primary); }
.mock-main { flex: 1; padding: 16px; min-width: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mock-kpis small { display: block; font-size: .7rem; color: var(--text-muted); }
.mock-kpis strong { font-size: 1.1rem; display: block; }
.mock-kpis em { font-style: normal; font-size: .72rem; color: var(--success); font-weight: 700; }
.mock-kpis em.down { color: var(--success); }
.mock-kpis .hide-sm { display: none; }
.mock-chart { width: 100%; height: 120px; }
.mock-rows { display: grid; gap: 8px; margin-top: 12px; }
.mock-rows span { height: 8px; border-radius: 4px; background: #232850; }
.mock-rows span:nth-child(2) { width: 80%; } .mock-rows span:nth-child(3) { width: 60%; }

@media (min-width: 520px) {
  .mock-kpis { grid-template-columns: repeat(3, 1fr); }
  .mock-kpis .hide-sm { display: block; }
}
@media (min-width: 960px) {
  .hero { padding: 96px 0 110px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .mockup { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); }
}

/* ---------- Logos strip ---------- */
.logos { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 32px 0; background: var(--bg-alt); }
.logos p { text-align: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 1.25rem; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 36px; color: #8a90b8; }
.logo-row svg { width: 120px; height: 32px; font-family: var(--font-heading); }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; margin: 0 auto 44px; max-width: 720px; }
.section-head .lead { margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 4.5vw, 2.75rem); font-weight: 800; }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* ---------- Features ---------- */
.features-grid { display: grid; gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: rgba(139,92,246,.6); transform: translateY(-3px); }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(139,92,246,.25), rgba(34,211,238,.18)); color: #c4b5fd;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--text-muted); margin: 0; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Testimonial ---------- */
.quote-section { padding-top: 0; }
.quote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 600; line-height: 1.45; letter-spacing: -0.01em; }
.quote figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; color: var(--text-muted); font-size: .92rem; margin-top: 1rem; }
.quote figcaption strong { color: var(--text); }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary), var(--accent)); flex-shrink: 0; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px;
}
.plan h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.plan-desc { color: var(--text-muted); font-size: .95rem; }
.price { display: flex; align-items: baseline; gap: .3rem; margin: .5rem 0 1.25rem; }
.amount { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--text-muted); }
.checks { display: grid; gap: .7rem; margin-bottom: 1.75rem; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: rgba(52,211,153,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/70% no-repeat;
}
.plan .btn { width: 100%; }
.plan-featured {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, rgba(139,92,246,.16), var(--surface) 55%);
  box-shadow: 0 30px 60px -30px rgba(139,92,246,.6);
}
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .3rem .8rem; border-radius: 999px; margin: 0; white-space: nowrap;
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-featured { transform: scale(1.04); }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq details[open] { border-color: rgba(139,92,246,.6); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text-muted); }

/* ---------- CTA ---------- */
.cta-box {
  text-align: center; border-radius: 28px; padding: 56px 24px; color: #fff;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(120deg, #6d28d9, #8b5cf6 45%, #0891b2);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255,255,255,.88); font-size: 1.1rem; }
@media (min-width: 960px) { .cta-box { padding: 80px 40px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 24px; background: var(--bg-alt); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
.footer-grid > div:first-child { grid-column: 1 / -1; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: .5rem; }
.footer-grid ul a { text-decoration: none; color: var(--text); opacity: .85; }
.footer-grid ul a:hover { opacity: 1; color: var(--accent); }
.footer-grid .brand { margin-bottom: .75rem; }
.footer-bottom { margin-top: 40px; color: var(--text-muted); font-size: .88rem; }
.footer-bottom p { margin: 0; padding-top: 20px; border-top: 1px solid var(--border); }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
