/* BabAI marketing site. Tokens follow the BabAI design system:
   near-black ground, one forest accent, Inter + JetBrains Mono, zero radius, snipped corners.
   Layout rule: on desktop every section is exactly one screen (viewport height minus the sticky header). */
:root {
	--black: #19191a;
	--black-2: #141414;
	--black-3: #0f0f10;
	--white: #fff;
	--forest: #24443e;
	--accent: #8fbfa8;
	--accent-dot: #4a8c63;
	--ink-80: rgba(255, 255, 255, .8);
	--ink-70: rgba(255, 255, 255, .7);
	--ink-55: rgba(255, 255, 255, .55);
	--ink-40: rgba(255, 255, 255, .4);
	--line: rgba(255, 255, 255, .12);
	--line-strong: rgba(255, 255, 255, .35);
	--mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
	--pad: 48px;
	--header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--black); color: var(--white); font: 400 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; }
img, video { display: block; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, figure, ul { margin: 0; }
h1, h2, h3 { font-weight: 600; text-transform: uppercase; letter-spacing: -.01em; }
ul { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

.cut-sm { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.cut-md { clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)); }

/* type helpers (sizes follow viewport height so a screen's content always fits) */
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: clamp(10px, 2vh, 18px); }
.eyebrow--dot { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow--dot::before { content: ''; width: 8px; height: 8px; background: var(--accent-dot); display: inline-block; }
.label { font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-40); margin-bottom: clamp(8px, 1.6vh, 14px); }
.label--accent { color: var(--accent); }
.label--soft { color: rgba(255, 255, 255, .65); }
.h2 { font-size: clamp(26px, min(3.4vw, 5.6vh), 42px); line-height: 1.06; }
.h2--wide { max-width: 820px; }
.body-lg { font-size: clamp(14px, 2.2vh, 17px); color: var(--ink-70); }
.section__intro { margin: 0; max-width: 440px; font-size: clamp(13px, 2vh, 15px); color: var(--ink-70); }

/* buttons: snipped corners, invert on hover */
.btn { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 14px 26px; border: 0; cursor: pointer; text-align: center; transition: all .3s ease; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.btn:hover { filter: drop-shadow(2px 8px 18px rgba(36, 68, 62, .9)); }
.btn--forest { background: var(--forest); color: var(--white); padding: 12px 22px; }
.btn--forest:hover { background: var(--white); color: var(--forest); }
.btn--white { background: var(--white); color: var(--black); padding: clamp(12px, 2.2vh, 16px) 32px; font-size: 14px; }
.btn--white:hover { background: var(--forest); color: var(--white); }
.btn--dark-text { color: var(--forest); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line-strong); padding: clamp(12px, 2.2vh, 16px) 32px; font-size: 14px; }
.btn--ghost:hover { background: var(--white); color: var(--black); box-shadow: none; }
.btn--block { width: 100%; }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(15, 15, 16, .92); border-bottom: 1px solid var(--line); }
.site-header__bar { max-width: 1400px; margin: 0 auto; padding: 0 var(--pad); height: calc(var(--header-h) - 1px); display: flex; align-items: center; justify-content: space-between; }
.site-header__logo img { height: 34px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--white); transition: color .3s ease; }
.nav-link:hover { color: var(--accent); }
.lang-switch { display: flex; align-items: center; gap: 4px; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .16); font: 600 12px/1 var(--mono); letter-spacing: .06em; color: rgba(255, 255, 255, .25); }
.lang-switch a { color: var(--ink-55); padding: 6px; transition: color .3s ease; }
.lang-switch a:hover, .lang-switch a[aria-current] { color: var(--accent); }
.site-header__burger { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-strong); cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.site-header__burger span { width: 20px; height: 2px; background: var(--white); transition: transform .3s ease, opacity .3s ease; }
.site-header__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-header__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* sections are screens */
.section { padding: clamp(24px, 6vh, 72px) 0; background: var(--black); }
.section--dark { background: var(--black-2); }
.screen { display: flex; align-items: center; }
.screen > .container { width: 100%; }
@media (min-width: 901px) and (min-height: 560px) {
	.screen { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
}
.screen__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 40px; flex-wrap: wrap; }

/* hero */
.hero { padding: clamp(24px, 5vh, 72px) 0; background: var(--black); overflow: hidden; }
.hero__grid { width: 100%; display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero__title { font-size: clamp(34px, min(5.2vw, 7.4vh), 66px); line-height: 1; }
.hero__sub { margin-top: clamp(14px, 3vh, 26px); max-width: 540px; font-size: clamp(15px, 2.3vh, 18px); color: rgba(255, 255, 255, .78); }
.hero__cta { display: flex; gap: 16px; margin-top: clamp(20px, 4.5vh, 36px); flex-wrap: wrap; }
.hero__media img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - var(--header-h) - 96px); max-height: calc(100svh - var(--header-h) - 96px); margin-inline: auto; }
.hero .eyebrow--dot { margin-bottom: clamp(14px, 3vh, 26px); }

/* problem */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: clamp(16px, 3.5vh, 36px); }
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(20px, 4vh, 44px); background: var(--line); border: 1px solid var(--line); }
.audience__item { background: var(--black-2); padding: clamp(16px, 3vh, 28px); }
.audience__item p { color: rgba(255, 255, 255, .85); font-size: clamp(14px, 2.1vh, 16px); }

/* how it works + mission/specs: one screen, steps above a forest band */
.screen--stack { flex-direction: column; align-items: stretch; background: var(--black); }
.how__main { flex: 1; display: flex; align-items: center; padding: clamp(20px, 4.5vh, 60px) 0; }
.how__main .h2 { max-width: none; }
.how__main > .container { width: 100%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: clamp(20px, 4.5vh, 44px); background: var(--line); }
.steps__item { background: var(--black); padding: clamp(18px, 3.6vh, 38px) 30px; }
.steps__no { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--accent); }
.steps__item h3 { margin: clamp(12px, 2.4vh, 20px) 0 12px; font-size: clamp(20px, 3.4vh, 25px); }
.steps__item p { color: rgba(255, 255, 255, .72); font-size: clamp(14px, 2vh, 16px); line-height: 1.5; }
.specs { background: var(--forest); padding: clamp(20px, 4vh, 48px) 0; }
.specs__cols { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.specs__mission { font-size: clamp(20px, min(2.4vw, 4.2vh), 30px); font-weight: 500; line-height: 1.25; }
.specs__note { margin: 0 0 clamp(12px, 2.4vh, 20px); font-size: clamp(13px, 1.9vh, 15px); color: rgba(255, 255, 255, .75); }
.specs__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.specs__grid > div { padding: 0 18px; border-right: 1px solid rgba(255, 255, 255, .16); }
.specs__grid > div:first-child { padding-left: 0; }
.specs__grid > div:last-child { border-right: 0; }
.specs__value { font-size: clamp(26px, min(2.9vw, 5.6vh), 40px); font-weight: 600; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.specs__label { margin-top: 10px; font: 500 11px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-70); }

/* product + proof: one screen, product on the left, photo mosaic on the right */
.product2 { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.product2__text { margin: clamp(10px, 2vh, 16px) 0 clamp(12px, 2.4vh, 20px); color: var(--ink-70); font-size: clamp(14px, 2.1vh, 16px); max-width: 480px; }
.product__rows { margin-bottom: clamp(16px, 3vh, 26px); border-top: 1px solid rgba(255, 255, 255, .1); }
.product__rows > div { display: flex; justify-content: space-between; gap: 24px; padding: clamp(8px, 1.6vh, 13px) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.product__rows dt { color: rgba(255, 255, 255, .6); font-size: 14px; }
.product__rows dd { font: 600 13px/1.4 var(--mono); text-align: right; }
.mosaic figure { background: var(--black-3); }
.mosaic figcaption { padding: 9px 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .03em; color: var(--ink-55); }
.mosaic__field img { width: 100%; height: clamp(260px, 62vh, 580px); object-fit: cover; object-position: 50% 65%; }

/* missions: domain tabs on top, case list on the left, selected case on the right */
#missions { padding: clamp(16px, 3.2vh, 40px) 0; }
.missions { margin-top: clamp(12px, 2.4vh, 24px); border: 1px solid var(--line); }
.missions__tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.missions__tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; gap: 10px; padding: clamp(8px, 1.6vh, 14px) 18px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: rgba(255, 255, 255, .5); font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: all .3s ease; }
.tab:hover { color: var(--white); }
.tab.is-active { border-bottom-color: var(--accent); color: var(--white); background: rgba(36, 68, 62, .18); }
.tab__icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: miter; }
.missions__panels { padding: clamp(14px, 3vh, 30px) clamp(18px, 2.4vw, 32px); min-width: 0; }
.panel { display: none; }
.panel.is-active { display: block; }
.panel__cols { display: grid; grid-template-columns: minmax(240px, .8fr) 1.2fr; gap: clamp(18px, 2.6vw, 36px); align-items: start; }
.panel__cols--single { grid-template-columns: 1fr; }
.panel__cols--single .caselist { display: none; }
.panel__cols--single .casedetail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel__cols--single .space-media { margin-top: 0; }
.caselist { display: flex; flex-direction: column; gap: 4px; }
.caseitem { text-align: left; background: transparent; border: 0; border-left: 2px solid rgba(255, 255, 255, .1); padding: clamp(6px, 1.3vh, 11px) 16px; color: rgba(255, 255, 255, .65); font-size: 15px; font-weight: 500; line-height: 1.35; cursor: pointer; transition: all .3s ease; }
.caseitem { position: relative; }
.caseitem::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; opacity: 0; }
.caseitem.is-active::after { opacity: .7; animation: caseprogress var(--dwell, 7s) linear forwards; }
.missions:hover .caseitem.is-active::after, .missions:focus-within .caseitem.is-active::after { animation-play-state: paused; }
@keyframes caseprogress { to { transform: scaleX(1); } }
.caseitem:hover { color: var(--white); }
.caseitem.is-active { border-left-color: var(--accent); color: var(--white); background: rgba(36, 68, 62, .18); }
.also { margin-top: clamp(12px, 2.4vh, 22px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 11.5px/1 var(--mono); letter-spacing: .02em; color: var(--ink-80); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); padding: 8px 12px; }
.casedetail { min-width: 0; }
.case { display: none; background: rgba(36, 68, 62, .12); border: 1px solid var(--line); padding: clamp(18px, 3.6vh, 30px); }
.case.is-active { display: block; }
.case h4 { font-size: clamp(17px, 2.8vh, 22px); font-weight: 600; line-height: 1.3; margin: 0 0 10px; }
.case p { font-size: clamp(14px, 2.1vh, 16px); color: rgba(255, 255, 255, .78); }
.badge { display: inline-block; margin-bottom: 12px; padding: 5px 9px; font: 600 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--white); background: var(--forest); }
.badge--muted { background: transparent; color: var(--ink-70); box-shadow: inset 0 0 0 1px var(--line-strong); }
.space-media { margin-top: 14px; background: var(--black-3); border: 1px solid var(--line); }
.space-media video { width: 100%; aspect-ratio: 16 / 9; max-height: clamp(150px, 32vh, 340px); background: #000; object-fit: cover; }
.space-media figcaption { padding: 10px 16px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-55); }

/* partners */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: clamp(14px, 3vh, 28px) 0 clamp(14px, 3vh, 26px); }
.partners__item { border: 1px solid var(--line); background: var(--black-2); padding: clamp(12px, 2.2vh, 22px); }
.partners__item h3 { font-size: 15px; text-transform: none; letter-spacing: 0; margin-bottom: 8px; line-height: 1.3; }
.partners__item p { font-size: 13px; color: var(--ink-55); line-height: 1.5; }

/* team */
.team__top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.team__text { margin-top: clamp(10px, 2.4vh, 20px); }
.team__side { display: grid; gap: 14px; }
.founder { display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); background: var(--black); padding: clamp(14px, 2.8vh, 24px) 28px; }
.founder__photo { width: clamp(64px, 10vh, 84px); height: clamp(64px, 10vh, 84px); border-radius: 50%; object-fit: cover; flex: none; background: #1f1f20; }
.founder h3 { font-size: 22px; text-transform: none; letter-spacing: 0; }
.founder__role { margin-top: 6px; font-size: 12px; letter-spacing: .06em; color: var(--accent); }
.join { background: var(--forest); padding: clamp(14px, 2.8vh, 26px) 28px; }
.join p { color: rgba(255, 255, 255, .85); font-size: clamp(14px, 2vh, 16px); }
.join__link { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .18); color: var(--white); font-weight: 500; }
.join__link span { color: var(--accent); }
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: clamp(18px, 4.5vh, 40px); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); }
.values__item { background: var(--black-2); padding: clamp(14px, 2.6vh, 20px) 18px; }
.values__item h3 { font-size: 15px; text-transform: none; letter-spacing: 0; margin-bottom: 6px; line-height: 1.3; }
.values__item p { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .6); }

/* contact */
.contact { position: relative; padding: clamp(48px, 10vh, 110px) 0; background: var(--forest); overflow: hidden; }
.contact__pattern { position: absolute; bottom: -40%; left: 50%; transform: translateX(-50%); width: 640px; opacity: .12; pointer-events: none; }
.contact__grid { position: relative; max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact .h2 { font-size: clamp(28px, min(3.6vw, 6.2vh), 46px); line-height: 1.02; }
.contact .body-lg { margin-top: 16px; max-width: 420px; color: rgba(255, 255, 255, .82); }
.contact__list { display: grid; gap: 14px; margin-top: clamp(20px, 4vh, 36px); }
.contact__list li { display: grid; gap: 2px; }
.contact__list .label { margin: 0; }
.contact__list a { color: var(--white); font-weight: 500; font-size: 17px; }
.contact__list a:hover { color: var(--accent); }
.form { display: grid; gap: 12px; }
.form input, .form textarea { width: 100%; background: transparent; border: 2px solid var(--white); color: var(--white); padding: clamp(12px, 2.2vh, 16px); font-size: 15px; border-radius: 0; }
.form textarea { resize: vertical; min-height: 140px; }
.form ::placeholder { color: rgba(255, 255, 255, .6); }
.form input:focus, .form textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.form__hp { position: absolute !important; left: -9999px; width: 1px !important; height: 1px !important; opacity: 0; }
.form .btn { margin-top: 4px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__status { min-height: 1.5em; margin: 2px 0 0; font-size: 14px; }
.form__status.is-ok { color: #cfe9dc; }
.form__status.is-error { color: #ffb4a8; }

/* footer */
.site-footer { background: var(--black-3); padding: 48px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer__logo { height: 34px; width: auto; margin-bottom: 18px; }
.site-footer__about { font-size: 14px; color: var(--ink-55); max-width: 320px; }
.supported { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.supported .label { margin: 0; }
.supported__plate { display: inline-block; background: #f7f7f7; padding: 10px 16px; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.supported__plate img { height: 120px; width: auto; }
.link-list { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.link-list a { color: var(--white); font-weight: 500; transition: color .3s ease; }
.link-list a:hover { color: var(--accent); }
.link-list .muted { color: var(--ink-55); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 22px; font-size: 12px; color: var(--ink-40); }
.site-footer__bottom .mono { letter-spacing: .1em; }

/* tablet */
@media (max-width: 1100px) {
	.values { grid-template-columns: repeat(3, 1fr); }
	.partners { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
	:root { --pad: 32px; }
	.hero { min-height: 0; padding: 40px 0 56px; }
	.hero__grid, .team__top, .contact__grid { grid-template-columns: 1fr; gap: 32px; }
	.hero__media { max-width: 520px; }
	.hero__media img { max-height: none; width: 100%; }
	.site-footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* mobile navigation + stacking: below this width sections flow at their natural height */
@media (max-width: 900px) {
	.site-header__burger { display: flex; }
	.site-header__nav { position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; background: rgba(15, 15, 16, .98); border-bottom: 1px solid var(--line); display: none; }
	.site-header__nav.is-open { display: flex; }
	.nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 16px; }
	.lang-switch { padding: 14px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.site-header__nav .btn { margin-top: 18px; }
	.section { padding: 56px 0; }
	.two-col, .audience, .steps, .product2, .specs__cols, .panel__cols, .panel__cols--single .casedetail { grid-template-columns: 1fr; }
	.two-col { gap: 20px; }
	.mosaic__field img { height: 280px; }
	.specs__grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
	.specs__grid > div:nth-child(2) { border-right: 0; }
	.specs__grid > div:nth-child(3) { padding-left: 0; }
	.missions__panels { padding: 22px 18px; }
	.screen__head { align-items: flex-start; }
}

@media (max-width: 600px) {
	:root { --pad: 20px; --header-h: 64px; }
	.section { padding: 48px 0; }
	.hero { padding: 32px 0 48px; }
	.h2, .contact .h2 { font-size: 28px; }
	.specs__value { font-size: 36px; }
	.specs__grid > div { padding: 0 16px; }
	.partners, .values { grid-template-columns: 1fr; }
	.contact { padding: 56px 0; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.btn--white, .btn--ghost { padding: 15px 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.caseitem.is-active::after { animation: none; transform: scaleX(1); }
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
