:root {
  --canvas: #f4f4f5;
  --card: #ffffff;
  --ink: #18181b;
  --muted: #71717a;
  --line: #e4e4e7;
  --iris: #7c3aed;
  --iris-deep: #5b21b6;
  --iris-soft: #ede9fe;
  --mark: #fde047;
  --dark: #14111b;
  --dark-2: #1e1a29;
  --radius: 16px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
section { scroll-margin-top: 76px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.2rem; }
.kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--iris);
  background: var(--iris-soft); border-radius: 999px; padding: 6px 14px; margin: 0 0 14px;
}
.kicker.light { background: rgba(255, 255, 255, 0.14); color: #fff; }
.sub { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  border-radius: 12px; padding: 10px 20px; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--iris); color: #fff; box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35); }
.btn-primary:hover { background: var(--iris-deep); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.btn-light { background: #fff; color: var(--iris-deep); }
.btn-light:hover { background: var(--iris-soft); }

/* Header: transparent over the dark hero, frosted light glass on scroll (Apple style). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #fff;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.site-header.scrolled,
.site-header.menu-open {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: rgba(24, 24, 27, 0.08);
  color: var(--ink);
}
.site-header.scrolled .site-nav a { color: #52525b; }
.site-header.scrolled .site-nav a:hover { color: var(--ink); }
.site-header.scrolled .nav-toggle span,
.site-header.menu-open .nav-toggle span { background: var(--ink); }
.header-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; }
.brand strong { font-family: var(--font-display); font-size: 1.15rem; }
.brand-img { width: 28px; height: 28px; border-radius: 8px; display: block; }
/* One lockup everywhere: the header wears it small, the footer full size.
   Width is intrinsic so the aspect ratio never has to be restated. */
.brand-lockup { height: 40px; width: auto; display: block; }
.site-header .brand-lockup { height: 34px; }
.mnav-head .brand-lockup { height: 30px; }
.site-nav { display: flex; gap: 22px; margin-left: 8px; }
.site-nav a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: #fff; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s ease, opacity 0.2s ease; }
.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); }
/* Mobile off-canvas menu, app style */
.mnav { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s 0.32s; }
.mnav.open { visibility: visible; transition-delay: 0s; }
.mnav-backdrop { position: absolute; inset: 0; background: rgba(20, 17, 27, 0.45); opacity: 0; transition: opacity 0.25s ease; }
.mnav.open .mnav-backdrop { opacity: 1; }
.mnav-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  background: #fff; color: var(--ink);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
  transform: translateX(103%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.28, 1);
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 20px; overflow-y: auto;
}
.mnav.open .mnav-panel { transform: none; }
.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 2px 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mnav-close {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 12px; background: var(--canvas); color: var(--muted);
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.mnav-close:hover { color: var(--ink); }
.mnav-panel a:not(.btn) {
  display: block; padding: 13px 12px; border-radius: 12px;
  color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none;
}
.mnav-panel a:not(.btn):hover { background: var(--canvas); }
.mnav-panel .btn { margin-top: 12px; text-align: center; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .grid {
  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: 36px 36px;
  mask-image: radial-gradient(ellipse 90% 80% at 30% 10%, black 20%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; animation: drift 12s ease-in-out infinite alternate; }
.blob.b1 { width: 480px; height: 480px; left: -140px; top: -120px; background: radial-gradient(circle, rgba(124,58,237,0.6), transparent 65%); }
.blob.b2 { width: 420px; height: 420px; right: -120px; bottom: -140px; background: radial-gradient(circle, rgba(76,29,149,0.7), transparent 65%); animation-delay: -6s; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }

.hero-in {
  position: relative; display: grid; gap: 48px; align-items: center;
  padding: 132px 20px 80px;
}
@media (min-width: 960px) { .hero-in { grid-template-columns: 1.05fr 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-size: 0.85rem; font-weight: 600; color: #e9e4ff;
  border: 1px solid rgba(167, 139, 250, 0.4); background: rgba(124, 58, 237, 0.16);
  border-radius: 999px; padding: 7px 15px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: pulse 1.8s ease infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 4px; height: 0.32em;
  background: var(--iris); opacity: 0.55; border-radius: 3px; z-index: -1;
}
.hero h1 { position: relative; z-index: 0; }
.lede { color: rgba(255, 255, 255, 0.72); font-size: 1.1rem; line-height: 1.65; max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats { display: flex; gap: 36px; margin: 34px 0 0; padding: 0; }
.hero-stats div dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.hero-stats div dd { margin: 2px 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* Browser mockup */
.browser {
  border-radius: 18px; overflow: hidden; color: var(--ink);
  background: var(--card); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.browser-bar {
  display: flex; align-items: center; gap: 6px;
  background: #ececf0; padding: 10px 14px; font-size: 0.8rem; color: var(--muted);
}
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4d4d8; }
.browser-bar i:nth-child(1) { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #4ade80; }
.browser-bar span { margin: 0 auto; background: #fff; border-radius: 8px; padding: 3px 18px; }
.widget { padding: 18px; }
.widget-search {
  display: flex; align-items: center; gap: 10px; color: var(--iris);
  border: 2px solid var(--iris); border-radius: 12px; padding: 12px 14px;
  font-size: 1rem; color: var(--ink); min-height: 52px;
}
#typed { font-weight: 500; }
.caret { width: 2px; height: 1.2em; background: var(--iris); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.widget-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.widget-results li {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  animation: rise 0.5s ease backwards;
}
.widget-results li:nth-child(2) { animation-delay: 0.12s; }
.widget-results li:nth-child(3) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
/* The rows come and go, so the list reserves its full height up front:
   without this the browser mock would shrink and grow on every query and
   drag the hero around with it. */
.widget-results { min-height: 202px; align-content: start; }
/* Searching: placeholders in the shape of the rows they are about to become. */
.widget-results li.skeleton { border-color: var(--line); animation: none; }
.widget-results li.skeleton .thumb,
.widget-results li.skeleton .sk-lines i {
  background: linear-gradient(90deg, #eceaf3 25%, #f6f5fa 50%, #eceaf3 75%);
  background-size: 300% 100%;
  animation: sweep 1.1s ease-in-out infinite;
}
.widget-results li.skeleton .sk-lines { display: grid; gap: 7px; flex: 1; }
.widget-results li.skeleton .sk-lines i { height: 10px; border-radius: 999px; display: block; }
.widget-results li.skeleton .sk-lines i:first-child { width: 62%; }
.widget-results li.skeleton .sk-lines i:last-child { width: 34%; height: 8px; }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.widget-results .thumb { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.thumb.t1 { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.thumb.t2 { background: linear-gradient(135deg, #fde68a, #f59e0b); }
.thumb.t3 { background: linear-gradient(135deg, #a7f3d0, #10b981); }
.widget-results span small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 400; }
.widget-results strong { margin-left: auto; font-size: 0.95rem; }
mark { background: var(--mark); border-radius: 3px; padding: 0 2px; color: inherit; }
/* Reserves its line even while empty: the meta text appears and disappears
   with each query, and a collapsing paragraph would bounce the mock. */
.widget-meta { margin: 12px 2px 0; font-size: 0.82rem; color: var(--muted); min-height: 1.25em; }
.shot-cap { margin-top: 14px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); }

/* Strip */
.strip { border-bottom: 1px solid var(--line); background: var(--card); }
.strip .wrap { padding-top: 18px; padding-bottom: 18px; }
.strip p { margin: 0; text-align: center; color: var(--muted); font-size: 0.95rem; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 0 0 10px; }
.grid-3 { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(24, 24, 27, 0.1); }
.card .ico {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--iris-soft); color: var(--iris-deep); border-radius: 12px; margin-bottom: 14px;
}
.card .ico svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.95rem; }
.card.pro { border-left: 4px solid var(--iris); }

/* Screenshots */
.shot-row { display: grid; gap: 36px; align-items: center; margin-top: 56px; }
@media (min-width: 960px) { .shot-row { grid-template-columns: 1fr 1.2fr; } .shot-row.flip .shot-copy { order: 2; } .shot-row.flip .shot { order: 1; } }
.shot-copy h3 { font-size: 1.5rem; margin-bottom: 10px; }
.shot-copy p { color: var(--muted); line-height: 1.65; }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; font-weight: 500; font-size: 0.95rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--iris-soft); color: var(--iris-deep);
  font-size: 0.75rem; font-weight: 700; display: grid; place-items: center;
}
.browser.mini { animation: none; border-color: var(--line); box-shadow: 0 20px 50px rgba(24, 24, 27, 0.12); }
.dash { display: grid; grid-template-columns: 64px 1fr; min-height: 280px; }
.dash-side { background: #f7f7f9; border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.dash-side i { height: 10px; border-radius: 5px; background: var(--line); }
.dash-side i.on { background: var(--iris); }
.dash-main { padding: 16px; min-width: 0; }
.dash-search {
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 0.9rem; margin-bottom: 12px;
}
.dash-search em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.dash-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 0.88rem; margin-bottom: 8px;
}
.dash-row b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row span { color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.dash-meta { font-size: 0.78rem; color: var(--muted); margin: 4px 2px 0; }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dash-stats div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; text-align: center; }
.dash-stats b { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.dash-stats small { color: var(--muted); font-size: 0.72rem; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: linear-gradient(#fafafa, #fff); }
.bars span {
  flex: 1; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--iris), #a78bfa);
  height: 8%; transition: height 1s ease;
}
.visible .bars span { height: var(--h); }

/* Compare */
.compare {
  display: grid; gap: 16px; margin-top: 36px;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--card);
}
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { padding: 28px; }
.compare-col:first-child { background: linear-gradient(160deg, #1e1b29, #17141f); color: #fff; }
.compare-col h3 { margin-bottom: 12px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.95rem; }
.compare-col:first-child li::before { content: "✓ "; color: #4ade80; font-weight: 700; }
.compare-col.dim { color: var(--muted); }
.compare-col.dim li::before { content: "✕ "; color: #d4d4d8; font-weight: 700; }

/* Trial */
.trial { background: var(--canvas); }
.trial-box {
  background: linear-gradient(150deg, #2a2140 0%, #17141f 70%);
  color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  position: relative; overflow: hidden;
}
.trial-box::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -140px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 65%);
}
.trial-box h2 { position: relative; max-width: 22ch; }
.steps { list-style: none; margin: 28px 0; padding: 0; display: grid; gap: 14px; position: relative; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; padding: 18px; }
.steps b { display: block; margin-bottom: 6px; }
.steps span { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.fine { margin: 16px 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); position: relative; }

/* FAQ */
.faq {
  border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  margin-top: 12px; overflow: hidden;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 20px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--iris); font-weight: 400; flex-shrink: 0; }
.faq[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); line-height: 1.65; }

/* Footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.7); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: 12px; }
.footer nav a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.9rem; }
.footer nav a:hover { color: #fff; }
.footer .copy { margin: 0 0 0 auto; font-size: 0.85rem; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .browser, .pulse, .caret { animation: none; }
  .widget-results li { animation: none; }
  .widget-results li.skeleton .thumb,
  .widget-results li.skeleton .sk-lines i { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 860px) {
  .site-nav, .header-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .header-in { gap: 12px; }
  .hero-in { padding: 112px 20px 60px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 60px 0; }
  .footer .copy { margin-left: 0; }
}

/* Mockup hardening on small screens */
.browser-bar span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.widget-results li > span:nth-child(2) { min-width: 0; }
.widget-results strong { white-space: nowrap; }
@media (max-width: 560px) {
  .widget { padding: 14px; }
  .widget-results li { font-size: 0.85rem; }
  .dash { grid-template-columns: 44px 1fr; min-height: 0; }
  .dash-side { padding: 12px 8px; }
  .dash-main { padding: 12px; min-width: 0; }
  .dash-search { font-size: 0.82rem; }
  .dash-row { flex-wrap: wrap; row-gap: 2px; font-size: 0.8rem; }
  .dash-row span { white-space: normal; }
  .dash-stats { gap: 6px; }
  .dash-stats b { font-size: 0.95rem; }
  .dash-stats div { padding: 8px 4px; }
  .bars { height: 84px; padding: 8px; gap: 5px; }
}
