:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;

  /* Light palette */
  --bg-primary:    #FAFAFA;
  --bg-secondary:  #FFFFFF;
  --bg-elevated:   #F5F5F5;

  --border-default: rgba(0, 0, 0, 0.08);
  --border-hover:   rgba(0, 0, 0, 0.14);

  --text-primary:   #0A0A0A;
  --text-secondary: #525252;
  --text-tertiary:  #A3A3A3;

  --accent:         #6366F1;
  --accent-light:   #818CF8;
  --accent-soft:    rgba(99, 102, 241, 0.08);
  --accent-glow:    rgba(99, 102, 241, 0.15);
  --coral:          #EF4444;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 16px;
  background: var(--bg-primary);
  min-height: 100vh;
}

/* ===== Subtle top aurora ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 10% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 90% 0%, rgba(168, 85, 247, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 500px 400px at 50% 100%, rgba(236, 72, 153, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.section { padding: 5rem 0; }

/* ===== Typography ===== */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

p { margin: 0 0 1rem; }

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-default);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand { display: flex; align-items: center; gap: 0; }
.brand-logo { height: 36px; width: auto; }
.brand-letter { height: 30px; width: auto; margin-left: -4px; }

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text-primary); }

.lang-link {
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-elevated);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn.primary:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
}

.btn.ghost:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* ===== Hero ===== */
.hero { padding-top: 6rem; padding-bottom: 3rem; }

.hero-stack {
  display: grid;
  gap: 3rem;
  text-align: center;
}

.hero-stack .hero-copy {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 0;
  justify-content: center;
}

.hero-image {
  max-width: 900px;
  margin: 0 auto;
}

.hero-screenshot {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ===== Cards (shared) ===== */
.feature-card {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-card h3 { color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); margin: 0; }

/* ===== Pain Section ===== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.pain-card { text-align: center; }

.pain-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.08);
  font-size: 1rem;
  color: var(--coral);
  margin: 0 0 1rem;
  font-weight: 700;
}

/* ===== Steps / Answer ===== */
.section-title { margin-bottom: 2.5rem; }

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.steps li {
  counter-increment: step;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.05);
  font-family: var(--font-sans);
}

/* ===== Screenshots ===== */
.preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.preview-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.preview-screenshot {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
}

.preview-card figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.stats-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stats-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.stats-number {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stats-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== Privacy ===== */
.privacy {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
}

/* ===== About ===== */
.about-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.about-card .section-title { margin-bottom: 0.8rem; }
.about-card p { color: var(--text-secondary); }

.about-links {
  display: flex;
  gap: 1.2rem;
  margin-top: 1.2rem;
}

.about-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.about-links a:hover {
  border-color: var(--accent);
}

/* ===== FAQ ===== */
.faq-grid { display: grid; gap: 0.8rem; }

details {
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  transition: border-color 0.2s ease;
}

details:hover { border-color: var(--border-hover); }

details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  color: var(--text-primary);
}

details summary::-webkit-details-marker { display: none; }
details[open] summary { color: var(--accent); }
details p { color: var(--text-secondary); margin: 0.6rem 0 0; }

/* ===== Final CTA ===== */
.final-cta { padding-bottom: 6rem; }

.final-cta-inner {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(168, 85, 247, 0.04));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.final-cta-inner h2 { margin-bottom: 0.3rem; }
.final-cta-inner p { color: var(--text-secondary); margin: 0; }

/* ===== Footer ===== */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-default);
}

.footer-inner { display: grid; gap: 1rem; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.5rem;
}

.footer-logo { height: 32px; width: auto; }
.footer-letter { height: 26px; width: auto; margin-left: -4px; }

.footer-note { color: var(--text-tertiary); font-size: 0.9rem; }

.footer-links {
  display: flex;
  gap: 1.2rem;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-small {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* ===== Scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .steps, .stats-grid { grid-template-columns: 1fr; }
  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .section { padding: 3.5rem 0; }
  .hero { padding-top: 4rem; }
  .container { width: min(100% - 1.5rem, var(--max-width)); }
  .btn { width: 100%; }
  .cta-group { align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
