/* Ocular brand colours (Brand Book: six core colours) */
:root {
  --yellow: #FCC52B;
  --cream: #FFF4DA;
  --light: #F5F4F1;
  --black: #1D1D1B;
  --ink: #1D1D1B;
  --grey: #363636;
  --white: #FFFFFF;

  --muted: #5A5A5A;
  --line: #E6E2D6;

  --font: "proxima-nova", "Proxima Nova", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;

  --logo-bg: var(--white);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }

h1, h2, h3 { font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.2rem; line-height: 1.25; letter-spacing: 0; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--black); color: var(--white); padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.dark :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--black);
  background: var(--yellow); color: var(--black); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--grey); border-color: var(--grey); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--black); color: var(--yellow); }
.btn-sm { font-size: .9rem; padding: .55em 1.1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.logo { color: var(--black); display: block; line-height: 0; }
.logo svg { width: 64px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 400; font-size: .98rem; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"]:not(.btn) { font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .btn { border-color: transparent; }
.nav .btn[aria-current="page"] { background: var(--black); color: var(--white); }
@media (max-width: 820px) {
  .nav a:not(.btn) { display: none; }
}

/* Hero */
.hero { background: var(--yellow); --logo-bg: var(--yellow); overflow: hidden; }
.hero-inner {
  padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(44px, 5.5vw, 80px);
}
.hero { --hero-gap: 30px; }
.hero h1 {
  font-size: clamp(3.1rem, 6.5vw, 6.25rem);
  line-height: .98; letter-spacing: -0.035em;
  color: var(--black); margin-bottom: var(--hero-gap); max-width: 19ch;
}
.hero .hero-sub {
  font-size: clamp(1.5rem, 2.9vw, 2.5rem); font-weight: 300; line-height: 1.15;
  letter-spacing: -0.015em; color: var(--black); max-width: 28ch; margin-bottom: var(--hero-gap);
}
.hero .lede { max-width: 52ch; color: var(--ink); margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--hero-gap); }

.intro { max-width: 52ch; font-size: 1.2rem; color: var(--grey); margin-bottom: 0; }
.intro-wide { max-width: none; }
.intro-balanced { max-width: 46ch; text-wrap: balance; }
.section.dark .intro { color: #CFCFCF; }
.lede { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; }
.lede.light { color: #D8D8D8; max-width: 52ch; }

/* Sections */
.section { padding: clamp(44px, 5.5vw, 76px) 0; background: var(--white); }
.section.dark { background: var(--black); color: var(--white); --logo-bg: var(--black); }
.section.dark h3 { color: var(--white); }
.section.dark p { color: #CFCFCF; }
.section.cream { background: var(--cream); }
.section.light { background: var(--light); }
.section.yellow { background: var(--yellow); }
.display { font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.03em; max-width: none; }
.display-sm { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.025em; }

.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Sub-page tops */
.page-top { padding-top: clamp(44px, 5.5vw, 76px); }
main:has(> section.yellow:last-child) { background: var(--yellow); }
.contact-copy { max-width: 30ch; hyphens: none; -webkit-hyphens: none; text-wrap: pretty; }
.page-top h1 { margin-bottom: .5em; }
.next-link { margin: 32px 0 0; font-weight: 700; }
.next-link a { color: var(--black); text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.yellow .next-link a { text-decoration-color: var(--black); text-decoration-thickness: 2px; }
.cta-band { padding: clamp(36px, 4.5vw, 60px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner h2 { margin: 0; }

/* Architecture stack */
.stack {
  position: relative; margin-top: clamp(32px, 4vw, 52px);
  display: flex; flex-direction: column; align-items: stretch; max-width: 900px;
}
.stack-layer { border-radius: var(--radius); padding: 26px 26px; position: relative; text-align: center; }
.layer-label { display: block; font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; }
.layer-ai { border: 2px dashed #6B6B6B; }
.layer-ai .layer-label { color: var(--white); }
.agents { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.agents li {
  border: 1px solid #555; border-radius: 999px; padding: .35em 1em; font-size: .98rem; color: #BDBDBD;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.agents li.active { background: var(--white); color: var(--black); border-color: var(--white); font-weight: 700; }
.swap-note, .fixed-note {
  display: block; margin-bottom: 10px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #9A9A9A;
}
.layer-fixed { background: var(--yellow); color: var(--black); }
.section.dark .layer-fixed p { color: var(--grey); margin: 0; font-weight: 400; }
.layer-fixed .layer-label { color: var(--black); }
.layer-engine { background: var(--white); }
.stack-link { height: 76px; position: relative; display: flex; justify-content: center; align-items: center; }
.stack-link::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--yellow); }
.stack-link span {
  position: relative; background: var(--black); color: var(--yellow);
  font-weight: 700; font-size: .85rem; letter-spacing: .14em; padding: 2px 10px;
}
.fixed-note { align-self: center; margin: 16px 0 0; color: var(--yellow); }

/* Timeline */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.timeline li { border-top: 2px solid var(--black); padding-top: 22px; }
.timeline li:last-child { border-top-color: var(--yellow); }
.timeline p { color: var(--muted); max-width: 27ch; text-wrap: pretty; }
.tag {
  display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px; padding: calc(.3em + 1px) .95em calc(.3em - 1px); margin-bottom: 16px;
  background: var(--black); color: var(--white);
}
.tag-yellow { background: var(--yellow); color: var(--black); }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 4px; border-left: 4px solid var(--yellow); padding-left: 20px; }
.stat-num { font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: var(--black); }
.source { font-size: .85rem; color: var(--muted); margin: 0; }

/* Demo */
.demo {
  margin-top: clamp(36px, 4.5vw, 56px); background: var(--white); border-radius: 20px;
  padding: clamp(20px, 3.5vw, 40px);
}
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.demo-head h3 { font-size: 1.5rem; margin: 0; }
.demo-prompt { font-style: italic; color: var(--muted); margin: 12px 0 28px; }
.demo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.demo-label { font-size: .95rem; margin-bottom: 12px; }
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.charts svg { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); }
.demo-col + .demo-col .charts svg { border-color: var(--black); }
@media (max-width: 760px) { .demo-cols { grid-template-columns: 1fr; } }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 32px; }
.grid-4 > div { border-top: 2px solid var(--yellow); padding-top: 20px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--light); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--grey); margin: 0; }

.guarantees .g {
  border: 1.5px solid var(--black); border-radius: var(--radius); padding: 26px 26px 22px; position: relative;
  background: var(--white); transition: background .25s ease, color .25s ease;
}
.guarantees .g::before {
  content: ""; display: block; width: 22px; height: 22px; border-radius: 50%;
  margin-bottom: 18px; background: var(--yellow);
}
.guarantees .g h3, .guarantees .g p { transition: color .25s ease; }
.guarantees .g p { color: var(--grey); margin: 0; }
/* Each box inverts on hover */
.guarantees .g:hover { background: var(--black); }
.guarantees .g:hover h3 { color: var(--yellow); }
.guarantees .g:hover p { color: #D0D0D0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 22px; }
.steps p { margin: 0; font-size: 1rem; color: var(--grey); }
.step-n {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--black); color: var(--yellow); font-weight: 700; margin-bottom: 14px;
}
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Flow line: a dot travels left to right along the bottom of the steps */
.steps-wrap { position: relative; overflow-x: clip; } /* the moving runner must not widen the page */
.flow { display: none; }
@media (min-width: 1001px) {
  .steps li { padding-bottom: 64px; }
  .flow {
    display: block; position: absolute; left: 22px; right: 22px; bottom: 28px; height: 1.2px;
    background: linear-gradient(to right, #8C887C 45%, transparent 0) 0 0 / 6px 1.2px repeat-x;
  }
  .flow-runner { position: absolute; inset: 0; animation: flow-run 7s linear infinite; }
  .flow-runner::after {
    content: ""; position: absolute; left: -4px; top: -3.4px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--yellow); border: 1.2px solid var(--black);
  }
}
@keyframes flow-run {
  0%   { transform: translateX(0); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .flow-runner { animation: none; } }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.roadmap li { position: relative; padding: 36px clamp(28px, 4.5vw, 64px) 0 0; border-top: 2px solid var(--black); }
.roadmap h3, .roadmap p { text-wrap: pretty; }
.roadmap li::before {
  content: ""; position: absolute; top: -9px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--black);
}
.roadmap li.now::before { background: var(--yellow); }
.when { display: block; font-weight: 700; font-size: 1.05rem; }
.phase { display: block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.roadmap p { color: var(--muted); }
@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; }
  .roadmap li { border-top: none; border-left: 2px solid var(--black); padding: 0 0 32px 28px; }
  .roadmap li::before { top: 2px; left: -9px; }
}

/* Form */
.form { display: grid; gap: 16px; background: var(--white); padding: clamp(20px, 3vw, 32px); border-radius: 20px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.form input, .form textarea {
  font: inherit; font-weight: 400; font-size: 1rem; width: 100%;
  padding: .75em .9em; border: 1.5px solid #BDBDBD; border-radius: 10px; background: var(--white); color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px var(--yellow); }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--black); color: #BDBDBD; --logo-bg: var(--black); padding: 40px 0; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.logo-foot { width: 56px; color: var(--white); }
.site-footer p { margin: 0; flex: 1; min-width: 220px; }
.site-footer a { color: var(--yellow); }

/* Simple page (thanks) */
.simple { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--yellow); --logo-bg: var(--yellow); padding: 64px 16px; }
.simple .logo svg { width: 120px; }

/* Who it connects: animated diagrams (connect.js) */
.connect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 1100px) { .connect-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .connect-grid { grid-template-columns: 1fr; } }
.cx-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.cx-diagram {
  display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line);
}
.cx-body { padding: 22px 24px 24px; }
.cx-body h3 { margin-bottom: .4em; }
.cx-body p { margin: 0; color: var(--grey); font-size: 1rem; }
.cx-line { fill: none; stroke: #B8B4A8; stroke-width: 1.2; stroke-dasharray: 2.5 3.5; }
.cx-dot { fill: var(--yellow); stroke: var(--black); stroke-width: 1.2; }
.cx-node rect { fill: var(--white); stroke: #BDBDBD; stroke-width: 1; }
.cx-node text { font-family: var(--font); font-size: 11px; font-weight: 400; fill: var(--ink); }
.cx-icon { color: var(--ink); }
.cx-hub-bg { fill: var(--white); stroke: #BDBDBD; stroke-width: 1; }
.cx-mark { fill: none; stroke: var(--black); stroke-width: 1.3; }
.cx-mark-o { fill: var(--white); stroke: var(--black); stroke-width: 1.4; }

/* Unlisted embed pages: /oculardemo and /ocular-pitch-deck */
.embed-page { background: var(--light); display: flex; flex-direction: column; min-height: calc(100vh - 72px); }
.embed-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; width: 100%; }
.embed-bar h1 { font-size: 1.5rem; margin: 0; }
.embed-frame { flex: 1; width: 100%; height: calc(100vh - 72px - 78px); min-height: 480px; border: 0; display: block; background: var(--white); }
.embed-fallback { display: none; font-size: 1rem; padding-top: 16px; padding-bottom: 24px; }
.embed-fallback a { color: var(--black); }
/* Phones rarely render PDFs inline, so point to the file instead */
@media (max-width: 760px) {
  .embed-pdf { display: none; }
  .embed-fallback { display: block; }
}
