:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --surface-strong: #e2e8f0;
  --text: #0f172a;
  --muted: #475569;
  --muted-soft: #64748b;
  --line: #dbe4f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --success: #047857;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: var(--text);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 228, 240, 0.9);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand-link {
  text-decoration: none;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.brand-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-name-dark {
  color: var(--text);
}

.brand-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.main-nav a,
.footer-nav a,
.section-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover,
.footer-nav a:hover,
.section-link:hover,
.main-nav a.is-active {
  color: var(--accent);
}

.hero,
.page-hero {
  padding: 72px 0 52px;
}

.hero-home {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
    radial-gradient(circle at left center, rgba(14, 165, 233, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.page-hero-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
}

.hero-grid,
.page-hero-grid,
.feature-spotlight,
.content-split,
.dual-grid,
.section-heading-row,
.footer-top,
.section-intro,
.page-intro-panel {
  display: grid;
  gap: 24px;
}

.hero-grid,
.page-hero-grid,
.feature-spotlight,
.content-split,
.dual-grid,
.footer-top,
.section-intro,
.page-intro-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
}

.section-heading-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.eyebrow,
.section-kicker,
.hero-panel-label,
.insight-tag,
.roadmap-step,
.quick-link-label,
.trust-label {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1.12;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.05rem;
}

.lead,
.section-summary,
.footer-copy,
.info-card p,
.product-card p,
.spotlight-copy p,
.spotlight-list li,
.subpanel p,
.subpanel li,
.roadmap-card p,
.insight-card p,
.contact-row p,
.contact-link {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}

.section-summary.wide {
  max-width: 56ch;
}

.section-summary.compact {
  max-width: 44ch;
}

.hero-actions,
.app-links,
.compact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: #0f3db8;
  border-color: #0f3db8;
  box-shadow: 0 10px 24px rgba(15, 61, 184, 0.28);
}

.btn-secondary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.btn-primary:hover,
.btn-secondary:hover {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

.hero-stats,
.products-grid,
.roadmap-grid,
.insights-grid,
.quick-links-grid,
.three-up-grid,
.support-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.products-grid,
.roadmap-grid,
.insights-grid,
.quick-links-grid,
.three-up-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.panel,
.page-section,
.page-hero-card,
.stat-card,
.subpanel,
.product-card,
.roadmap-card,
.insight-card,
.quick-link-card,
.info-card,
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.panel,
.page-section,
.subpanel,
.page-hero-card,
.hero-panel {
  padding: 24px;
}

.page-main,
main {
  display: grid;
  gap: 24px;
  padding: 0 0 56px;
}

.page-main {
  padding-top: 24px;
}

.trust-strip {
  border-top: 1px solid rgba(219, 228, 240, 0.8);
  border-bottom: 1px solid rgba(219, 228, 240, 0.8);
  background: rgba(241, 245, 249, 0.75);
}

.trust-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted-soft);
  font-weight: 600;
}

.stat-card,
.product-card,
.roadmap-card,
.insight-card,
.quick-link-card,
.info-card {
  padding: 20px;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-card span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}

.hero-panel,
.page-hero-card {
  align-self: start;
}

.feature-checklist,
.spotlight-list,
.bullet-list,
.light-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-checklist li,
.spotlight-list li,
.bullet-list li {
  position: relative;
  padding: 0 0 14px 20px;
}

.feature-checklist li::before,
.spotlight-list li::before,
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.quick-link-card,
.section-link {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-link-card {
  text-decoration: none;
  display: grid;
  gap: 10px;
  color: var(--text);
}

.quick-link-card:hover,
.section-link:hover {
  transform: translateY(-1px);
}

.product-card a,
.section-link,
.contact-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.product-badge.production {
  background: rgba(4, 120, 87, 0.12);
  color: var(--success);
}

.product-badge.planned {
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-dark);
}

.spotlight-aside {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.light-aside {
  border-left-color: var(--line);
}

.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-wide {
  grid-column: 1 / -1;
}

.support-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-row {
  display: grid;
  gap: 8px;
}

.contact-list-aligned {
  gap: 14px;
}

.contact-row-inline {
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.contact-row-inline .support-label {
  margin-bottom: 0;
  padding-top: 4px;
}

.contact-link {
  text-decoration: none;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-link-address {
  max-width: 42ch;
}

.roadmap-step,
.insight-tag {
  margin-bottom: 12px;
}

/* ── Screenshot showcase ─────────────────────────────────────────────── */
.demo-screenshots-section {
  padding: 32px;
}

.demo-screenshots-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.screenshot-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.screenshot-frame {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.screenshot-frame:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
  z-index: 2;
}

.screenshot-frame--top {
  position: relative;
  z-index: 3;
  margin-bottom: -32px;
}

.screenshot-frame--mid {
  position: relative;
  z-index: 2;
  margin-bottom: -32px;
  transform: scale(0.97) translateY(0);
  transform-origin: top center;
}

.screenshot-frame--bot {
  position: relative;
  z-index: 1;
  transform: scale(0.94) translateY(0);
  transform-origin: top center;
}

.screenshot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--line);
}

.screenshot-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.screenshot-dot:nth-child(1) { background: #f87171; }
.screenshot-dot:nth-child(2) { background: #fbbf24; }
.screenshot-dot:nth-child(3) { background: #34d399; }

.screenshot-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 6px;
}

.screenshot-img-wrap {
  width: 100%;
  min-height: 240px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Placeholder shown when image src is missing (handled via onerror or naturally broken) */
.screenshot-img-wrap:not(:has(img[src^="./assets"])) {
  background: linear-gradient(135deg, #f1f5f9 0%, #e8f0fe 100%);
}

/* Fallback placeholder grid for missing images */
.screenshot-img-wrap[data-label]::after {
  content: "📂  " attr(data-label) "  — place in assets/screenshots/";
  display: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 48px 24px;
}

.screenshot-img-wrap img:not([src]),
.screenshot-img-wrap img[src=""] {
  display: none;
}

/* Reveal placeholder text when image is broken */
.screenshot-img[src*="assets"]:not([complete]) + .screenshot-placeholder-inner,
img.screenshot-img:error {
  display: flex;
}

/* ── Home page teaser (stacked peek) ─────────────────────────────────── */
.home-screenshot-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

.teaser-copy {
  display: grid;
  gap: 4px;
  align-content: start;
}

.teaser-screens {
  position: relative;
  height: 280px;
}

.teaser-frame {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.10);
  background: #fff;
}

.teaser-frame--back {
  width: 84%;
  right: 0;
  top: 28px;
  opacity: 0.5;
  transform: scale(0.96) rotate(1.5deg);
  transform-origin: bottom right;
}

.teaser-frame--front {
  width: 88%;
  left: 0;
  top: 0;
  z-index: 2;
}

/* ── Screenshot section responsive ──────────────────────────────────── */
@media (max-width: 960px) {
  .home-screenshot-teaser {
    grid-template-columns: 1fr;
  }

  .teaser-screens {
    height: 220px;
  }

  .demo-screenshots-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .screenshot-frame--mid {
    transform: scale(0.98);
  }

  .screenshot-frame--bot {
    transform: scale(0.96);
  }
}

@media (max-width: 680px) {
  .teaser-screens {
    display: none;
  }

  .screenshot-frame--top { margin-bottom: -20px; }
  .screenshot-frame--mid { margin-bottom: -20px; }
}

/* ── CTA banner ───────────────────────────────────────────────────────── */
.cta-banner,
.light-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.cta-banner .section-summary,
.light-cta .section-summary {
  max-width: 52ch;
}

/* ── Who it's for ─────────────────────────────────────────────────────── */
.who-its-for-section {
  display: grid;
  gap: 24px;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.who-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
}

.who-role {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.who-card p:not(.who-role) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer-light {
  background: #f8fafc;
}

.footer-top {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  margin-bottom: 18px;
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

small {
  color: var(--muted-soft);
}

@media (max-width: 960px) {
  .hero-grid,
  .page-hero-grid,
  .feature-spotlight,
  .content-split,
  .dual-grid,
  .page-intro-panel,
  .section-intro,
  .footer-top,
  .cta-banner,
  .light-cta,
  .section-heading-row {
    grid-template-columns: 1fr;
  }

  .who-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .spotlight-aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .trust-shell,
  .nav-shell {
    align-items: start;
    flex-direction: column;
  }
}

/* Testimonial and Proof Sections */
.testimonial-block {
  background: linear-gradient(135deg, var(--color-brand-light) 0%, var(--color-bg) 100%);
  border: 1px solid var(--color-border);
  max-width: 700px;
  margin: 40px auto;
}

.testimonial-card {
  padding: 0;
}

.testimonial-quote {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin: 0 0 24px 0;
  font-style: italic;
  font-weight: 500;
}

.testimonial-meta {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  margin-top: 20px;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 4px 0;
}

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

.proof-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
  margin: 48px 0;
}

.proof-shell {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.proof-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.proof-value {
  font-size: 1rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100vw - 24px, 1160px);
  }

  h1 {
    max-width: none;
    font-size: clamp(2.3rem, 10vw, 3.4rem);
  }

  .panel,
  .page-section,
  .subpanel,
  .page-hero-card,
  .hero-panel,
  .stat-card,
  .product-card,
  .roadmap-card,
  .insight-card,
  .quick-link-card,
  .info-card {
    padding: 20px;
    border-radius: 20px;
  }

  .main-nav,
  .footer-nav,
  .trust-items,
  .hero-actions,
  .app-links,
  .support-grid {
    gap: 10px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .contact-row-inline {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-row-inline .support-label {
    padding-top: 0;
  }
}
