*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --font-size: 16px;
  --foreground: oklch(0.145 0 0);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --radius: 0.625rem;

  --color-white: #fff;
  --color-blue-50: oklch(97% 0.014 254.604);
  --color-blue-600: oklch(54.6% 0.245 262.881);
  --color-purple-50: oklch(97.7% 0.014 308.299);
  --color-purple-200: oklch(90.2% 0.063 306.703);
  --color-purple-600: oklch(55.8% 0.288 302.321);
  --color-pink-600: oklch(59.2% 0.249 0.584);
  --color-gray-400: oklch(70.7% 0.022 261.325);

  --text-sm: 0.875rem;
  --accent: #7c3aed;
  --accent-2: #2563eb;
  --muted: #4b5563;
  --border: rgba(0, 0, 0, 0.06);
  --bg-alt: #f9fafb;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container-narrow {
  max-width: 720px;
}

/* ── Hero ── */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0 60px;
  text-align: center;
  background-image: linear-gradient(
    to bottom right in oklab,
    var(--color-purple-50),
    var(--color-white),
    var(--color-blue-50)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  pointer-events: none;
}

.hero-bg-right {
  width: 420px;
  height: 420px;
  top: -160px;
  right: -140px;
  background: #c4b5fd;
  animation: floatBlobA 14s ease-in-out infinite;
}

.hero-bg-left {
  width: 360px;
  height: 360px;
  bottom: -140px;
  left: -100px;
  background: #93c5fd;
  animation: floatBlobB 16s ease-in-out infinite;
}

.hero-bg-center {
  width: 300px;
  height: 300px;
  left: calc(50% - 150px);
  top: calc(50% - 150px);
  background: #f9a8d4;
  animation: floatBlobC 15s ease-in-out infinite;
}

.hero-chip {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-purple-200);
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-purple-600);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  max-width: 780px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, var(--color-purple-600), var(--color-pink-600), var(--color-blue-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.08rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-closer {
  font-size: 0.95rem;
  color: #6b7280;
  margin-top: 20px;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-proof {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 5px 12px;
}

.proof-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.proof-dot-green { background: #22c55e; }
.proof-dot-blue { background: #3b82f6; }
.proof-dot-purple { background: #8b5cf6; }

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.32);
}

.btn-outline {
  color: #111827;
  background: #fff;
  border: 1.5px solid #d1d5db;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* ── Scroll indicator ── */

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  text-decoration: none;
  z-index: 3;
  animation: scrollNudge 2s ease-in-out infinite;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--color-gray-400);
  border-radius: 999px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: var(--color-gray-400);
  animation: scrollDot 2s ease-in-out infinite;
}

/* ── Sections ── */

section {
  padding: 96px 0;
}

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

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
}

section h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #111827;
}

section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-lead {
  margin-bottom: 0;
  max-width: 580px;
}

/* ── Animations ── */

.hero-anim {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeInUp 540ms ease forwards;
}

.hero-anim-1 { animation-delay: 100ms; }
.hero-anim-2 { animation-delay: 200ms; }
.hero-anim-3 { animation-delay: 340ms; }
.hero-anim-4 { animation-delay: 460ms; }
.hero-anim-5 { animation-delay: 580ms; }

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 480ms ease, transform 480ms ease;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.motion-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── How It Works ── */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.how-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 28px 24px;
}

.how-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.how-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111827;
}

.how-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ── Demo ── */

.demo-shell {
  margin-top: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ede9fe, #dbeafe);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  overflow: hidden;
}

#product-demo-canvas {
  width: 100%;
  display: block;
  height: auto;
}

.demo-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  padding: 5px 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-capture { background: #10b981; }
.dot-structure { background: #3b82f6; }
.dot-output { background: #8b5cf6; }

/* ── Feature grid ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.feature-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ── Split section (Why This) ── */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.split-text h2 {
  margin-bottom: 20px;
}

.split-text p {
  margin-bottom: 16px;
}

.split-points {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 36px;
}

.point-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 20px;
  font-size: 1rem;
  color: #111827;
  line-height: 1.5;
}

.point-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.15rem;
}

.point-icon-purple {
  background: #ede9fe;
  color: #7c3aed;
}

.point-icon-blue {
  background: #dbeafe;
  color: #2563eb;
}

.split-kicker {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  line-height: 1.6;
  padding-top: 4px;
}

/* ── CTA section ── */

.cta-section {
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: #fff;
  text-align: center;
  border-radius: 24px;
  margin: 0 24px;
  padding: 80px 24px;
}

.cta-section h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
}

.cta-section .section-lead {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 36px;
}

.cta-steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.cta-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 18px;
}

.cta-step-num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.cta-step p {
  color: #fff;
  font-size: 0.92rem;
  margin: 0;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cta-section .btn-primary:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.cta-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ── Footer ── */

.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 48px 0 32px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: 0.86rem;
  color: #9ca3af;
  margin-top: 6px;
  max-width: 400px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #f9fafb;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: block;
  font-size: 0.86rem;
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #6b7280;
}

.footer-bottom a {
  color: #d1d5db;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ── Lightbox ── */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
}

/* ── Utility ── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Responsive ── */

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .split-section { grid-template-columns: 1fr; gap: 32px; }
  .split-points { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 72px 0 36px;
  }
  .hero h1 { font-size: 2.2rem; }
  section { padding: 64px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .cta-section {
    margin: 0 8px;
    border-radius: 16px;
    padding: 56px 16px;
  }
  .cta-steps { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Keyframes ── */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatBlobA {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-28px, 16px, 0) scale(1.1); }
}

@keyframes floatBlobB {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(26px, -18px, 0) scale(1.12); }
}

@keyframes floatBlobC {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 22px, 0) scale(1.08); }
}

@keyframes scrollDot {
  0% { opacity: 0.8; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(10px); }
  100% { opacity: 0.6; transform: translateY(0); }
}

@keyframes scrollNudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}
