/* worknaut.ai v0.4 · "Midnight product stage": dark stage openings, light editorial body, framed product clips.
   Brand colours from the logo (navy #0A2240, blue #2A62B2). Copy is unchanged from v0.3. */

/* Geist and Geist Mono, self-hosted latin subsets, variable weight (SIL OFL 1.1) */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-var.woff2?v=19f9c92546aa") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-var.woff2?v=684ad5b531f8") format("woff2");
}

:root {
  --ink: #050D1A;
  --ink-2: #081629;
  --navy: #0A2240;
  --blue: #2A62B2;
  --blue-hi: #3C78D6;
  --sky: #8DB4FF;
  --text: #0A2240;
  --text-2: #4A5568;
  --text-3: #6B7585;
  --on-dark: #FFFFFF;
  --on-dark-2: rgba(222, 232, 248, .74);
  --on-dark-3: rgba(222, 232, 248, .52);
  --line: rgba(10, 34, 64, .10);
  --line-dark: rgba(255, 255, 255, .10);
  --paper: #FFFFFF;
  --mist: #F3F5F9;
  --shadow-sm: 0 1px 2px rgba(10, 34, 64, .06), 0 2px 8px rgba(10, 34, 64, .04);
  --shadow-md: 0 1px 2px rgba(10, 34, 64, .06), 0 12px 32px -12px rgba(10, 34, 64, .18);
  --shadow-lg: 0 2px 4px rgba(10, 34, 64, .06), 0 32px 64px -24px rgba(10, 34, 64, .28);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --wrap: 1200px;
  --gutter: 32px;
  --section-y: 136px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(42, 98, 178, .15); scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(42, 98, 178, .22); }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
a, button, summary, .pill span { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { scroll-margin-top: calc(var(--header-h) + 24px); text-wrap: balance; }
p { text-wrap: pretty; }

.h-hero {
  font-size: clamp(46px, 5.6vw, 80px);
  line-height: .98;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.h-page, h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; font-weight: 600; letter-spacing: -0.038em; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }

.skip { position: absolute; left: -9999px; top: 10px; background: var(--paper); color: var(--navy); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 600; }
.skip:focus { left: 10px; }

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--mist); }
.section--flush-top { padding-top: 0; }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 28px;
}
.label::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.lead { font-size: 20px; line-height: 1.55; color: var(--text-2); letter-spacing: -0.005em; }
.head { max-width: 860px; }
.head > .label + * { margin-top: 0; }
.head > * + * { margin-top: 24px; }
.strong-line { font-size: 22px; line-height: 1.45; font-weight: 500; color: var(--text); letter-spacing: -0.012em; }

/* Dark stage: shared backdrop for every page opening, the isolation card and the demo band */
.hero, .page-hero, .p-how main > .section:first-child, .p-demo main > .section:first-child, .band, .dark-card, .ask-panel {
  --stage-glow: rgba(42, 98, 178, .55);
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(60% 70% at 78% 0%, var(--stage-glow), transparent 70%),
    radial-gradient(45% 55% at 0% 100%, rgba(141, 180, 255, .10), transparent 70%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: var(--on-dark);
}
.hero::before, .page-hero::before, .p-how main > .section:first-child::before, .p-demo main > .section:first-child::before, .band::before, .dark-card::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 20%, transparent 75%);
  pointer-events: none;
}
:is(.hero, .page-hero, .p-how main > .section:first-child, .p-demo main > .section:first-child, .band, .dark-card, .ask-panel) :is(h1, h2, h3) { color: var(--on-dark); }
:is(.hero, .page-hero, .p-how main > .section:first-child, .p-demo main > .section:first-child, .band, .dark-card, .ask-panel) .lead { color: var(--on-dark-2); }
:is(.hero, .page-hero, .p-how main > .section:first-child, .p-demo main > .section:first-child, .band, .dark-card, .ask-panel) .label { color: var(--sky); }
:is(.hero, .page-hero, .p-how main > .section:first-child, .p-demo main > .section:first-child, .band, .dark-card, .ask-panel) :focus-visible { outline-color: var(--sky); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 30px;
  border-radius: 999px;
  font: 550 16.5px/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  color: #fff;
  border-color: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(5, 13, 26, .2), 0 10px 28px -10px rgba(42, 98, 178, .85);
}
.btn--primary:hover { background: linear-gradient(180deg, #4C88E6, var(--blue-hi)); color: #fff; transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: #fff; }
.btn[disabled], .btn[disabled]:hover {
  background: rgba(10, 34, 64, .06); border-color: var(--line); color: var(--text-3);
  box-shadow: none; transform: none; cursor: not-allowed;
}
.btn--sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.text-link, .arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 550; font-size: 17px; text-decoration: none; color: var(--blue);
}
.text-link::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 5l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10h11M11 5l5 5-5 5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease);
}
.text-link:hover, .arrow-link:hover { color: var(--navy); }
.text-link:hover::after, .arrow-link:hover svg { transform: translateX(3px); }

/* Header (shared) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 15, 30, .94);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 36px; height: var(--header-h); }
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { height: 22px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav a {
  position: relative;
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  border-radius: 999px;
  color: var(--on-dark-2); font-weight: 500; font-size: 15px; text-decoration: none;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .09); }
.site-header :focus-visible { outline-color: var(--sky); }
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  background: transparent; color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 18px; height: 18px; }

/* Footer (shared) */
.site-footer { background: var(--ink); color: #fff; padding: 96px 0 44px; border-top: 1px solid var(--line-dark); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.foot img { height: 22px; width: auto; }
.foot__line { margin-top: 20px; color: var(--on-dark-3); font-size: 15px; max-width: 320px; }
.foot h2 { font-family: var(--mono); font-size: 12px; line-height: 1.4; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-3); margin-bottom: 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--on-dark-2); text-decoration: none; font-size: 15px; }
.foot a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--sky); }
.copyright { margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line-dark); color: var(--on-dark-3); font-size: 13.5px; }

/* Product clips: every clip sits in a quiet window frame */
.clip__media {
  position: relative;
  padding-top: 34px;
  border-radius: 16px;
  overflow: hidden;
  background: #E9EEF5;
  border: 1px solid rgba(10, 34, 64, .10);
  box-shadow: var(--shadow-lg);
}
.clip__media::before {
  content: "";
  position: absolute; left: 16px; top: 13px;
  width: 50px; height: 9px;
  background:
    radial-gradient(circle at 4.5px 4.5px, rgba(10, 34, 64, .18) 4.5px, transparent 5px),
    radial-gradient(circle at 24.5px 4.5px, rgba(10, 34, 64, .18) 4.5px, transparent 5px),
    radial-gradient(circle at 44.5px 4.5px, rgba(10, 34, 64, .18) 4.5px, transparent 5px);
}
.clip__media picture { display: block; aspect-ratio: 16 / 9; background: #fff; }
.clip__media img { width: 100%; height: 100%; object-fit: cover; }
.clip__media .clip__layer { position: absolute; left: 0; right: 0; bottom: 0; top: 34px; }
:is(.hero, .p-how main > .section:first-child) .clip__media {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 1px rgba(5, 13, 26, .6), 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 120px -30px rgba(60, 120, 214, .55);
}
:is(.hero, .p-how main > .section:first-child) .clip__media::before {
  background:
    radial-gradient(circle at 4.5px 4.5px, rgba(255, 255, 255, .26) 4.5px, transparent 5px),
    radial-gradient(circle at 24.5px 4.5px, rgba(255, 255, 255, .26) 4.5px, transparent 5px),
    radial-gradient(circle at 44.5px 4.5px, rgba(255, 255, 255, .26) 4.5px, transparent 5px);
}

/* Home · hero: statement left, product preview right; the whole hero fits the first screen */
.hero { padding: 104px 0 112px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 72px; align-items: center; }
.hero .h-hero {
  font-size: clamp(44px, 4.8vw, 70px);
  background: linear-gradient(180deg, #fff 30%, #C9D9F5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead { margin: 28px 0 40px; max-width: 540px; font-size: 20px; }
.hero__media { width: 100%; }
.hero > .wrap > * { animation: rise .9s var(--ease) both; }
.hero > .wrap > .hero__media { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Home · problem */
.body-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; max-width: 1040px; color: var(--text-2); }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 72px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px 38px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--rule::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 2px; background: var(--blue); margin-bottom: 28px; }
.card h3 { font-size: 21px; }
.card p { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.closing {
  margin-top: 80px; max-width: 920px;
  font-size: clamp(22px, 2.3vw, 30px); line-height: 1.35; font-weight: 500; letter-spacing: -0.022em;
  padding-left: 28px; border-left: 2px solid var(--blue);
}

/* Home · solution */
.solution { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.diagram {
  margin: 0; padding: 44px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}
.diagram svg { width: 100%; height: auto; }
.diagram .d-tall { display: none; }
.diagram svg, .visual-card svg { font-family: var(--font); }
:is(.diagram, .visual-card) rect[fill="#0A2240"] { fill: var(--ink-2); }
:is(.diagram, .visual-card) rect[fill="#FFFFFF"] { stroke: rgba(10, 34, 64, .14); }
.points { list-style: none; padding: 0; margin: 96px 0 0; counter-reset: pt; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.points li { counter-increment: pt; padding-top: 28px; border-top: 1px solid var(--line); }
.points li::before {
  content: counter(pt);
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  font: 500 14px/1 var(--mono); color: var(--blue);
  background: rgba(42, 98, 178, .08); border: 1px solid rgba(42, 98, 178, .2);
  margin-bottom: 24px;
}
.points h3 { font-size: 21px; }
.points p { margin-top: 12px; font-size: 16.5px; color: var(--text-2); }

.cases {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 96px; padding: 56px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(42, 98, 178, .10), transparent 70%),
    var(--mist);
  border: 1px solid var(--line);
}
.case {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
}
.case__title { font-size: 19px; }
.case__meta { margin-top: 6px; font-size: 14.5px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 550; }
.chip--outline { border: 1px solid rgba(10, 34, 64, .18); color: var(--text-2); }
.chip--dark { background: var(--ink-2); color: #fff; }
.chip--soft { background: rgba(42, 98, 178, .1); color: var(--blue); }
.case__note { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--mist); font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--text-2); }
.case__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.case__btn { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid rgba(10, 34, 64, .14); font-size: 14px; font-weight: 550; color: var(--text); background: var(--paper); }
.case__btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Home · why */
#why .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 80px; align-items: start; }
#why h2 { font-size: clamp(34px, 3.6vw, 50px); }
.why-body { display: grid; gap: 24px; font-size: 19px; color: var(--text-2); padding-top: 52px; }
.why-body p:first-child { color: var(--text); font-size: 21px; line-height: 1.55; }
#why .closing { grid-column: 1 / -1; margin-top: 56px; }

/* Home · scale */
.scale-sub { font-size: 22px; font-weight: 500; color: var(--text); letter-spacing: -0.012em; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; max-width: 1040px; color: var(--text-2); }
.cols-2 p { padding-top: 28px; border-top: 1px solid var(--line); }

/* Home · day one */
.dayone { list-style: none; padding: 0; margin: 72px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dayone li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px 34px; box-shadow: var(--shadow-sm);
}
.dayone h3 { font-size: 21px; }
.dayone p { margin-top: 12px; font-size: 16.5px; color: var(--text-2); }

/* Home · isolation */
.dark-card {
  --stage-glow: rgba(42, 98, 178, .5);
  border-radius: var(--radius-xl);
  padding: 104px 88px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.dark-card h2 { max-width: 760px; }
.dark-card p { margin-top: 28px; max-width: 820px; font-size: 20px; line-height: 1.6; color: var(--on-dark-2); }

/* Home · about teaser */
.about-teaser { padding-top: 0; }
.about-teaser .wrap { display: grid; gap: 20px; justify-items: start; }
.about-teaser p { font-size: 20px; color: var(--text-2); }

/* Demo band (shared) */
.band { --stage-glow: rgba(42, 98, 178, .6); text-align: center; padding: 152px 0; overflow: hidden; }
.band::before { -webkit-mask-image: radial-gradient(60% 80% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(60% 80% at 50% 0%, #000 10%, transparent 75%); }
.band h2 { font-size: clamp(40px, 5.6vw, 76px); letter-spacing: -0.045em; }
.band .lead { margin: 24px auto 44px; max-width: 600px; }
.p-how .band { border-top: 1px solid var(--line-dark); }

/* How it works · the whole page is the stage */
.p-how main > .section:first-child { padding: 128px 0 160px; }
.p-how .h-page { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.045em; }
.rows { margin-top: 128px; display: grid; gap: 152px; }
.row { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 88px; align-items: center; }
.row--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.row--flip .row__media { order: 2; }
.row__media { margin: 0; }
.row__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px; margin-bottom: 28px;
  font: 500 14px/1 var(--mono); color: var(--sky);
  background: rgba(141, 180, 255, .08); border: 1px solid rgba(141, 180, 255, .3);
}
.row__title { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.row__line { margin-top: 20px; font-size: 19px; color: rgba(255, 255, 255, .88); }
.row__see { margin-top: 20px; padding-left: 18px; border-left: 1px solid rgba(141, 180, 255, .4); font-size: 16px; color: var(--on-dark-3); }

/* Inner page openings */
.page-hero { padding: 136px 0 128px; }
.page-hero h1 { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -0.045em; max-width: 1000px; }
.page-hero .lead { margin-top: 28px; max-width: 680px; }
.page-hero--navy .wrap { display: grid; grid-template-columns: 1fr 220px; gap: 80px; align-items: end; }
.page-hero--navy .mission { margin-top: 32px; max-width: 760px; font-size: 22px; line-height: 1.5; color: var(--on-dark-2); }
.page-hero--navy img { width: 220px; height: auto; opacity: .9; }
.section-head { margin-bottom: 56px; }

/* FAQ */
.p-faq .faq-group { padding: 112px 0; background: var(--paper); }
.p-faq .faq-group + .faq-group { border-top: 1px solid var(--line); }
.faq-group .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: start; }
.faq-group__head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-group__head h2 { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.faq-group__count { margin-top: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; color: var(--text-3); }
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 48px 1fr 24px; gap: 8px; align-items: center;
  padding: 28px 0;
  font-size: 20px; line-height: 1.4; font-weight: 550; letter-spacing: -0.012em;
  border-radius: 8px;
}
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary:hover { color: var(--blue); }
.faq-items .q-num { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--blue); }
.faq-items .chev { width: 20px; height: 20px; color: var(--text-3); transition: transform .25s var(--ease); }
.faq-items details[open] .chev { transform: rotate(180deg); color: var(--blue); }
.faq-items details p { padding: 0 40px 32px 56px; font-size: 17.5px; color: var(--text-2); max-width: 760px; }
.ask-panel {
  border-radius: var(--radius-xl);
  padding: 96px 48px; text-align: center; overflow: hidden;
}
.ask-panel h2 { font-size: clamp(32px, 3.4vw, 48px); }
.ask-panel p { margin: 20px auto 40px; max-width: 560px; font-size: 19px; color: var(--on-dark-2); }
.ask-panel .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn--on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-navy:hover { background: #E6EEFB; border-color: #E6EEFB; color: var(--ink); transform: translateY(-1px); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--outline-white:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); color: #fff; }

/* About */
.story { display: grid; grid-template-columns: 7fr 5fr; gap: 96px; align-items: center; }
.about-body { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.5; color: var(--text); letter-spacing: -0.018em; }
.visual-card { margin: 0; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 44px; }
.visual-card svg { width: 100%; max-width: 400px; height: auto; margin: 0 auto; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 8px 32px; border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact__v { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; color: var(--text); font-variant-numeric: tabular-nums; }
.fact__k { margin-top: 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.principles, .offices, .contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle, .office, .product, .contact {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.principle { padding: 36px 34px; }
.principle__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; margin-bottom: 28px;
  font: 500 14px/1 var(--mono); color: var(--blue);
  background: rgba(42, 98, 178, .08); border: 1px solid rgba(42, 98, 178, .2);
}
.principle h3 { font-size: 21px; margin-bottom: 12px; }
.principle h3 + p { font-size: 16.5px; color: var(--text-2); }
.office { padding: 32px 34px; display: flex; flex-direction: column; gap: 48px; min-height: 220px; }
.office svg { width: 24px; height: 24px; color: var(--blue); }
.office h3 { font-size: 26px; letter-spacing: -0.025em; margin-top: auto; }
.office p { margin-top: 6px; font-size: 15px; color: var(--text-3); }
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product { padding: 44px; display: flex; flex-direction: column; }
.product h3 { font-size: 28px; letter-spacing: -0.028em; }
.product p { margin-top: 14px; color: var(--text-2); flex: 1; }
.arrow-link { margin-top: 28px; }
.arrow-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.contact { display: flex; gap: 18px; align-items: flex-start; padding: 28px; box-shadow: none; background: var(--mist); }
.contact svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.contact__k { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.contact__v { margin-top: 8px; font-size: 17px; font-weight: 550; overflow-wrap: anywhere; }

/* Demo: the request form floats on the stage */
.p-demo main > .section:first-child { padding: 128px 0 144px; }
.demo { display: grid; grid-template-columns: 1fr 520px; gap: 96px; align-items: start; }
.demo .h-page { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.045em; }
.demo .lead { margin-top: 28px; }
.form-card {
  background: var(--paper); color: var(--text);
  border-radius: var(--radius-xl); padding: 40px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 100px -30px rgba(0, 0, 0, .7), 0 0 120px -40px rgba(60, 120, 214, .6);
}
.form-card :focus-visible { outline-color: var(--blue); }
.field { margin-bottom: 24px; }
.field label, .field legend { display: block; font-weight: 550; font-size: 15.5px; margin-bottom: 10px; padding: 0; color: var(--text); }
.field .opt { font-weight: 400; color: var(--text-3); }
.field input[type=email], .field input[type=text] {
  width: 100%; height: 54px;
  border: 1px solid rgba(10, 34, 64, .16); border-radius: 12px;
  padding: 0 16px;
  font: 17px var(--font); color: var(--text);
  background: var(--paper);
}
.field input[type=email]:hover, .field input[type=text]:hover { border-color: rgba(10, 34, 64, .3); }
.field input:focus { outline: 3px solid rgba(42, 98, 178, .18); outline-offset: 0; border-color: var(--blue); }
fieldset.field { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-flex; align-items: center;
  height: 42px; padding: 0 18px;
  border: 1px solid rgba(10, 34, 64, .16); border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--text);
  cursor: pointer; background: var(--paper);
  user-select: none;
}
.pill span:hover { border-color: var(--blue); color: var(--blue); }
.pill input:checked + span { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp { position: absolute; left: -5000px; }
.form-card .btn { width: 100%; }
.next-title { margin-top: 128px; font-size: clamp(26px, 2.6vw, 36px); color: #fff; }
.next { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: nx; }
.next li {
  counter-increment: nx;
  padding: 32px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark);
  color: var(--on-dark-2); font-size: 17px;
}
.next li::before {
  content: counter(nx);
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px; margin-bottom: 24px;
  font: 500 14px/1 var(--mono); color: var(--sky);
  background: rgba(141, 180, 255, .08); border: 1px solid rgba(141, 180, 255, .3);
}
.next strong { color: #fff; font-weight: 600; }

/* Scroll reveal (site.js adds .rv only when motion is allowed) */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

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

/* Laptop */
@media (max-width: 1180px) {
  :root { --section-y: 112px; }
  .solution { gap: 48px; }
  .row, .row--flip { gap: 56px; }
  .demo { grid-template-columns: 1fr 1fr; gap: 56px; }
  .dark-card { padding: 80px 56px; }
}

/* Tablet */
@media (max-width: 1024px) {
  .foot { grid-template-columns: 1fr 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .solution { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero__media { max-width: 560px; }
  .row__media { max-width: 560px; }
  .row, .row--flip { grid-template-columns: 1fr; gap: 40px; }
  .row--flip .row__media { order: 0; }
  .rows { gap: 112px; }
  .principles, .offices, .contacts { grid-template-columns: 1fr 1fr; }
  .facts-row { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .faq-group .wrap { grid-template-columns: 1fr 2fr; gap: 40px; }
  .story { grid-template-columns: 1fr 1fr; gap: 48px; }
  #why .wrap { grid-template-columns: 1fr; }
  .why-body { padding-top: 24px; }
  .points { grid-template-columns: 1fr; gap: 0; }
  .points li { display: grid; grid-template-columns: 64px 1fr; padding: 32px 0; }
  .points li::before { grid-row: span 2; }
  .points li p { grid-column: 2; }
}

/* Mobile */
@media (max-width: 767px) {
  :root { --section-y: 88px; --gutter: 20px; --header-h: 60px; }
  body { font-size: 17px; }
  .h-hero { font-size: clamp(40px, 11.5vw, 52px); letter-spacing: -0.04em; }
  .h-page, h2 { font-size: 34px; }
  .lead, .hero .lead { font-size: 18px; }
  .strong-line, .scale-sub { font-size: 19px; }
  .site-header .wrap { gap: 10px; }
  .brand img { height: 17px; }
  .header-cta { margin-left: auto; padding: 0 14px; font-size: 14px; height: 40px; }
  .menu-toggle { display: inline-flex; flex: none; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 8px var(--gutter) 20px;
    overscroll-behavior: contain;
  }
  .nav a { height: 52px; padding: 0 4px; border-radius: 0; font-size: 17px; border-bottom: 1px solid var(--line-dark); }
  .nav a:hover, .nav a[aria-current="page"] { background: transparent; }
  .nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--sky); padding-left: 14px; }
  .nav a:last-child { border-bottom: 0; }
  .nav.is-open { display: flex; }
  .no-js .nav { display: flex; position: static; flex-direction: row; padding: 0; gap: 2px; background: none; border: 0; }
  .no-js .nav a { height: 36px; padding: 0 6px; border: 0; font-size: 13px; }
  .no-js .menu-toggle { display: none; }
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero .lead { margin: 20px 0 28px; }
  .clip__media { padding-top: 24px; border-radius: 12px; }
  .clip__media::before { left: 12px; top: 8px; transform: scale(.75); transform-origin: left top; }
  .clip__media .clip__layer { top: 24px; }
  .solution, .demo, .cards-3, .dayone, .cols-2, .body-2, .cases, .products, .next, .story, .principles, .offices, .contacts, .faq-group .wrap { grid-template-columns: 1fr; }
  .body-2, .cols-2 { gap: 20px; margin-top: 40px; }
  .cols-2 p + p { padding-top: 20px; }
  .cards-3, .dayone { margin-top: 40px; gap: 14px; }
  .card, .dayone li, .principle { padding: 28px 24px; }
  .closing { margin-top: 56px; padding-left: 20px; }
  .diagram { padding: 20px; border-radius: var(--radius-lg); }
  .diagram .d-wide { display: none; }
  .diagram .d-tall { display: block; max-width: 360px; margin: 0 auto; }
  .points { margin-top: 56px; }
  .points li { grid-template-columns: 1fr; gap: 0; padding: 28px 0; }
  .points li::before { grid-row: auto; margin-bottom: 18px; }
  .points li p { grid-column: auto; }
  .cases { margin-top: 56px; padding: 16px; gap: 14px; border-radius: var(--radius-lg); }
  .case { padding: 22px; }
  .dark-card { padding: 56px 24px; border-radius: var(--radius-lg); }
  .dark-card p { font-size: 18px; }
  .band { padding: 104px 0; }
  .band h2 { font-size: 40px; }
  .p-how main > .section:first-child { padding: 80px 0 104px; }
  .p-how .h-page, .page-hero h1, .demo .h-page { font-size: 42px; }
  .rows { margin-top: 72px; gap: 88px; }
  .row { gap: 28px; }
  .row__num { margin-bottom: 18px; }
  .row__title { font-size: 26px; }
  .page-hero { padding: 88px 0 80px; }
  .page-hero--navy .wrap { grid-template-columns: 1fr; gap: 40px; }
  .page-hero--navy img { width: 160px; }
  .page-hero--navy .mission { font-size: 19px; }
  .section-head { margin-bottom: 32px; }
  .facts-row { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .fact { padding: 0 0 0 20px; }
  .fact:nth-child(odd) { padding-left: 0; border-left: 0; }
  .p-faq .faq-group { padding: 72px 0; }
  .faq-group .wrap { gap: 24px; }
  .faq-group__head { position: static; }
  .faq-group__head h2 { font-size: 28px; }
  .faq-items summary { font-size: 18px; grid-template-columns: 36px 1fr 22px; padding: 22px 0; }
  .faq-items details p { padding: 0 0 26px 44px; font-size: 16.5px; }
  .ask-panel { padding: 64px 24px; border-radius: var(--radius-lg); }
  .office { min-height: 0; gap: 28px; }
  .product { padding: 32px 26px; }
  .story { gap: 40px; }
  .p-demo main > .section:first-child { padding: 72px 0 96px; }
  .form-card { padding: 28px 22px; border-radius: var(--radius-lg); }
  .next-title { margin-top: 88px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 36px; }
  .copyright { margin-top: 48px; }
}
