/* ─────────────────────────────────────────────────────────────
   Capraseo marketing site (capraseo.com)
   Premium dark palette + Inter. ploy.ai-grade polish: crafted
   product mockups, confident sections, reveal-on-scroll.
   ───────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;
  --bg: #0a0a0b;
  --panel: #121214;
  --panel-2: #17171a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #e8e8ea;
  --muted: #8a8a92;
  --muted-2: #5f5f67;
  --accent: #22c55e;
  --accent-2: #16a34a;
  --accent-dim: rgba(34, 197, 94, 0.14);
  --danger: #ff7a7a;
  --gold: #e6c47a;
  --maxw: 1080px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(34,197,94,0.07), transparent 60%),
    linear-gradient(180deg, #0c0c0e 0%, #0a0a0b 100%);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ── Reveal on scroll ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--text);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.22); }
.btn-primary {
  background: var(--accent); color: #06210f; border-color: transparent;
  font-weight: 600;
  box-shadow: 0 8px 24px -10px rgba(34,197,94,0.6);
}
.btn-primary:hover { background: #2bd968; box-shadow: 0 10px 30px -10px rgba(34,197,94,0.7); }
.btn-lg { padding: 14px 24px; font-size: 15px; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(10,10,11,0.66);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.brand-mark { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.muted { color: var(--muted); font-size: 14px; }
.nav-links a.muted:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { padding: 64px 0 44px; text-align: center; }
.hero .glyph-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.logo-glyph { width: 150px; height: 150px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 12px; color: var(--accent); font-weight: 600; margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05;
  font-weight: 700; letter-spacing: -0.03em; margin: 0 0 18px;
}
.hero h1 .accent { color: var(--accent); }
.hero .sub {
  font-size: clamp(16px, 2.2vw, 20px); color: var(--muted);
  max-width: 620px; margin: 0 auto 30px;
}
.hero-trust { color: var(--muted-2); font-size: 13px; margin: 22px 0 0; letter-spacing: .01em; }

/* ── Ask demo widget ─────────────────────────────────────────── */
.ask {
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8);
  overflow: hidden; text-align: left;
}
.ask-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.ask-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ask-head .domain { color: var(--text); font-weight: 500; }
.ask-head .demo-tag {
  margin-left: auto; font-size: 11px; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--accent-dim); color: var(--accent); font-weight: 600;
}
.ask-thread {
  padding: 18px 16px; min-height: 132px;
  display: flex; flex-direction: column; gap: 14px;
}
.ask-empty { color: var(--muted-2); font-size: 14px; align-self: center; margin: auto 0; }
.bubble { max-width: 86%; font-size: 14.5px; line-height: 1.6; }
.bubble.user {
  align-self: flex-end; background: var(--accent-dim);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 9px 13px; border-radius: 14px 14px 4px 14px; color: var(--text);
}
.bubble.ai { align-self: flex-start; color: var(--text); }
.bubble.ai p { margin: 0 0 9px; }
.bubble.ai p:last-child { margin-bottom: 0; }
.bubble.ai .stat { color: var(--accent); font-weight: 600; }
.caret { display: inline-block; width: 7px; height: 16px; vertical-align: -2px;
  background: var(--accent); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.ask-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ask-chip {
  font-size: 13px; padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--text); cursor: pointer; transition: background .15s, border-color .15s;
}
.ask-chip:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }
.ask-input-row { display: flex; gap: 8px; }
.ask-input-row input {
  flex: 1; background: #0e0e10; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 11px 16px; color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
}
.ask-input-row input:focus { border-color: rgba(34,197,94,0.4); }
.ask-send {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  border: none; background: var(--accent); color: #06210f; cursor: pointer;
  display: grid; place-items: center;
}
.bounce-note {
  margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center;
}
.bounce-note a { color: var(--accent); font-weight: 600; }

/* ── Trust / integration strip ───────────────────────────────── */
.trust-strip {
  margin: 8px auto 0; padding: 26px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  border-top: 1px solid var(--line);
}
.trust-label {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 11px; color: var(--muted-2); font-weight: 600;
}
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.trust-pill {
  font-size: 13px; color: var(--muted); font-weight: 500;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
}

/* ── Generic sections ────────────────────────────────────────── */
section { padding: 64px 0; }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: 12px;
  color: var(--accent); font-weight: 600; margin: 0 0 12px;
}
h2.section-title {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 700;
  letter-spacing: -0.025em; margin: 0 0 14px;
}
.section-lead { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 36px; }
.center-head { text-align: center; }
.center-head .section-lead { margin-left: auto; margin-right: auto; }

/* ── How it works (steps) ────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; padding: 28px 24px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(34,197,94,0.25); margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.step em { color: var(--text); font-style: normal; }

/* ── Feature rows (mockup + copy) ────────────────────────────── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; padding: 38px 0; }
.feature:nth-child(even) .feature-media { order: 2; }
.feature-kicker {
  text-transform: uppercase; letter-spacing: .12em; font-size: 11px;
  color: var(--accent); font-weight: 600; margin: 0 0 10px;
}
.feature h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.feature p { color: var(--muted); margin: 0; }
.feature em { color: var(--text); font-style: italic; }
.feature-media {
  aspect-ratio: 16/11; border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 28% 20%, rgba(34,197,94,0.12), transparent 58%),
    linear-gradient(180deg, var(--panel-2), #0d0d0f);
  display: grid; place-items: center; position: relative; overflow: hidden;
  padding: 22px;
}

/* ── Crafted product mockups ─────────────────────────────────── */
.mock {
  width: 100%; max-width: 360px;
  background: #0e0e11; border: 1px solid var(--line-strong);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px -28px rgba(0,0,0,0.9);
  font-size: 13px;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.mock-bar i:nth-child(1) { background: #ff5f57; opacity:.7; }
.mock-bar i:nth-child(2) { background: #febc2e; opacity:.7; }
.mock-bar i:nth-child(3) { background: #28c840; opacity:.7; }
.mock-bar-label { margin-left: 8px; color: var(--muted-2); font-size: 11px; }
.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

/* chat mockup */
.mock-chat .mq {
  align-self: flex-end; max-width: 80%;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.25);
  color: var(--text); padding: 7px 11px; border-radius: 12px 12px 3px 12px;
}
.mock-chat .mq.short { max-width: 60%; }
.mock-chat .ma { align-self: flex-start; max-width: 92%; color: var(--text); line-height: 1.5; }
.mock-chat .ma p { margin: 0 0 5px; }
.mock-chat .ma-stat { color: var(--muted); }
.mock-chat .ma-stat b { color: var(--accent); }

/* doc mockup */
.mock-doc .doc-title { font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.doc-line { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.08); }
.doc-line.w100 { width: 100%; } .doc-line.w95 { width: 95%; } .doc-line.w90 { width: 90%; }
.doc-line.w75 { width: 75%; } .doc-line.w60 { width: 60%; }
.doc-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.doc-tag { font-size: 11px; color: var(--muted); padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.doc-publish { margin-left: auto; font-size: 12px; font-weight: 600; color: #06210f; background: var(--accent); padding: 6px 11px; border-radius: 999px; }

/* connect mockup */
.connect-row { display: flex; align-items: center; gap: 11px; }
.g-badge { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: #fff; color: #4285f4; flex-shrink: 0; }
.connect-name { font-weight: 600; color: var(--text); }
.connect-meta { color: var(--muted-2); font-size: 11px; }
.connect-check { margin-left: auto; color: var(--accent); font-weight: 700; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin: 6px 0 2px; }
.spark span { flex: 1; background: linear-gradient(180deg, var(--accent), rgba(34,197,94,0.25)); border-radius: 3px 3px 0 0; }
.connect-stat { font-size: 12px; color: var(--muted); }
.connect-stat b { color: var(--accent); }

/* marketplace mockup */
.market-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.market-row:last-child { border-bottom: none; }
.market-dom { color: var(--text); }
.score { font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.score.good { color: var(--accent); background: var(--accent-dim); }
.score.mid { color: var(--gold); background: rgba(230,196,122,0.14); }
.score.bad { color: var(--danger); background: rgba(255,122,122,0.12); }

/* ── Funnel band ─────────────────────────────────────────────── */
.band {
  margin: 24px auto; max-width: var(--maxw);
  background: linear-gradient(120deg, rgba(34,197,94,0.12), rgba(34,197,94,0.03));
  border: 1px solid rgba(34,197,94,0.22); border-radius: 22px;
  padding: 44px 36px; text-align: center;
}
.band h2 { font-size: 28px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.02em; }
.band p { color: var(--muted); margin: 0 0 22px; }

/* ── Comparison table ────────────────────────────────────────── */
.cmp-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: linear-gradient(180deg, var(--panel-2), var(--panel));
}
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.cmp thead th.us { color: var(--accent); }
.cmp td.us { color: var(--text); font-weight: 500; }
.cmp td.us::before { content: "✓ "; color: var(--accent); }
.cmp td.them { color: var(--muted); }
.cmp .us { background: rgba(34,197,94,0.04); }
.cmp tbody tr:hover { background: rgba(255,255,255,0.02); }
.cmp tbody tr:hover .us { background: rgba(34,197,94,0.07); }

/* ── Pricing teaser ──────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 28px 24px;
}
.price-card.featured {
  border-color: rgba(34,197,94,0.45);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.15) inset, 0 24px 60px -36px rgba(34,197,94,0.5);
  transform: translateY(-6px);
}
.price-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: #06210f; background: var(--accent); padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { margin: 0 0 6px; font-size: 17px; }
.price-card .amt { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.price-card .amt span { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.price-card li { color: var(--muted); font-size: 14px; padding: 6px 0 6px 24px; position: relative; }
.price-card li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq summary { cursor: pointer; font-weight: 500; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

/* ── Final CTA ───────────────────────────────────────────────── */
.final-cta { padding: 80px 0; }
.final-cta .wrap {
  position: relative; text-align: center;
  border: 1px solid rgba(34,197,94,0.22); border-radius: 26px;
  background: linear-gradient(180deg, rgba(34,197,94,0.08), rgba(34,197,94,0.02));
  padding: 64px 32px; overflow: hidden;
}
.final-glow {
  position: absolute; inset: auto 0 -60% 0; height: 60%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(34,197,94,0.25), transparent 70%);
  pointer-events: none;
}
.final-cta h2 { position: relative; font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 14px; line-height: 1.08; }
.final-cta h2 .accent { color: var(--accent); }
.final-cta p { position: relative; color: var(--muted); max-width: 520px; margin: 0 auto 26px; font-size: 17px; }
.final-cta .final-fine { color: var(--muted-2); font-size: 13px; margin: 18px 0 0; }

/* ── Footer ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted-2); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ── Blog ────────────────────────────────────────────────────── */
.post-list { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.post-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.post-row-main { flex: 1; min-width: 0; }
.post-thumb {
  width: 112px; height: 72px; object-fit: cover; border-radius: 10px;
  flex-shrink: 0; border: 1px solid var(--line);
}
.post-row h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.post-row p { margin: 0; color: var(--muted); font-size: 14.5px; }
.post-row time { color: var(--muted-2); font-size: 13px; flex-shrink: 0; white-space: nowrap; }
.post { max-width: 720px; margin: 0 auto; }
.post-hero {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 14px; margin: 0 0 30px; border: 1px solid var(--line); display: block;
}
.post-head { padding: 40px 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.post-head h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 14px; }
.post-head time { color: var(--muted); font-size: 14px; }
.post-body { font-size: 17px; line-height: 1.75; color: #d6d6da; }
.post-body h2 { font-size: 25px; margin: 38px 0 14px; color: var(--text); letter-spacing: -0.02em; }
.post-body h3 { font-size: 20px; margin: 28px 0 10px; color: var(--text); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body code { background: var(--panel-2); padding: 2px 6px; border-radius: 5px; font-size: 0.9em; }
.post-body blockquote { border-left: 3px solid var(--accent); margin: 22px 0; padding: 4px 0 4px 18px; color: var(--muted); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .feature-media { order: 0; }
  .feature-media { aspect-ratio: auto; padding: 26px; }
  .mock { max-width: 420px; margin: 0 auto; }
  .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .nav-links { gap: 16px; }
  .nav-links .hide-sm { display: none; }
  .final-cta .wrap { padding: 48px 22px; }
}
