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

/* Ghost card width classes */
.kg-width-wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.kg-width-full { max-width: none; }

:root {
  --bg: #09090b;
  --bg2: #151518;
  --bg3: #1e1e22;
  --border: #303038;
  --text: #e8e8e8;
  --text-muted: #a7b0cb;
  --accent: #7c6af7;
  --accent-light: #9b8cf9;
  --green: #4ade80;
  --max: 1120px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* NAV */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
.nav-logo img {
  height: 20px;
  width: auto;
}
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
a:has(.logo):hover { text-decoration: none; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; }
.nav-links li a { color: var(--text); font-size: 0.9375rem; font-weight: 700; }
.nav-links li a:hover { color: #fff; text-decoration: none; }
.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
.btn-nav:hover { background: var(--accent-light); text-decoration: none !important; }

/* NAV ACTIONS (sign in + CTA) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent-light); text-decoration: none; }
.nav-cta-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-cta-outline:hover {
  background: rgba(124, 106, 247, 0.1);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 1.5rem;
  padding: 0.25rem;
  cursor: pointer;
}

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.nav-overlay.active { display: flex; }
.nav-overlay a {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.nav-overlay a:hover { color: var(--accent-light); text-decoration: none; }
.nav-overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--accent-light);
  font-size: 2rem;
  cursor: pointer;
}

.eyebrow {
  font-size: .8rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .24px;
  font-weight: 600;
}

/* HERO */
.hero {
  padding: 5rem 0;
}
.hero-badge {
  display: inline-block;
  background: #1c1a2e;
  border: 1px solid #3d3580;
  color: var(--accent-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8125rem;
  margin-bottom: 28px;
}
.hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  max-width: 960px;
}
.hero h1 .highlight { color: var(--accent-light); }
.hero p {
  max-width: 820px;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 2.6vw, 1.4375rem);
  line-height: 1.45;
  margin: 0 0 28px;
}
.hero .small {
  margin-top: .8rem;
  color: var(--text-muted);
  font-size: .9rem;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: .8rem 1.5rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent-light); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  padding: .8rem 1.5rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-block;
}
.btn-secondary:hover { border-color: #555; text-decoration: none; }

/* WORKS WITH */
.works-with {
  text-align: center;
  padding: 40px 24px 80px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.works-with-logos {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.works-with-logos span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #555;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* SECTION */
section { padding: 80px 24px; max-width: var(--max); margin: 0 auto; }

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-label-sub {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 56px;
}

/* PROBLEM */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.problem-quote {
  background: var(--bg2);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text-muted);
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.step {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.step-num {
  width: 36px;
  height: 36px;
  background: #1c1a2e;
  border: 1px solid #3d3580;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 16px;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.step p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* CODE */
.code-block {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-x: auto;
  margin-top: 48px;
}
.code-comment { color: #555; }
.code-key { color: #7c6af7; }
.code-string { color: #4ade80; }
.code-fn { color: #60a5fa; }

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.feature-icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.feature h3 { font-size: 1rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.875rem; }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
  align-items: center;
}
.pricing-grid-centered {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}
.pricing-card.featured {
  border-color: var(--accent);
  position: relative;
}
.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.pricing-name { font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.pricing-price { font-size: 3rem; font-weight: 800; letter-spacing: -2px; margin-bottom: 4px; }
.pricing-price span { font-size: 1.125rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.75rem; }
.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--green); font-size: 1rem; }
.btn-plan {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: block;
  text-align: center;
}
.btn-plan-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-plan-filled {
  background: var(--accent);
  color: #fff;
}
.btn-plan:hover { opacity: 0.85; text-decoration: none; }

/* FAQ */
.faq-list { margin-top: 48px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq-q { font-size: 1.0625rem; font-weight: 600; margin-bottom: 10px; }
.faq-a { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* WHY PAGE */
.why-section {
  padding: 80px 24px;
  max-width: 900px;
  margin: 0 auto;
}
.why-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.why-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
}
.why-block h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.why-block p {
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.why-block p:last-child { margin-bottom: 0; }

.badge-problem {
  background: #F29F05;
  color: #000;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 0.25em;
  display: inline-block;
  line-height: 1.4;
  transform: rotate(-1.5deg);
}
.badge-impact {
  background: var(--green);
  color: #000;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 0.25em;
  display: inline-block;
  line-height: 1.4;
  transform: rotate(-1.5deg);
}
.badge-solution {
  background: #ffdf00;
  color: #000;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 0.25em;
  display: inline-block;
  line-height: 1.4;
  transform: rotate(-1.5deg);
}

/* CTA BOTTOM */
.cta-bottom {
  text-align: center;
  background: linear-gradient(135deg, #0d0b1e, #111);
  border: 1px solid #2a2060;
  border-radius: 20px;
  padding: 80px 40px;
  margin: 0 24px 80px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.cta-bottom h2 { font-size: clamp(1.75rem, 4vw, 2.625rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.cta-bottom p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 2.25rem; }
.cta-bottom-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.footer-links {
  display: flex;
  gap: 24px;
}

/* PAGE (generic Ghost page) */
.page-full {
  max-width: 760px;
  margin: 80px auto;
  padding: 0 24px;
}
.page-full h1 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.post-feature-image {
  margin-bottom: 40px;
}
.post-feature-image img {
  width: 100%;
  border-radius: 8px;
}

/* LEGAL PAGE */
.legal-page {
  max-width: 760px;
  margin: 80px auto;
  padding: 0 24px;
}
.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.legal-updated {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 40px;
}

/* WAITLIST FORM */
.waitlist-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.waitlist-form input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9375rem;
  width: 280px;
  outline: none;
}
.waitlist-form input:focus { border-color: var(--accent); }
.waitlist-form input::placeholder { color: #555; }

/* FORM STATES */
.form-error {
  display: none;
  margin-top: 12px;
  color: #f87171;
  font-size: 0.875rem;
}
.form-loading .btn-primary {
  opacity: 0.6;
  pointer-events: none;
}

/* GH-CONTENT (Ghost page/post content) */
.gh-content {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px;
  font-size: 1.125rem;
  line-height: 1.7;
}
.gh-content h1, .gh-content h2, .gh-content h3 { margin: 2em 0 0.5em; }
.gh-content p { margin-bottom: 1.2em; }
.gh-content a { color: var(--accent-light); }
.gh-content img { max-width: 100%; border-radius: 8px; }

@media (max-width: 600px) {
  .site-nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .hero { margin: 60px auto 60px; }
  .site-footer { flex-direction: column; text-align: center; }
  .blog-feed { grid-template-columns: 1fr; }
  .blog-header { margin: 60px auto 40px; }
  .blog-post-header { margin: 60px auto 0; }
}

/* ==================== BLOG ==================== */

/* Blog header */
.blog-header {
  max-width: 760px;
  margin: 60px auto 60px;
  padding: 0 24px;
  text-align: center;
}

/* Blog search */
.blog-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  background: rgba(124, 106, 247, 0.08);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.blog-search-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}
.blog-search-btn:hover {
  background: rgba(124, 106, 247, 0.18);
  box-shadow: 0 0 12px rgba(124, 106, 247, 0.15);
}

/* Blog feed grid */
.blog-feed {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

/* Blog card */
.blog-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.blog-card:hover {
  border-color: var(--accent);
}
.blog-card-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-content {
  padding: 24px;
}
.blog-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 10px;
}
.blog-card-tag:hover { text-decoration: none; }
.blog-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-card-title a {
  color: var(--text);
}
.blog-card-title a:hover {
  color: var(--accent-light);
  text-decoration: none;
}
.blog-card-excerpt {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.blog-card-meta {
  display: flex;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Blog pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.blog-pagination-info {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Blog post */
.blog-post {
  max-width: 760px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.blog-post-header {
  text-align: center;
  margin: 100px auto 48px;
  max-width: 760px;
  padding: 0 24px;
}
.blog-post-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.blog-post-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}
.blog-post-image {
  margin: 0 0 48px;
}
.blog-post-image img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.blog-post-image figcaption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 12px;
}
.blog-post-footer {
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

/* ─── PRODUCT TOUR ─── */
.tour {
  max-width: var(--max);
  margin: 0 auto;
  padding: 5rem 2rem 0;
}
.tour h2 {
  color: var(--offwhite);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.tour>p {
  color: var(--text-faint);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  max-width: 500px;
}

.tour-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 8rem;
}

.tour-item:nth-child(even) {
  direction: rtl;
}

.tour-item:nth-child(even)>* {
  direction: ltr;
}

.tour-screenshot {
  width: 100%;
  background: var(--oil);
  border: 1px solid var(--gold-border-md);
  border-radius: var(--radius-card);
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: rgba(201, 178, 72, 0.3);
  overflow: hidden;
}

.tour-screenshot img,
.tour-screenshot video {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.tour-text h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--offwhite);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.tour-text p {
  color: rgba(240, 237, 229, 0.65);
  font-size: 1rem;
  line-height: 1.7;
}

.tour-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 8rem;
}
.tour-pair .tour-text {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

@media (max-width: 768px) {
  .tour-pair { grid-template-columns: 1fr; }
}

/* ─── PLANS COMPARE TABLE ─── */
.plans-compare {
  margin-top: 5rem;
  padding: 0 2rem 6rem;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.plans-compare h3 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 2rem;
}
.plans-compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.plans-compare th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  border-bottom: 2px solid var(--accent);
  color: var(--accent);
}
.plans-compare th:first-child {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.plans-compare td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.plans-compare td:first-child {
  font-weight: 500;
  color: var(--text);
}
.plans-compare td small {
  display: block;
  font-size: 0.75rem;
  color: rgba(167, 176, 203, 0.5);
}
.plans-compare .group-row td {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 3rem;
  border-bottom: 1px solid rgba(124, 106, 247, 0.2);
  font-weight: 900;
}
.plans-compare .cmark { font-weight: 700; color: var(--accent); }
.plans-compare .xmark { color: rgba(232, 232, 232, 0.15); }

@media (max-width: 768px) {
  .plans-compare { padding: 0 0 4rem; }
  .plans-compare table { font-size: 0.78rem; }
  .plans-compare th,
  .plans-compare td { padding: 0.65rem 0.5rem; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
