/* Captivara site. One dark look: projector light through haze, viewfinder marks, timecode. */
:root {
  --ink: #07080d;
  --ink-2: #0d0f17;
  --paper: #f3efe8;
  --muted: #a7a9b6;
  --line: rgba(243, 239, 232, 0.14);
  --amber: #ffb155;
  --rose: #ef5a7e;
  --teal: #46c2cf;
  --display: "Syne", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Background light */
#light { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block;
  background: radial-gradient(90% 70% at 78% 18%, rgba(255, 177, 85, 0.30), transparent 60%),
              radial-gradient(70% 60% at 20% 85%, rgba(70, 194, 207, 0.22), transparent 62%),
              radial-gradient(60% 50% at 55% 55%, rgba(239, 90, 126, 0.20), transparent 65%), var(--ink); }
.shade { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 8, 13, 0.74) 0%, rgba(7, 8, 13, 0.30) 46%, rgba(7, 8, 13, 0) 78%),
              linear-gradient(180deg, rgba(7, 8, 13, 0) 62%, rgba(7, 8, 13, 0.75) 100%); }
.nav, main, .foot { position: relative; z-index: 2; }

/* Nav */
.nav { position: sticky; top: 0; display: flex; align-items: center; gap: 28px; padding: 16px var(--gutter); padding-top: calc(16px + env(safe-area-inset-top, 0px));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 8, 13, 0.55); border-bottom: 1px solid var(--line); z-index: 10; }
.mark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 0.34em; text-transform: uppercase; text-decoration: none; }
.mark img { width: 46px; height: auto; display: block; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav nav a:hover { color: var(--paper); }

/* Buttons */
.btn { font: inherit; font-weight: 600; font-size: 16px; color: #1a1206; background: var(--amber); border: 0; border-radius: 999px; padding: 13px 24px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s; box-shadow: 0 0 0 0 rgba(255, 177, 85, 0.5); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -6px rgba(255, 177, 85, 0.55); background: #ffc078; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn.small { font-size: 14px; padding: 9px 16px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Hero */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; padding: 72px var(--gutter) 96px; }
.hero-in { max-width: 780px; min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin: 0; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.sub { font-size: clamp(18px, 1.6vw, 21px); color: #dcd9d2; max-width: 56ch; margin: 0; }
.finder { position: absolute; inset: 22px var(--gutter); pointer-events: none; }
.finder .c { position: absolute; width: 26px; height: 26px; border: 1.5px solid rgba(243, 239, 232, 0.55); }
.finder .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.finder .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.finder .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.finder .br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud { position: absolute; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; color: rgba(243, 239, 232, 0.7); font-variant-numeric: tabular-nums; }
.hud.left { top: 6px; left: 40px; display: flex; align-items: center; gap: 8px; }
.hud.right { top: 6px; right: 40px; }
.hud.ratio { bottom: 6px; right: 40px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); display: inline-block; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

/* Sign-up */
.signup { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; max-width: 560px; }
.signup input[type="email"], .signup select { font: inherit; font-size: 16px; color: var(--paper); background: rgba(13, 15, 23, 0.72); border: 1px solid var(--line); border-radius: 999px; padding: 13px 20px; min-width: 0; flex: 1 1 240px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: border-color 0.2s; }
.signup input::placeholder { color: #7f8291; }
.signup input:focus, .signup select:focus { border-color: var(--amber); outline: none; }
.signup .msg { flex-basis: 100%; margin: 2px 4px 0; font-size: 14px; color: var(--muted); min-height: 1.5em; }
.signup.ok .msg { color: var(--teal); }
.signup.err .msg { color: #ff9aa9; }
.signup .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup.wide { max-width: none; flex-direction: column; align-items: stretch; gap: 16px; }
.signup.wide .row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.signup.wide .f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.signup.wide label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.signup.wide input[type="email"], .signup.wide select { border-radius: 14px; flex: none; width: 100%; }
.signup.wide .btn { align-self: flex-start; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px !important; }
select option { background: var(--ink-2); color: var(--paper); }

/* Bands */
.band { padding: clamp(72px, 10vw, 140px) 0; background: linear-gradient(180deg, rgba(7, 8, 13, 0.62), rgba(7, 8, 13, 0.78)); border-top: 1px solid var(--line); }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 760px; }
h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.025em; margin: 16px 0 0; max-width: 20ch; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.lead { font-size: 19px; color: #e4e1da; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.card { position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(20, 22, 32, 0.72), rgba(10, 11, 18, 0.62)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s; }
.card::after { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 70%; background: radial-gradient(closest-side, rgba(255, 177, 85, 0.22), transparent); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 177, 85, 0.45); }
.card:hover::after { opacity: 1; }
.card p { color: var(--muted); font-size: 15.5px; }
.slate { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--amber); }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split > div { display: flex; flex-direction: column; gap: 18px; }
.split p { color: #c9c7c2; max-width: 58ch; }
.pipeline { list-style: none; margin: 34px 0 0; padding: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.pipeline li { position: relative; padding: 15px 0 15px 28px; font-family: var(--display); font-weight: 600; font-size: 21px; display: flex; gap: 16px; align-items: baseline; border-bottom: 1px solid var(--line); }
.pipeline li:last-child { border-bottom: 0; }
.pipeline li::before { content: ""; position: absolute; left: -4.5px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); border: 1.5px solid var(--amber); transform: translateY(-50%); }
.pipeline span { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 72px; padding-top: 44px; border-top: 1px solid var(--line); }
.point { display: flex; flex-direction: column; gap: 10px; }
.point p { color: var(--muted); font-size: 15.5px; }

.who, .team { list-style: none; margin: 52px 0 0; padding: 0; border-top: 1px solid var(--line); }
.who li, .team li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.who b, .team b { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.01em; }
.who span, .team span { color: var(--muted); }

.cta { background: linear-gradient(180deg, rgba(7, 8, 13, 0.7), rgba(7, 8, 13, 0.55)); }
.cta h2 { max-width: 16ch; margin-bottom: 36px; }

/* Footer */
.foot { background: var(--ink); border-top: 1px solid var(--line); padding: 64px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
.footgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footgrid > div { display: flex; flex-direction: column; gap: 10px; }
.footgrid .mark { color: var(--paper); }
.footgrid p { max-width: 38ch; }
.foot h4 { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); margin: 0; }
.foot a { color: var(--paper); text-underline-offset: 3px; }
.fine { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13.5px; }

/* Reveal: only when scripts run */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .three { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { min-height: 0; padding: 88px var(--gutter) 72px; }
  .finder { inset: 14px 12px; }
  .hud.left { left: 30px; } .hud.right { right: 30px; } .hud.ratio { display: none; }
  .cards { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .who li, .team li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .signup.wide .row { grid-template-columns: minmax(0, 1fr); }
  .signup .btn { flex: 1 1 100%; }
  .signup.wide .btn { align-self: stretch; }
  .footgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* Plain text pages */
.doc { border-top: 0; min-height: 70vh; }
.doc .wrap { display: flex; flex-direction: column; gap: 14px; }
.doc-title { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; margin: 6px 0 0; }
.doc h3 { margin-top: 22px; }
.doc p { color: #c9c7c2; max-width: 64ch; }
.doc .note { color: var(--muted); font-size: 14px; }
.fine a { color: var(--muted); }

/* One-section home page: everything centred */
.one .nav { justify-content: space-between; border-bottom-color: transparent; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; position: relative; }
.navlink { font-size: 15px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.navlink:hover { color: var(--paper); }
.one .shade { background: radial-gradient(70% 60% at 50% 48%, rgba(7, 8, 13, 0.72) 0%, rgba(7, 8, 13, 0.35) 55%, rgba(7, 8, 13, 0) 100%),
              linear-gradient(180deg, rgba(7, 8, 13, 0) 70%, rgba(7, 8, 13, 0.7) 100%); }
.one .hero { min-height: calc(100vh - 140px); min-height: calc(100svh - 140px); justify-content: center; text-align: center; padding: 56px var(--gutter) 72px; }
.one .hero-in { max-width: 860px; align-items: center; gap: 20px; }
.one h1 { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.02; }
.one .sub { max-width: 60ch; }
.biglogo { width: clamp(150px, 18vw, 220px); height: auto; margin-bottom: 6px; }
.one .signup { justify-content: center; width: 100%; margin-top: 14px; }
.one .signup .msg { text-align: center; }
.foot.slim { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px)); font-size: 13.5px; background: transparent; border-top: 1px solid var(--line); }
@media (max-width: 720px) { .foot.slim { justify-content: center; text-align: center; } }
.one h1 { font-size: clamp(40px, 6vw, 80px); }
.about { font-size: 16px; color: var(--muted); max-width: 54ch; margin: 18px 0 0; }
.connect { font-size: 16px; color: #dcd9d2; margin: 0; }
.connect a { color: var(--amber); text-underline-offset: 3px; }
