/* DraughtAI — global styles */
:root {
  --c-bg: #ffffff;
  --c-bg-soft: #f8fafc;
  --c-bg-grid: #f1f5f9;
  --c-ink: #0f172a;
  --c-ink-soft: #475569;
  --c-ink-mute: #94a3b8;
  --c-line: #e2e8f0;
  --c-line-soft: #f1f5f9;
  --c-brand: #1e3a8a;
  --c-brand-600: #1d4ed8;
  --c-brand-700: #1e40af;
  --c-brand-50: #eff6ff;
  --c-accent: #ea580c;
  --c-accent-50: #fff7ed;
  --c-success: #15803d;
  --c-warn: #b45309;
  --c-danger: #b91c1c;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 4px 6px -2px rgba(15,23,42,.05), 0 8px 16px -4px rgba(15,23,42,.08);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,.08), 0 20px 40px -8px rgba(15,23,42,.12);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--c-brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.5em; color: var(--c-ink); }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--c-ink-soft); }
code, pre { font-family: var(--font-mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 3rem 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
/* Glass nav over a dark video hero */
.site-header.is-overlay {
  position: fixed; left: 0; right: 0; top: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,0) 100%);
  border-bottom-color: transparent;
  color: #fff;
}
.site-header.is-overlay .brand,
.site-header.is-overlay .nav-links a,
.site-header.is-overlay .nav-toggle svg { color: #fff; stroke: #fff; }
.site-header.is-overlay .nav-links a:hover { color: #fff; }
.site-header.is-overlay .btn-secondary {
  background: rgba(255,255,255,.06); color: #fff;
  border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.site-header.is-overlay .btn-secondary:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); color:#fff; }
.site-header.is-overlay .brand-mark {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}
.site-header.is-overlay.is-scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--c-line);
  color: var(--c-ink);
}
.site-header.is-overlay.is-scrolled .brand,
.site-header.is-overlay.is-scrolled .nav-links a,
.site-header.is-overlay.is-scrolled .nav-toggle svg { color: var(--c-ink); stroke: var(--c-ink); }
.site-header.is-overlay.is-scrolled .nav-links a:hover { color: var(--c-ink); }
.site-header.is-overlay.is-scrolled .btn-secondary {
  background: #fff; color: var(--c-ink); border-color: var(--c-line);
}
.site-header.is-overlay.is-scrolled .brand-mark {
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--c-ink); font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .95rem;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--c-ink-soft); font-weight: 500; font-size: 0.94rem;
}
.nav-links a:hover { color: var(--c-ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--c-ink); }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-secondary { display: none; }
  .mobile-menu.open { display: block; }
  .mobile-menu {
    display: none;
    border-top: 1px solid var(--c-line); background: #fff; padding: 16px 24px 24px;
  }
  .mobile-menu a { display: block; padding: 10px 0; color: var(--c-ink); font-weight: 500; border-bottom: 1px solid var(--c-line-soft); }
  .mobile-menu a:last-child { border: 0; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 0.94rem;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--c-brand-600); color: #fff; }
.btn-primary:hover { background: #1e40af; transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff; }
.btn-secondary { background: #fff; color: var(--c-ink); border-color: var(--c-line); }
.btn-secondary:hover { background: var(--c-bg-soft); border-color: #cbd5e1; color: var(--c-ink); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: #c2410c; color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--c-ink); }
.btn-ghost:hover { background: var(--c-bg-soft); }
.btn-lg { padding: 14px 24px; font-size: 1rem; }

/* === Sections === */
section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-brand-600); font-weight: 700; margin-bottom: 12px;
}
.lead {
  font-size: 1.18rem; color: var(--c-ink-soft); max-width: 680px; margin-bottom: 1.5em;
}

/* === Hero === */
.hero {
  position: relative;
  padding: 80px 0 100px;
  background:
    radial-gradient(1200px 500px at 90% -100px, rgba(29,78,216,.08), transparent 60%),
    linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 56px 0 64px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--c-brand-50); color: var(--c-brand-700); font-size: 0.84rem; font-weight: 600;
  border: 1px solid #dbeafe; margin-bottom: 20px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .accent { color: var(--c-brand-600); }
.hero-meta {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px;
  color: var(--c-ink-mute); font-size: 0.86rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* CAD preview card */
.cad-card {
  position: relative; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cad-card-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-soft);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--c-ink-mute);
}
.cad-card-head .dots { display: flex; gap: 5px; }
.cad-card-head .dots span { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.cad-card-head .dots span:nth-child(1){ background:#f87171; }
.cad-card-head .dots span:nth-child(2){ background:#fbbf24; }
.cad-card-head .dots span:nth-child(3){ background:#34d399; }
.cad-card-body { padding: 0; background: #fcfdff; }
.cad-svg { width: 100%; height: auto; display: block; }
.cad-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-top: 1px solid var(--c-line);
  background: #fff; font-family: var(--font-mono); font-size: 0.78rem; color: var(--c-ink-soft);
}
.cad-card-foot .ok { color: var(--c-success); font-weight: 600; }

/* === Trust bar === */
.trust-bar { padding: 36px 0; border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: #fff; }
.trust-bar p { font-size: 0.84rem; text-align: center; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-ink-mute); margin: 0 0 18px; font-weight: 600; }
.trust-row { display: flex; justify-content: center; align-items: center; gap: 36px; flex-wrap: wrap; }
.trust-row span {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--c-ink-soft);
  border: 1px dashed var(--c-line); padding: 8px 14px; border-radius: 6px; background: #fff;
}

/* === Features grid === */
.features { background: var(--c-bg-soft); }
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px;
}
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 28px; transition: all .2s ease;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #cbd5e1; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--c-brand-50); color: var(--c-brand-600);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: 0.94rem; margin: 0; }

/* === Steps / How it works === */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
@media (max-width: 880px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step {
  position: relative; padding: 24px;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--c-ink); color: #fff; font-weight: 700; font-size: 0.9rem;
  font-family: var(--font-mono); margin-bottom: 12px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; margin: 0; }

/* === Compliance / Standards === */
.standards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
@media (max-width: 880px) { .standards-grid { grid-template-columns: 1fr; } }
.standard {
  background: #fff; border: 1px solid var(--c-line); border-radius: 12px;
  padding: 22px; display: flex; gap: 14px; align-items: flex-start;
}
.standard-tag {
  font-family: var(--font-mono); font-weight: 700; font-size: .82rem;
  color: var(--c-brand-700); background: var(--c-brand-50);
  border: 1px solid #dbeafe; padding: 4px 8px; border-radius: 6px;
  white-space: nowrap;
}
.standard p { margin: 4px 0 0; font-size: .92rem; }

/* === Pricing === */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 28px; transition: all .2s ease;
}
.plan:hover { box-shadow: var(--shadow-md); }
.plan.featured {
  border-color: var(--c-brand-600); box-shadow: 0 0 0 3px rgba(29,78,216,.08), var(--shadow-md);
  position: relative;
}
.plan.featured::before {
  content: "Most Popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--c-brand-600); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 1.1rem; margin-bottom: 4px; }
.plan-tag { color: var(--c-ink-mute); font-size: .9rem; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-price .amt { font-size: 2.2rem; font-weight: 800; color: var(--c-ink); letter-spacing: -0.02em; }
.plan-price .per { color: var(--c-ink-mute); font-size: .9rem; }
.plan-vat { font-size: .76rem; color: var(--c-ink-mute); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; }
.plan ul li {
  position: relative; padding: 6px 0 6px 24px; font-size: .94rem; color: var(--c-ink-soft);
  border-bottom: 1px dashed var(--c-line-soft);
}
.plan ul li:last-child { border-bottom: 0; }
.plan ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231d4ed8'%3E%3Cpath fill-rule='evenodd' d='M16.704 5.296a1 1 0 010 1.408l-8 8a1 1 0 01-1.408 0l-4-4a1 1 0 011.408-1.408L8 12.584l7.296-7.288a1 1 0 011.408 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}
.plan .btn { margin-top: auto; width: 100%; }

/* === FAQ === */
.faq-list { margin-top: 32px; max-width: 880px; }
.faq-item {
  border-bottom: 1px solid var(--c-line);
  padding: 18px 0;
}
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer; font-weight: 600; color: var(--c-ink); font-size: 1.02rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; color: var(--c-brand-600); font-size: 1.4rem; font-weight: 400;
  transition: transform .2s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding-top: 12px; color: var(--c-ink-soft); font-size: .96rem; }

/* === Testimonial / Founder note === */
.founder-note {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 36px; max-width: 920px; margin: 0 auto;
}
.founder-quote { font-size: 1.15rem; color: var(--c-ink); line-height: 1.55; font-style: italic; margin-bottom: 18px; }
.founder-meta { display: flex; align-items: center; gap: 12px; }
.founder-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: .02em;
}
.founder-meta strong { color: var(--c-ink); }
.founder-meta span { display: block; font-size: .86rem; color: var(--c-ink-mute); }

/* === CTA strip === */
.cta-strip {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; margin: 0 0 6px; }
.cta-strip p { color: #cbd5e1; margin: 0; }
.cta-strip .btn-primary { background: #fff; color: var(--c-brand-700); }
.cta-strip .btn-primary:hover { background: #f1f5f9; color: var(--c-brand-700); }

/* === Footer === */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 64px 0 32px; margin-top: 80px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid #1e293b;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-grid h4 { color: #fff; font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #94a3b8; font-size: .92rem; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-brand { color: #fff; font-weight: 700; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.footer-blurb { color: #94a3b8; font-size: .92rem; line-height: 1.6; max-width: 320px; }
.footer-meta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  padding-top: 22px; gap: 12px;
  font-size: .82rem; color: #64748b;
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: #94a3b8; }

/* === Generic content pages (legal) === */
.doc { padding: 64px 0; }
.doc h1 { margin-bottom: 8px; }
.doc .meta { color: var(--c-ink-mute); font-size: .92rem; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--c-line); }
.doc h2 { margin-top: 36px; font-size: 1.4rem; }
.doc h3 { margin-top: 24px; font-size: 1.08rem; }
.doc p, .doc li { color: var(--c-ink); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* === Forms === */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.form-row input, .form-row textarea, .form-row select {
  padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 8px;
  font: inherit; color: var(--c-ink); background: #fff;
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: 2px solid var(--c-brand-600); outline-offset: 1px; border-color: var(--c-brand-600);
}
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
@media (max-width: 880px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 22px;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-card a { font-weight: 600; }

/* === Cookie banner === */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 720px; margin: 0 auto;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: none; z-index: 100;
  align-items: center; gap: 18px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; font-size: .9rem; flex: 1; min-width: 240px; }
.cookie-banner .btns { display: flex; gap: 8px; }

/* === Cinematic video hero === */
.video-hero {
  position: relative; overflow: hidden;
  min-height: 92vh;
  color: #fff;
  isolation: isolate;
}
.video-hero .hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.video-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,.6) 50%, rgba(15,23,42,.78) 100%),
    radial-gradient(800px 500px at 70% 30%, rgba(234,88,12,.18), transparent 60%);
}
.video-hero .container {
  position: relative; z-index: 1;
  display: flex; align-items: center; min-height: 92vh;
  padding-top: 96px; padding-bottom: 80px;
}
.video-hero-inner { max-width: 760px; }
.video-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  letter-spacing: -0.03em; line-height: 1.05;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.video-hero h1 .accent {
  background: linear-gradient(120deg, #fdba74 0%, #f97316 50%, #fbbf24 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.video-hero p.lead { color: rgba(255,255,255,.85); max-width: 600px; font-size: 1.18rem; }
.video-hero .hero-badge { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); backdrop-filter: blur(8px); }
.video-hero .hero-meta { color: rgba(255,255,255,.6); }
.video-hero .hero-meta svg { fill: #34d399; }
.video-hero .btn-secondary { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.video-hero .btn-secondary:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.4); }

/* scroll-down indicator */
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  color: rgba(255,255,255,.55); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase;
  display: flex; align-items: center; flex-direction: column; gap: 8px;
  z-index: 1; pointer-events: none;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.0), rgba(255,255,255,.7) 50%, rgba(255,255,255,0));
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0% { transform: translateY(-6px); opacity:.2; } 50% { opacity:1; } 100% { transform: translateY(8px); opacity:.2; } }

/* === Visual showcase grid === */
.showcase {
  display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 280px 280px;
  gap: 16px; margin-top: 40px;
}
@media (max-width: 880px) {
  .showcase { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 220px); }
}
.showcase-tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 1px solid var(--c-line); background: #0f172a;
}
.showcase-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.showcase-tile:hover img { transform: scale(1.03); }
.showcase-tile .label {
  position: absolute; left: 16px; bottom: 14px; right: 16px; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.showcase-tile .label strong { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.showcase-tile .label small { color: rgba(255,255,255,.7); font-size: .8rem; font-family: var(--font-mono); }
.showcase-tile.tall { grid-row: span 2; }

/* === Image + text split rows === */
.image-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 880px) { .image-row { grid-template-columns: 1fr; gap: 32px; } }
.image-row img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-line);
}
.image-row.flip > :first-child { order: 2; }
@media (max-width: 880px) { .image-row.flip > :first-child { order: 0; } }

/* === Dark CTA with image === */
.cta-banner {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 80px 56px; color: #fff;
  isolation: isolate;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: var(--cta-bg, none);
  background-size: cover; background-position: center;
}
.cta-banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgba(15,23,42,.85) 0%, rgba(15,23,42,.55) 60%, rgba(15,23,42,.35) 100%);
}
.cta-banner h2 { color: #fff; max-width: 560px; }
.cta-banner p { color: rgba(255,255,255,.8); max-width: 520px; }
.cta-banner .btn-primary { background: #fff; color: var(--c-brand-700); }
.cta-banner .btn-primary:hover { background: #f1f5f9; color: var(--c-brand-700); }

/* === Quick-stat strip === */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 40px 0;
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
@media (max-width: 720px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-size: 2.2rem; font-weight: 800; color: var(--c-ink); letter-spacing: -0.03em; }
.stat .num small { font-size: 1rem; vertical-align: super; color: var(--c-brand-600); }
.stat .lbl { font-size: .82rem; color: var(--c-ink-mute); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }

/* === Live demo iframe === */
.live-demo {
  background: linear-gradient(180deg, #0f172a 0%, #0b1224 100%);
  color: #fff;
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.live-demo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.live-demo .container { position: relative; z-index: 1; }
.live-demo-head { text-align: center; margin-bottom: 36px; }
.live-demo-head h2 { color: #fff; }
.live-demo-head .lead { color: rgba(255,255,255,.75); max-width: 680px; }
.live-demo-frame {
  background: #0b1224;
  border: 1px solid rgba(56,189,248,.22);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(56,189,248,.25), 0 0 0 1px rgba(255,255,255,.04) inset;
  overflow: hidden;
}
.live-demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  background: rgba(15,23,42,.95);
  border-bottom: 1px solid rgba(56,189,248,.12);
  font-family: var(--font-mono); font-size: 0.82rem; color: rgba(255,255,255,.65);
}
.live-demo-chrome .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.live-demo-chrome .dot.r { background: #ef4444; }
.live-demo-chrome .dot.y { background: #f59e0b; }
.live-demo-chrome .dot.g { background: #10b981; }
.live-demo-chrome .addr {
  flex: 1; margin-left: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 4px 12px; border-radius: 6px;
  color: rgba(255,255,255,.6);
}
.live-demo-chrome .addr b { color: #fff; font-weight: 600; }
.live-demo-chrome .open-tab {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(56,189,248,.12); color: #38bdf8; text-decoration: none;
  font-size: 1rem;
}
.live-demo-chrome .open-tab:hover { background: rgba(56,189,248,.25); text-decoration: none; }
.live-demo-frame iframe {
  display: block; width: 100%; height: 640px; border: 0; background: #0b1224;
}
@media (max-width: 720px) { .live-demo-frame iframe { height: 480px; } }
.live-demo-cta {
  display: flex; gap: 16px; align-items: center; justify-content: center;
  flex-wrap: wrap; margin-top: 28px;
}
.live-demo-cta .btn-primary { background: #38bdf8; color: #0b1224; }
.live-demo-cta .btn-primary:hover { background: #7dd3fc; color: #0b1224; }

/* === Animated reveal === */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* === Utility === */
.text-center { text-align: center; }
.muted { color: var(--c-ink-mute); }
.small { font-size: .88rem; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--c-bg-soft); border: 1px solid var(--c-line); color: var(--c-ink-soft); }
.tag-success { background: #f0fdf4; border-color: #bbf7d0; color: var(--c-success); }
.tag-warn { background: var(--c-accent-50); border-color: #fed7aa; color: var(--c-warn); }

/* === Live AI demo (homepage) === */
.live-demo {
  padding: 88px 0 64px;
  position: relative;
  background:
    radial-gradient(1100px 500px at 50% 0%, rgba(56,189,248,.10), transparent 70%),
    linear-gradient(180deg, #050912 0%, #0b1120 100%);
  color: #e2e8f0;
  margin-top: 64px;
  overflow: hidden;
}
.live-demo::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(56,189,248,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
.live-demo .container { position: relative; z-index: 1; }
.live-demo-head { text-align: center; max-width: 780px; margin: 0 auto 36px; }
.live-demo-head h2 { color: #fff; }
.live-demo-head .lead { color: #94a3b8; }
.live-demo-frame {
  position: relative; border-radius: 16px;
  background: rgba(11,17,32,.7);
  box-shadow:
    0 0 0 1px rgba(56,189,248,.2) inset,
    0 40px 80px -20px rgba(0,0,0,.7),
    0 0 80px -20px rgba(56,189,248,.3);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.live-demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(15,23,42,.95), rgba(11,17,32,.95));
  border-bottom: 1px solid rgba(56,189,248,.15);
}
.live-demo-chrome .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #475569; box-shadow: 0 0 0 1px rgba(0,0,0,.3) inset;
}
.live-demo-chrome .dot.r { background: #ef4444; }
.live-demo-chrome .dot.y { background: #f59e0b; }
.live-demo-chrome .dot.g { background: #10b981; }
.live-demo-chrome .addr {
  flex: 1; margin-left: 14px;
  background: rgba(5,9,18,.6); border: 1px solid rgba(56,189,248,.1);
  padding: 6px 14px; border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem;
  color: #94a3b8; letter-spacing: .02em;
}
.live-demo-chrome .addr b { color: #38bdf8; font-weight: 600; }
.live-demo-chrome .open-tab {
  font-size: 1rem; color: #94a3b8; padding: 4px 10px; border-radius: 6px;
  text-decoration: none; transition: all .15s;
}
.live-demo-chrome .open-tab:hover { color: #38bdf8; background: rgba(56,189,248,.08); }
.live-demo-frame iframe {
  display: block; width: 100%; height: 820px; border: 0;
  background: #050912;
}
.live-demo-cta {
  margin-top: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
@media (max-width: 820px) {
  .live-demo-frame iframe { height: 1200px; }
  .live-demo-chrome .addr { font-size: .7rem; }
  .live-demo { padding: 56px 0 40px; }
}
