/* cebula.ai — shared styles for cebula.ai and the Eva product page.
   Colours: cebula ink #15171C + lime #C8F04A; Eva pages (body.eva) switch the accent to Eva's blue→teal. */
:root {
  --ink: #15171c;
  --ink-2: #1b1e25;
  --surface: #20242c;
  --surface-2: #272c36;
  --line: #2e3440;
  --line-strong: #3b4252;
  --text: #f3f5f8;
  --muted: #9aa2b0;
  --dim: #6c7484;
  --lime: #c8f04a;
  --lime-ink: #1a1f08;
  --eva-blue: #5aa2ff;
  --eva-teal: #36d1c0;
  --accent: var(--lime);
  --accent-ink: var(--lime-ink);
  --accent-grad: linear-gradient(90deg, var(--lime), #e4ff8f);
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1180px;
  --font: Inter, "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
body.eva {
  --ink: #070b12;
  --ink-2: #0a0f19;
  --surface: #0f1624;
  --surface-2: #131c2c;
  --line: #1f2b40;
  --line-strong: #2b3a55;
  --text: #e8eef7;
  --muted: #8d9ab0;
  --accent: var(--eva-teal);
  --accent-ink: #04211d;
  --accent-grad: linear-gradient(90deg, var(--eva-blue), var(--eva-teal));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.eyebrow {
  font: 600 13px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; margin: 0; font-weight: 700; }
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-size: 21px; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 640px; }
.grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ── nav ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .brand img { height: 30px; width: auto; }
.nav .brand .sub { font-weight: 600; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-strong); }
.nav .links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav .links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.nav .links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav .links a:not(.btn) { display: none; } }
@media (max-width: 440px) { .nav .links .btn:not(.primary):has(~ .btn.primary) { display: none; } .nav .links { gap: 10px; } }

/* ── buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--text); background: transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--muted); }
.btn.primary { background: var(--accent-grad); color: var(--accent-ink); border-color: transparent; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.nav .links .btn { color: var(--text); }
.nav .links .btn.primary { color: var(--accent-ink); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

/* ── sections ──────────────────────────────────────── */
section { padding: clamp(72px, 10vw, 128px) 0; }
section.tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head .lead { margin-top: 18px; }
.rule { border-top: 1px solid var(--line); }

/* ── hero ──────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); }
.hero .lead { margin-top: 26px; }
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: 70% 30%;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink) 18%, color-mix(in srgb, var(--ink) 60%, transparent) 55%, transparent 80%),
              linear-gradient(0deg, var(--ink) 0%, transparent 35%);
}
@media (max-width: 760px) {
  .hero-media { background-position: 78% 0; opacity: .45; }
}
.dots-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(circle, var(--line-strong) 1.2px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 65%);
}

/* ── cards & grids ─────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }
.card .num { font: 600 13px/1 var(--mono); color: var(--accent); margin-bottom: 18px; display: block; }
.card .cmd { font: 500 13px/1 var(--mono); color: var(--dim); margin-top: 16px; display: block; }

/* product card on cebula.ai */
.product {
  display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden;
  background: #0a0f19; border: 1px solid #1f2b40; border-radius: 28px; text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.product:hover { border-color: #36d1c0; transform: translateY(-2px); }
.product .body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; }
.product .body .eyebrow { color: #36d1c0; margin: 0; }
.product .body h2 { color: #e8eef7; }
.product .body p { color: #8d9ab0; }
.product .media { min-height: 340px; background-size: cover; background-position: 60% 30%; }
.product .go { margin-top: auto; font-weight: 600; color: #5aa2ff; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } .product .media { min-height: 240px; order: -1; } }

/* ── stats ─────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font: 700 clamp(38px, 5vw, 56px)/1 var(--font); letter-spacing: -.03em; }
.stat .l { color: var(--muted); margin-top: 10px; font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: 0; } }

/* ── team comparison (10x) ─────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.compare .vs { align-self: center; font: 600 14px var(--mono); color: var(--dim); }
.team { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.team.after { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.team h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.team h3 .cost { font: 600 15px var(--mono); color: var(--muted); }
.team.after h3 .cost { color: var(--accent); }
.people { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 18px; }
.person {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px;
}
.person i { width: 26px; height: 26px; border-radius: 50%; background: var(--line-strong); display: grid; place-items: center; font: normal 600 12px var(--mono); color: var(--text); }
.person.ai { border-color: color-mix(in srgb, var(--eva-teal) 60%, transparent); }
.person.ai i { background: linear-gradient(135deg, var(--eva-blue), var(--eva-teal)); color: #04211d; }
.team ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } .compare .vs { justify-self: center; } }

/* ── workflow steps ────────────────────────────────── */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.step { background: var(--ink-2); padding: 30px 28px; }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 13px var(--mono); color: var(--accent); display: block; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step code { font: 500 13px var(--mono); color: var(--dim); display: inline-block; margin-top: 12px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

/* ── calculator ────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.calc .inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; align-content: start; }
.field label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: var(--ink-2); border: 1px solid var(--line-strong); color: var(--text);
  font: 500 16px var(--mono);
}
.field input:focus { outline: none; border-color: var(--accent); }
.field.full { grid-column: 1 / -1; }
.result { display: flex; flex-direction: column; gap: 14px; }
.result .big { font: 700 clamp(44px, 6vw, 68px)/1 var(--font); letter-spacing: -.03em; }
.result .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--muted); }
.result .row b { font: 600 15px var(--mono); color: var(--text); }
.fine { font-size: 13px; color: var(--dim); }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .calc .inputs { grid-template-columns: 1fr; } }

/* ── screenshots ───────────────────────────────────── */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot { margin: 0; }
.shot .frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--ink-2); aspect-ratio: 16 / 10; position: relative;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.shot .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shot .frame .ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  color: var(--dim); font: 500 14px var(--mono);
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.2px); background-size: 18px 18px;
}
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
.shot figcaption b { color: var(--text); font-weight: 600; }
.shot.wide { grid-column: 1 / -1; }
.shot.wide .frame { aspect-ratio: 16 / 8; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; } }

/* ── real deliverables ─────────────────────────────── */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work figure { margin: 0; }
.work .wide { grid-column: 1 / -1; }
.work .pic {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong);
  background: var(--ink-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}
.work .pic img { width: 100%; }
.work .pic.light { background: #fff; padding: 14px; }
.work .pic.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line-strong); aspect-ratio: 4 / 3; }
.work .pic.pair img { height: 100%; object-fit: cover; }
.work figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; }
.work figcaption b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) { .work { grid-template-columns: 1fr; } }

/* ── video ─────────────────────────────────────────── */
.video {
  border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong);
  background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -40px rgba(54, 209, 192, .25);
}
.video video { width: 100%; height: 100%; object-fit: cover; }

/* ── persona strip ─────────────────────────────────── */
.persona { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.persona > * { min-width: 0; }
.persona img { border-radius: var(--radius-lg); border: 1px solid var(--line); }
.persona ul { padding-left: 18px; color: var(--muted); margin: 22px 0 0; }
.persona li { margin-bottom: 8px; }
@media (max-width: 860px) { .persona { grid-template-columns: 1fr; } }

/* ── checklist ─────────────────────────────────────── */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; color: var(--muted); }
.checks li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--accent-grad); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.3 14.2L4.6 10l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4-6.7 6.8Z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.3 14.2L4.6 10l1.4-1.4 2.7 2.7 5.3-5.3 1.4 1.4-6.7 6.8Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.checks li b { color: var(--text); font-weight: 600; }

/* ── CTA + footer ──────────────────────────────────── */
.cta {
  text-align: center; border-radius: 28px; padding: clamp(48px, 7vw, 88px) 24px;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--surface);
  border: 1px solid var(--line);
}
.cta .lead { margin: 18px auto 0; }
.cta .actions { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
footer img { height: 24px; width: auto; }
footer nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
footer .credits { order: 9; flex-basis: 100%; font-size: 12.5px; color: var(--dim); }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--text); }

/* ── reveal on scroll ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product { transition: none; }
}
/* Screens shown whole, at their own aspect ratio (desktop captures and recordings) */
.shot .frame.natural { aspect-ratio: auto; background: #000; }
.shot .frame.natural img, .shot .frame.natural video { width: 100%; height: auto; object-fit: contain; }
