/* Potamus Labs landing page — see BRANDING.md for the design system. */
:root {
  color-scheme: light;
  --bg: #F7F8F5;
  --surface: #FFFFFF;
  --surface-raised: #EEF1ED;
  --text: #081426;
  --text-muted: #596473;
  --border: #D9DEE4;
  --brand: #C7E81D;
  --brand-hover: #B7D619;
  --brand-text: #081426;
  --accent: #F20D2F;
  --accent-dark: #CA0A26;
  --tech-blue: #27659A;
  --grid-line: rgba(8,20,38,.055);
  --band-bg: #FFFFFF;
  --band-text: #081426;
  --band-muted: #596473;
  --band-border: #D9DEE4;
  --shadow: 0 20px 60px rgba(8,20,38,.10);
  --font-sans: "IBM Plex Sans", Inter, Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111F;
  --surface: #0D1929;
  --surface-raised: #142235;
  --text: #F5F7F9;
  --text-muted: #AAB3BF;
  --border: #29384C;
  --brand: #C7E81D;
  --brand-hover: #D4F129;
  --brand-text: #081426;
  --accent: #FF2945;
  --accent-dark: #F20D2F;
  --tech-blue: #59A4D8;
  --grid-line: rgba(199,232,29,.045);
  --band-bg: #07111F;
  --band-text: #F5F7F9;
  --band-muted: rgba(245,247,249,.72);
  --band-border: rgba(245,247,249,.16);
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07111F;
    --surface: #0D1929;
    --surface-raised: #142235;
    --text: #F5F7F9;
    --text-muted: #AAB3BF;
    --border: #29384C;
    --brand: #C7E81D;
    --brand-hover: #D4F129;
    --brand-text: #081426;
    --accent: #FF2945;
    --accent-dark: #F20D2F;
    --tech-blue: #59A4D8;
    --grid-line: rgba(199,232,29,.045);
    --band-bg: #07111F;
    --band-text: #F5F7F9;
    --band-muted: rgba(245,247,249,.72);
    --band-border: rgba(245,247,249,.16);
    --shadow: 0 24px 80px rgba(0,0,0,.32);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--brand); color: var(--brand-text); }

.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--brand); color: var(--brand-text); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.nav-wrap { height: 84px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 650; }
.nav-links a { text-decoration: none; color: var(--text-muted); transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.theme-toggle { justify-self: end; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; font: 650 13px/1 var(--font-sans); cursor: pointer; box-shadow: 0 3px 14px rgba(0,0,0,.04); }
.theme-icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moon { display: none; }
html[data-theme="dark"] .sun { display: none; }
html[data-theme="dark"] .moon { display: block; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .sun { display: none; } html:not([data-theme="light"]) .moon { display: block; } }

.hero { min-height: 680px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); align-items: center; gap: clamp(28px, 4vw, 56px); padding-block: 62px 70px; overflow: clip; }
.eyebrow, .kicker { color: var(--text-muted); font: 650 12px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 999px; padding: 9px 12px; background: color-mix(in srgb, var(--surface) 84%, transparent); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
.hero h1 { margin: 24px 0 22px; font-size: clamp(64px, 7.2vw, 104px); line-height: .89; letter-spacing: -.065em; font-weight: 800; }
.hero h1 span { color: var(--brand); text-shadow: 0 2px 0 color-mix(in srgb, var(--text) 16%, transparent); }
.hero-lede { max-width: 650px; margin: 0; color: var(--text-muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 20px; border-radius: 13px; text-decoration: none; font-weight: 750; letter-spacing: -.01em; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--brand-text); background: var(--brand); border: 1px solid var(--brand); box-shadow: 0 9px 30px color-mix(in srgb, var(--brand) 22%, transparent); }
.button-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.button-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.button-ghost:hover { border-color: color-mix(in srgb, var(--text) 32%, var(--border)); }
.hero-note { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.hero-note i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.hero-art { position: relative; align-self: stretch; min-height: 500px; display: grid; place-items: center; isolation: isolate; overflow: visible; }
.hero-art picture { width: min(500px, 88%); position: relative; z-index: 3; filter: drop-shadow(0 22px 26px rgba(8,20,38,.16)); }
.hero-art picture img { width: 100%; height: auto; object-fit: contain; }
.art-glow { position: absolute; z-index: 0; width: min(470px, 78%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 20%, transparent), transparent 68%); filter: blur(16px); opacity: .82; }
.hero-art::before { content: ""; position: absolute; width: min(500px, 82%); aspect-ratio: 1; border: 1px dashed color-mix(in srgb, var(--tech-blue) 34%, transparent); border-radius: 50%; z-index: 1; animation: orbit 24s linear infinite; }
.hero-art::after { content: ""; position: absolute; z-index: 2; width: min(430px, 72%); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border) 55%, transparent), 0 30px 80px rgba(8,20,38,.09); opacity: .86; }
html[data-theme="dark"] .hero-art picture { filter: drop-shadow(0 24px 28px rgba(0,0,0,.36)); }
html[data-theme="dark"] .art-glow { background: radial-gradient(circle, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); opacity: .58; }
html[data-theme="dark"] .hero-art::after { background: radial-gradient(circle, rgba(21,34,53,.88), rgba(13,25,41,.58) 58%, rgba(7,17,31,.08) 74%); box-shadow: inset 0 0 0 1px rgba(199,232,29,.10), 0 30px 90px rgba(0,0,0,.28); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hero-art picture { filter: drop-shadow(0 24px 28px rgba(0,0,0,.36)); }
  html:not([data-theme="light"]) .art-glow { background: radial-gradient(circle, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); opacity: .58; }
  html:not([data-theme="light"]) .hero-art::after { background: radial-gradient(circle, rgba(21,34,53,.88), rgba(13,25,41,.58) 58%, rgba(7,17,31,.08) 74%); box-shadow: inset 0 0 0 1px rgba(199,232,29,.10), 0 30px 90px rgba(0,0,0,.28); }
}
.lab-chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; box-shadow: var(--shadow); font: 600 11px/1 var(--font-mono); color: var(--text-muted); backdrop-filter: blur(8px); }
.lab-chip b { color: var(--brand-text); background: var(--brand); border-radius: 7px; padding: 5px 6px; font-size: 10px; }
.chip-a { left: 6%; top: 24%; transform: rotate(-5deg); }
.chip-b { right: 3%; bottom: 26%; transform: rotate(4deg); }
@keyframes orbit { to { transform: rotate(360deg); } }

.signal-strip { overflow: hidden; background: var(--band-bg); color: var(--band-text); border-block: 1px solid var(--band-border); }
.signal-track { width: max-content; min-width: 100%; display: flex; justify-content: center; align-items: center; gap: 28px; padding: 15px 24px; font: 650 11px/1 var(--font-mono); letter-spacing: .12em; white-space: nowrap; }
.signal-track i { color: var(--brand); font-style: normal; font-size: 8px; }

.section { padding-block: 112px; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.kicker { color: var(--tech-blue); margin: 0 0 16px; }
.section h2, .contact-section h2 { margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > p:last-child, .approach-copy > p:not(.kicker) { max-width: 690px; margin: 22px 0 0; color: var(--text-muted); font-size: 18px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap-card { position: relative; overflow: hidden; min-height: 430px; background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 28px; box-shadow: 0 10px 40px rgba(8,20,38,.04); }
.cap-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; bottom: -80px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: inset 0 0 0 28px color-mix(in srgb, var(--brand) 4%, transparent); }
.cap-number { color: var(--text-muted); font: 600 11px/1 var(--font-mono); }
.cap-icon { width: 58px; height: 58px; margin: 44px 0 28px; display: grid; place-items: center; background: var(--surface-raised); color: var(--tech-blue); border: 1px solid var(--border); border-radius: 16px; font: 700 17px/1 var(--font-mono); }
.cap-card:nth-child(2) .cap-icon { color: var(--accent); }
.cap-card:nth-child(3) .cap-icon { color: var(--brand-text); background: var(--brand); border-color: var(--brand); font-size: 28px; }
.cap-card h3 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.025em; }
.cap-card p { color: var(--text-muted); margin: 0 0 22px; }
.cap-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 13px; font-weight: 650; }
.cap-card li { display: flex; align-items: center; gap: 8px; }
.cap-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: 0 0 auto; }

.demo-category { display: grid; grid-template-columns: .42fr 1fr; gap: 28px; align-items: start; }
.demo-category + .demo-category { margin-top: 34px; }
.demo-category-head { position: sticky; top: 130px; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-md); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: 0 10px 40px rgba(8,20,38,.04); }
.demo-category-head h3 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -.04em; }
.demo-grid { display: grid; gap: 16px; }
.demo-card { position: relative; overflow: hidden; background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 30px; box-shadow: 0 10px 40px rgba(8,20,38,.04); }
.demo-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -110px; top: -110px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent); }
.demo-card-top { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.demo-badge, .demo-status { display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px; font: 650 11px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.demo-badge { color: var(--tech-blue); background: color-mix(in srgb, var(--tech-blue) 9%, transparent); border: 1px solid color-mix(in srgb, var(--tech-blue) 26%, var(--border)); }
.demo-status { color: var(--brand-text); background: var(--brand); border: 1px solid var(--brand); }
.demo-status-beta { color: var(--accent-dark); background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: color-mix(in srgb, var(--accent) 28%, var(--border)); }
.demo-card h4 { position: relative; z-index: 1; margin: 0 0 12px; font-size: clamp(28px, 3vw, 44px); line-height: 1.02; letter-spacing: -.045em; }
.demo-card p { position: relative; z-index: 1; max-width: 760px; margin: 0 0 22px; color: var(--text-muted); font-size: 17px; }
.demo-card ul { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--text); font-size: 13px; font-weight: 650; }
.demo-card li { display: flex; align-items: center; gap: 8px; }
.demo-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.demo-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.approach-section { background: color-mix(in srgb, var(--surface) 58%, transparent); border-block: 1px solid var(--border); }
.approach-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.approach-copy { align-self: start; position: sticky; top: 130px; }
.text-link { display: inline-flex; gap: 10px; margin-top: 30px; color: var(--text); font-weight: 750; text-decoration: none; border-bottom: 2px solid var(--brand); }
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 28px 0 32px; border-top: 1px solid var(--border); }
.process-list li:last-child { border-bottom: 1px solid var(--border); }
.process-list > li > span { color: var(--brand-text); background: var(--brand); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font: 700 11px/1 var(--font-mono); }
.process-list h3 { margin: 2px 0 6px; font-size: 24px; letter-spacing: -.02em; }
.process-list p { margin: 0; color: var(--text-muted); }

.lab-note { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.terminal-card { background: #07111F; color: #E8EDF2; border: 1px solid #29384C; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar { min-height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 15px; background: #0D1929; border-bottom: 1px solid #29384C; }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; background: #445267; }
.terminal-bar span:first-child { background: #F20D2F; }
.terminal-bar span:nth-child(2) { background: #F2C94C; }
.terminal-bar span:nth-child(3) { background: #C7E81D; }
.terminal-bar b { margin-left: 7px; color: #AAB3BF; font: 500 11px/1 var(--font-mono); }
.terminal-body { padding: 32px; font: 500 14px/1.7 var(--font-mono); }
.terminal-body p { margin: 0 0 14px; }
.prompt { color: #C7E81D; font-weight: 700; }
.terminal-output { color: #D9DEE4; padding-left: 19px; font-size: clamp(19px, 2vw, 26px); line-height: 1.55; letter-spacing: -.02em; }
.cursor { color: #C7E81D; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
blockquote { margin: 0; background: var(--brand); color: var(--brand-text); border-radius: var(--radius-md); padding: 34px; display: flex; flex-direction: column; justify-content: space-between; }
blockquote > p { margin: 0; font-size: clamp(27px, 3vw, 40px); font-weight: 780; line-height: 1.12; letter-spacing: -.035em; }
blockquote footer { display: flex; align-items: center; gap: 11px; margin-top: 48px; font-size: 13px; font-weight: 800; line-height: 1.3; }
blockquote footer img { width: 46px; height: 46px; background: #fff; border-radius: 50%; }
blockquote small { font-size: 11px; font-weight: 600; opacity: .7; }

.contact-section { background: var(--band-bg); color: var(--band-text); padding-block: 100px; }
.contact-inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; }
.contact-section .kicker { color: var(--brand); }
.contact-action p { color: var(--band-muted); margin: 0 0 24px; font-size: 17px; }

.site-footer { background: var(--band-bg); color: var(--band-text); border-top: 1px solid var(--band-border); }
.footer-inner { min-height: 110px; display: grid; grid-template-columns: 1.1fr 1fr auto auto; gap: 28px; align-items: center; font-size: 12px; color: var(--band-muted); }
.footer-inner .brand { color: var(--band-text); }
.footer-inner .brand img { width: 34px; height: 34px; background: #fff; border-radius: 50%; }
.footer-inner a { color: var(--brand); text-decoration: none; font-weight: 700; }

.cookie-bar { position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(920px, calc(100% - 32px)); display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--text); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.cookie-bar[hidden] { display: none; }
.cookie-copy strong { display: block; margin-bottom: 4px; font-size: 14px; }
.cookie-copy p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.cookie-dismiss { min-height: 42px; white-space: nowrap; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .theme-label { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 52px; gap: 18px; }
  .hero-copy { text-align: center; }
  .eyebrow { margin-inline: auto; }
  .hero-lede { margin-inline: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-art { min-height: 390px; max-width: 560px; width: 100%; margin-inline: auto; }
  .hero-art picture { width: min(400px, 78%); }
  .hero-art::before { width: min(410px, 78%); }
  .hero-art::after { width: min(350px, 66%); }
  .capability-grid { grid-template-columns: 1fr; }
  .cap-card { min-height: auto; }
  .demo-category { grid-template-columns: 1fr; }
  .demo-category-head { position: static; }
  .approach-grid { grid-template-columns: 1fr; gap: 48px; }
  .approach-copy { position: static; }
  .lab-note { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; padding-block: 28px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .site-header .brand span { display: inline; font-size: 14px; }
  .site-header .brand img { width: 44px; height: 44px; }
  .theme-toggle { padding: 9px; }
  .theme-icon { width: 18px; height: 18px; }
  .nav-wrap { height: 68px; gap: 10px; }
  .hero { min-height: auto; gap: 8px; padding-block: 36px 44px; }
  .eyebrow { max-width: 100%; white-space: normal; justify-content: center; text-align: center; }
  .hero h1 { margin-top: 20px; font-size: clamp(46px, 15vw, 64px); line-height: .94; letter-spacing: -.055em; }
  .hero-lede { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-note { display: none; }
  .hero-art { min-height: 285px; margin-inline: 0; }
  .hero-art picture { width: min(285px, 76%); }
  .hero-art::before { width: min(300px, 78%); }
  .hero-art::after { width: min(250px, 66%); }
  .lab-chip { display: none; }
  .signal-track { justify-content: flex-start; overflow: hidden; }
  .section { padding-block: 80px; }
  .section h2, .contact-section h2 { font-size: 40px; }
  .cap-card, .demo-card, .demo-category-head { padding: 24px; }
  .process-list li { grid-template-columns: 42px 1fr; }
  .terminal-body { padding: 24px 20px; }
  .contact-section { padding-block: 76px; }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner p { margin: 0; }
  .cookie-bar { grid-template-columns: 1fr; align-items: stretch; bottom: 12px; padding: 16px; }
  .cookie-dismiss { width: 100%; }
}
