:root {
  --brand-1: #7c3aed;
  --brand-2: #f43f5e;
  --text: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --ring: rgba(124, 58, 237, 0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem 0;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; }

p { margin: 0.5rem 0 0 0; color: var(--muted); }

.lead { font-size: 1.125rem; color: #1f2937; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: #111827;
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  font-size: 18px;
}

.brand-name { letter-spacing: 0.3px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover { color: #111827; }

.nav-toggle { display: none; }

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background-position 0.3s ease;
  border: 1px solid transparent;
}

.button--sm { padding: 0.5rem 0.875rem; font-size: 0.95rem; }
.button--lg { padding: 0.8rem 1.2rem; font-size: 1.05rem; }

.button--primary {
  color: white;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  background-size: 200% 200%;
  background-position: 0 50%;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}

.button--primary:hover { transform: translateY(-1px); background-position: 100% 50%; box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35); }

.button--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button--ghost:hover { border-color: #cbd5e1; }

/* Ko-fi Support button pulse */
.kofi-button {
  border-color: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.35);
  animation: kofiPulse 1.6s ease-in-out infinite;
}

.kofi-button:hover {
  background: var(--brand-2);
  color: #ffffff;
  border-color: var(--brand-2);
  animation: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.3);
}

@keyframes kofiPulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(244, 63, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

/* Hero */
.hero {
  padding: 4rem 0 2.5rem 0;
  background: radial-gradient(1200px 300px at 50% -50%, rgba(124,58,237,0.12), transparent), var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
  color: var(--muted);
  padding: 0;
}

.trust-list li {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-row { display: flex; gap: 1rem; margin-top: 1.25rem; flex-wrap: wrap; }

.hero-visual { display: grid; place-items: center; }
.hero-logo { width: min(70vw, 420px); height: auto; filter: drop-shadow(0 10px 30px rgba(15, 23, 42, 0.15)); }

.quote-card {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(244,63,94,0.08));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.quote-card__header {
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #334155;
  background: rgba(255,255,255,0.7);
  border-bottom: 1px solid var(--border);
}

.quote-card__body {
  margin: 0;
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  font-size: 1.15rem;
  color: #0f172a;
}

.quote-card__footer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--muted);
}

/* Built-for bar */
.bar {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.bar-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge {
  font-size: 0.875rem;
  background: #eef2ff;
  color: #3730a3;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #e0e7ff;
}

.segmented {
  display: flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.segmented li {
  list-style: none;
  padding: 0.25rem 0.625rem;
  border: 1px dashed #d1d5db;
  border-radius: 999px;
  color: #334155;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  font-size: 20px;
  margin-bottom: 0.5rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
}

.step {
  list-style: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.step__num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #111827;
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* Feedback form */
.feedback {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }

label { font-weight: 600; color: #0f172a; }
input[type="text"], input[type="email"], select, textarea {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  font-size: 1rem;
  color: #0f172a;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }

/* Motion & Reveal */
.reveal { opacity: 0; transform: translateY(16px); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: none; }

.button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring), 0 8px 24px rgba(124, 58, 237, 0.25); }

.feature, .step { transition: transform 160ms ease, box-shadow 220ms ease, border-color 220ms ease; will-change: transform; }
.feature:hover, .step:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); border-color: #dbeafe; }

@keyframes floaty { 0% { transform: translateY(0); } 100% { transform: translateY(-8px); } }
.hero-visual .hero-logo { animation: floaty 6s ease-in-out infinite alternate; }

/* Blob backgrounds */
.blob-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero, .cta.section.alt {
  position: relative;
}

.blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.35;
  transform: translateZ(0);
  will-change: transform, opacity;
}

/* Hero blobs */
.blob--1 {
  left: -120px;
  top: -140px;
  background: radial-gradient(closest-side, rgba(124,58,237,0.70), rgba(124,58,237,0.0));
  animation: blobDrift1 18s ease-in-out infinite alternate;
}

.blob--2 {
  right: -160px;
  top: -100px;
  background: radial-gradient(closest-side, rgba(244,63,94,0.65), rgba(244,63,94,0.0));
  animation: blobDrift2 22s ease-in-out infinite alternate;
}

.blob--3 {
  left: 40%;
  bottom: -220px;
  background: radial-gradient(closest-side, rgba(59,130,246,0.55), rgba(59,130,246,0.0));
  animation: blobDrift3 20s ease-in-out infinite alternate;
}

/* CTA blobs */
.blob--cta-1 {
  left: -140px;
  top: -160px;
  background: radial-gradient(closest-side, rgba(124,58,237,0.65), rgba(124,58,237,0.0));
  animation: blobDrift1 16s ease-in-out infinite alternate;
}

.blob--cta-2 {
  right: -160px;
  bottom: -200px;
  background: radial-gradient(closest-side, rgba(16,185,129,0.55), rgba(16,185,129,0.0));
  animation: blobDrift2 19s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  0% { transform: translate(-10px, 0) scale(1); }
  100% { transform: translate(10px, 14px) scale(1.08); }
}

@keyframes blobDrift2 {
  0% { transform: translate(6px, -6px) scale(1.02); }
  100% { transform: translate(-12px, 10px) scale(1.1); }
}

@keyframes blobDrift3 {
  0% { transform: translate(0, 0) scale(0.98); }
  100% { transform: translate(12px, -10px) scale(1.06); }
}

/* Elevate content above blobs */
.hero-grid, .cta .container { position: relative; z-index: 1; }

/* Enhance reveal animation slightly */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible { transition: opacity 600ms ease, transform 600ms ease; }

/* New: Staggered reveal for mid-page cards and steps */
.reveal .features-grid .feature,
.reveal .steps .step {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.reveal.is-visible .features-grid .feature,
.reveal.is-visible .steps .step {
  opacity: 1;
  transform: none;
}

.reveal.is-visible .features-grid .feature,
.reveal.is-visible .steps .step {
  transition: opacity 600ms ease, transform 600ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

/* Stagger timings for features */
.reveal.is-visible .features-grid .feature:nth-child(1) { transition-delay: 60ms; }
.reveal.is-visible .features-grid .feature:nth-child(2) { transition-delay: 120ms; }
.reveal.is-visible .features-grid .feature:nth-child(3) { transition-delay: 180ms; }
.reveal.is-visible .features-grid .feature:nth-child(4) { transition-delay: 240ms; }
.reveal.is-visible .features-grid .feature:nth-child(5) { transition-delay: 300ms; }

/* Stagger timings for steps */
.reveal.is-visible .steps .step:nth-child(1) { transition-delay: 60ms; }
.reveal.is-visible .steps .step:nth-child(2) { transition-delay: 120ms; }
.reveal.is-visible .steps .step:nth-child(3) { transition-delay: 180ms; }
.reveal.is-visible .steps .step:nth-child(4) { transition-delay: 240ms; }

/* Icon and step-number pop-in for extra delight */
@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.feature .feature__icon { transition: transform 220ms ease; }
.feature:hover .feature__icon { transform: translateY(-2px) rotate(-2deg) scale(1.04); }

.reveal.is-visible .feature .feature__icon { animation: popIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal.is-visible .features-grid .feature:nth-child(2) .feature__icon { animation-delay: 120ms; }
.reveal.is-visible .features-grid .feature:nth-child(3) .feature__icon { animation-delay: 180ms; }
.reveal.is-visible .features-grid .feature:nth-child(4) .feature__icon { animation-delay: 240ms; }
.reveal.is-visible .features-grid .feature:nth-child(5) .feature__icon { animation-delay: 300ms; }

.reveal.is-visible .step .step__num { animation: popIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.reveal.is-visible .steps .step:nth-child(2) .step__num { animation-delay: 120ms; }
.reveal.is-visible .steps .step:nth-child(3) .step__num { animation-delay: 180ms; }
.reveal.is-visible .steps .step:nth-child(4) .step__num { animation-delay: 240ms; }

/* Heading accent underline that reveals in */
.section h2 { position: relative; display: inline-block; }
.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 36%;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 600ms ease, transform 600ms ease;
  border-radius: 999px;
}
.reveal.is-visible h2::after { opacity: 0.7; transform: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}

/* CTA */
.cta {
  background: radial-gradient(800px 200px at 50% -20%, rgba(124,58,237,0.18), transparent), var(--bg-alt);
}

/* FAQ */
.faq { margin-top: 1rem; display: grid; gap: 0.75rem; }

.faq__item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
}

.faq__item > summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.faq__item > summary::-webkit-details-marker { display: none; }

.faq__item[open] {
  box-shadow: 0 0 0 3px var(--ring);
}

.faq__item > div { color: var(--muted); padding: 0.5rem 0.25rem 0.75rem 0.25rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.footer-left { display: inline-flex; align-items: center; gap: 0.5rem; color: #334155; }
.footer-right { display: inline-flex; align-items: center; gap: 1rem; }
.footer-right a { color: var(--text); text-decoration: none; }

.dot { color: #cbd5e1; padding: 0 0.25rem; }
.muted { color: var(--muted); }

/* Mobile install bar */
.install-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: white;
  text-align: center;
  padding: 0.9rem 1rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 -10px 24px rgba(124, 58, 237, 0.25);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .feedback { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .hamburger { display: inline-flex; }
  .nav-toggle:checked ~ .hamburger + .site-nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 0.75rem; gap: 0.5rem; flex-direction: column; }
  .install-bar { display: block; }
}