/* Brouk V2 */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-2: #141414;
  --surface-3: #1c1c1c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-hover: rgba(255, 255, 255, 0.24);
  --text: #fafafa;
  --muted: #a1a1a1;
  --skeleton: rgba(255, 255, 255, 0.08);
  --skeleton-strong: rgba(255, 255, 255, 0.16);

  /* Exact blue from the logo ribbon. Too dark for text on black (2:1), so text uses --accent-text (5.4:1). */
  --accent: #0005dd;
  --accent-text: #6b71ff;
  --accent-soft: rgba(0, 5, 221, 0.14);
  --accent-line: rgba(107, 113, 255, 0.5);
  --glow: rgba(0, 5, 221, 0.5);
  --accent-deep: #0004a8;
  --danger: #ff8a8a;

  --r-card: 24px;
  --r-frame: 28px;
  --r-img: 18px;
  --r-field: 14px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1200px;
  --gutter: 20px;
  --section: clamp(96px, 12vw, 160px);
  --header-h: 64px;

  interpolate-size: allow-keywords;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

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

html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--muted);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

html.menu-open,
html.menu-open body { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { color: var(--text); font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg, picture { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: #000;
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* Type */

.h1 {
  font-size: clamp(2.75rem, 6.5vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.h2 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.lead {
  max-width: 58ch;
  font-size: clamp(17px, 1.35vw, 19px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  width: fit-content;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-text);
  box-shadow: 0 0 0 3px rgba(0, 5, 221, 0.35), 0 0 12px var(--glow);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 200ms ease, color 200ms ease;
}
.text-link:hover { text-decoration-color: var(--accent-text); }
.text-link .icon { width: 18px; height: 18px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary { background: var(--text); color: #000; }
.btn-secondary { background: rgba(255, 255, 255, 0.04); border-color: var(--border-strong); color: var(--text); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #d9d9d9; }
  .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-hover); }
}

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  opacity: 0;
  transition: opacity 300ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header.is-scrolled::before { opacity: 1; }
html.menu-open .site-header { border-bottom-color: transparent; }
html.menu-open .site-header::before { opacity: 0; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.brand img { width: 28px; height: 28px; }

.nav { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-cta { display: none; }

.menu-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle-bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 250ms var(--ease-out);
}
.menu-toggle-bar:first-child { top: 17px; }
.menu-toggle-bar:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .nav a {
    padding: 8px 14px;
    border-radius: var(--r-pill);
    color: var(--muted);
    font-size: 15px;
    transition: color 200ms ease, background-color 200ms ease;
  }
  .nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
  .menu-toggle { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) 0 calc(24px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 250ms ease, visibility 0s;
}
.mobile-menu-inner { display: grid; }
.mobile-menu-inner a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms var(--ease), transform 400ms var(--ease);
}
.mobile-menu.is-open .mobile-menu-inner a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu-inner a:nth-child(2) { transition-delay: 40ms; }
.mobile-menu.is-open .mobile-menu-inner a:nth-child(3) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-menu-inner a:nth-child(4) { transition-delay: 120ms; }
.mobile-menu.is-open .mobile-menu-inner a:nth-child(5) { transition-delay: 160ms; }
.mobile-menu-foot { display: grid; gap: 10px; }

@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

/* Sections */

.section { padding-block: var(--section); }

.section-head {
  display: grid;
  gap: 20px;
  max-width: 780px;
  margin-bottom: clamp(48px, 6vw, 80px);
}

/* Reveal on scroll. Uses an animation (not a transition) so hover transitions on the same element stay snappy. */

@keyframes reveal {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

.js .reveal:not(.is-in) { opacity: 0; }
.js .reveal.is-in {
  animation: reveal 760ms var(--ease) backwards;
  animation-delay: calc(var(--d, 0) * 70ms);
}

/* Hero */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 9vw, 112px));
  padding-bottom: clamp(48px, 7vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  background: radial-gradient(50% 60% at 50% 0%, rgba(0, 5, 221, 0.12), transparent 70%);
  pointer-events: none;
}

.hero-copy { position: relative; display: grid; gap: 24px; }

.hero-title { max-width: 11.5em; }

@keyframes word-in {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero-title .w {
  display: inline-block;
  animation: word-in 800ms var(--ease) backwards;
  animation-delay: 60ms;
}
/* Word stagger lives here (not in style="" attributes) so the CSP can stay strict */
.hero-title .w:nth-child(2) { animation-delay: 130ms; }
.hero-title .w:nth-child(3) { animation-delay: 200ms; }
.hero-title .w:nth-child(4) { animation-delay: 270ms; }
.hero-title .w:nth-child(5) { animation-delay: 340ms; }
.hero-title .w:nth-child(6) { animation-delay: 410ms; }
.hero-title .w:nth-child(7) { animation-delay: 480ms; }
.hero-pill { animation: word-in 700ms var(--ease) backwards; }
.hero-sub,
.hero-actions { animation: word-in 800ms var(--ease) backwards; }
.hero-sub { max-width: 620px; font-size: clamp(17px, 1.5vw, 20px); animation-delay: 420ms; }
.hero-actions { animation-delay: 500ms; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  width: 100%;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.hero-note li { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { width: 16px; height: 16px; color: var(--accent-text); }

@media (min-width: 640px) {
  .hero-note { width: auto; margin: 0 0 0 12px; }
}

/* Showcase frame */

@keyframes stage-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero-stage {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-frame);
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(0, 5, 221, 0.42), rgba(0, 5, 221, 0.1) 45%, transparent 72%),
    linear-gradient(180deg, #060606, #020202);
  animation: stage-in 1000ms var(--ease) backwards;
  isolation: isolate;
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-stage { aspect-ratio: 16 / 9; }
}

.mock-browser {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: #0a0a0a;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.hero-stage .mock-browser {
  position: absolute;
  top: 6%;
  left: 5%;
  width: 90%;
}
@media (min-width: 768px) {
  .hero-stage .mock-browser { top: 9%; left: 6%; width: 72%; }
}

.mock-browser--glow {
  border-color: var(--accent-line);
  box-shadow:
    0 0 0 1px rgba(0, 5, 221, 0.35),
    0 0 32px rgba(0, 5, 221, 0.35),
    0 0 120px rgba(0, 5, 221, 0.22),
    0 40px 80px rgba(0, 0, 0, 0.6);
}

.mock-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  background: #0c0c0c;
}
@media (min-width: 768px) {
  .mock-bar { height: 40px; padding: 0 14px; }
}

.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
@media (min-width: 768px) {
  .mock-dots { gap: 7px; }
  .mock-dots i { width: 10px; height: 10px; }
}

.mock-address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.mock-address .icon { width: 10px; height: 10px; }
@media (min-width: 768px) {
  .mock-address { min-width: 300px; gap: 8px; padding: 5px 16px; font-size: 13px; }
  .mock-address .icon { width: 12px; height: 12px; }
}

.typed { min-height: 1.4em; }
.typed.is-typing::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--text);
  animation: caret 900ms steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.mock-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
}
.mock-screen img,
.mock-phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.scene-img {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.015);
  transition: opacity 800ms var(--ease), filter 800ms var(--ease), transform 1000ms var(--ease);
}
.scene-img.is-active { opacity: 1; filter: none; transform: none; }

.mock-phone {
  position: relative;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: #050505;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 0 4px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 5, 221, 0.22);
}
.mock-phone-screen {
  position: relative;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 21px;
  background: var(--surface);
}
.mock-island {
  position: absolute;
  top: 1.6%;
  left: 50%;
  z-index: 2;
  width: 30%;
  height: 2.6%;
  border-radius: var(--r-pill);
  background: #000;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .mock-phone { padding: 8px; border-radius: 40px; }
  .mock-phone-screen { border-radius: 32px; }
}

.mock-phone-float {
  position: absolute;
  right: 5%;
  bottom: -9%;
  width: 44%;
}
@media (min-width: 768px) {
  .mock-phone-float { top: 13%; right: 6%; bottom: auto; width: 21%; }
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}
.hero-stage .mock-phone { animation: float 7s ease-in-out infinite alternate; }

/* Problem */

.problem-grid { display: grid; gap: 48px; }
.problem .section-head { margin-bottom: 0; }
.problem-list { border-top: 1px solid var(--border); }
.problem-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.icon-ring {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--muted);
}

.problem-close {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  color: var(--text);
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.problem-close img { width: 28px; height: 28px; }

@media (min-width: 960px) {
  .problem-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}

/* Works */

.case {
  display: grid;
  gap: 36px;
  align-items: center;
}
.case + .case { margin-top: clamp(80px, 10vw, 144px); }

.case-media {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background:
    radial-gradient(80% 70% at 30% 100%, rgba(0, 5, 221, 0.18), transparent 70%),
    var(--surface);
}
.case-media .mock-browser {
  position: absolute;
  top: 8%;
  left: 7%;
  width: 93%;
  border-radius: 14px 0 0 14px;
  border-right: 0;
}
.mock-phone--case {
  position: absolute;
  right: 7%;
  bottom: -18%;
  width: 34%;
}
@media (min-width: 768px) {
  .mock-phone--case { width: 30%; }
}

.case--flip .case-media .mock-browser { left: 0; border-radius: 0 14px 14px 0; border-right: 1px solid var(--border-strong); border-left: 0; }
.case--flip .mock-phone--case { right: auto; left: 7%; }

.case-body { display: grid; gap: 18px; justify-items: start; }
.case-kind {
  color: var(--accent-text);
  font-size: 15px;
  font-weight: 500;
}
.case-title {
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.case-desc { max-width: 44ch; }

.check-list { display: grid; gap: 10px; margin: 6px 0 10px; }
.check-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}
.check-list .icon { margin-top: 2px; color: var(--accent-text); }

@media (min-width: 960px) {
  .case { grid-template-columns: 7fr 5fr; gap: 64px; }
  .case--flip { grid-template-columns: 5fr 7fr; }
  .case--flip .case-media { order: 2; }
}

.works-more { margin-top: clamp(56px, 7vw, 88px); font-size: 16px; }

/* Cards */

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  transition: transform 300ms var(--ease), border-color 300ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
}

/* Bento */

.bento {
  display: grid;
  gap: 16px;
  grid-auto-flow: row dense;
}
.bento-card { display: flex; flex-direction: column; min-height: 340px; }
.bento-text { display: grid; gap: 6px; padding: 24px 28px 28px; }
.bento-text h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
.bento-text p { font-size: 16px; line-height: 1.5; }

.mini {
  position: relative;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
  padding: 28px 28px 0;
}

@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-google { grid-column: span 2; }
  .b-mobile { grid-row: span 2; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .b-google { grid-column: span 2; }
  .b-mobile { grid-column: 3; grid-row: 1 / span 2; }
  .b-approve { grid-column: span 2; }
}

/* Skeleton bits used inside the minis */
.sk {
  display: block;
  height: 8px;
  width: 100%;
  border-radius: var(--r-pill);
  background: var(--skeleton);
}
.sk-title { height: 12px; background: var(--skeleton-strong); }
.sk-accent { height: 10px; width: 72%; background: rgba(107, 113, 255, 0.55); }
.sk-40 { width: 40%; }
.sk-60 { width: 60%; }
.sk-70 { width: 70%; }
.sk-80 { width: 80%; }

/* Mini: search */
.mini-search { display: grid; align-content: start; gap: 12px; max-width: 560px; width: 100%; margin-inline: auto; }
.ms-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 15px;
}
.ms-bar .icon { width: 18px; height: 18px; }
.ms-result {
  display: grid;
  gap: 9px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}
.ms-result--top {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 1px rgba(0, 5, 221, 0.25), 0 0 40px rgba(0, 5, 221, 0.22);
}
.ms-result--dim { opacity: 0.45; }
.ms-site { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.ms-fav {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.ms-site-text { display: grid; flex: 1; line-height: 1.3; }
.ms-site-text b { color: var(--text); font-size: 14px; font-weight: 500; }
.ms-site-text small { color: var(--muted); font-size: 13px; }

/* Mini: phone */
.mini-phone { display: grid; justify-items: center; padding-top: 36px; }
.mp-device {
  width: min(220px, 70%);
  padding: 7px 7px 0;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: #050505;
  transform: translateY(14px);
  transition: transform 900ms var(--ease);
}
.mp-screen {
  display: grid;
  align-content: start;
  gap: 10px;
  height: 100%;
  min-height: 380px;
  padding: 16px 16px 0;
  border-radius: 27px 27px 0 0;
  background: var(--surface-2);
}
.mp-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mp-logo { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); box-shadow: inset -6px 0 0 var(--accent); }
.mp-menu { width: 18px; height: 8px; border-top: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); }
.mp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  margin: 8px 0 4px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: #000;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.mp-btn .icon { width: 14px; height: 14px; }
.mp-img {
  display: block;
  height: 96px;
  border-radius: 14px;
  background: radial-gradient(80% 90% at 30% 100%, rgba(0, 5, 221, 0.55), transparent 70%), var(--surface-3);
}
.mp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-cards i { height: 54px; border-radius: 12px; background: var(--surface-3); }
.is-in .mp-device { transform: none; }

/* Mini: load */
.mini-load { display: grid; align-content: center; justify-items: center; gap: 16px; }
.ml-window {
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
}
.ml-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.ml-bar .icon { width: 12px; height: 12px; }
.ml-progress { height: 2px; background: var(--border); }
.ml-progress span {
  display: block;
  height: 100%;
  background: var(--accent-text);
  box-shadow: 0 0 12px var(--glow);
  transform: scaleX(1);
  transform-origin: left;
}
.ml-body { display: grid; gap: 9px; padding: 16px 14px 18px; }
.ml-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.ml-blocks i { height: 40px; border-radius: 8px; background: var(--surface-3); }
.ml-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
}
.ml-badge .icon { width: 14px; height: 14px; color: var(--accent-text); }

.js .b-fast:not(.is-in) .ml-progress span { transform: scaleX(0); }
.js .b-fast:not(.is-in) .ml-body,
.js .b-fast:not(.is-in) .ml-badge { opacity: 0; }
.b-fast.is-in .ml-progress span { animation: load-bar 900ms var(--ease-out) 300ms backwards; }
.b-fast.is-in .ml-body { animation: fade-up 500ms var(--ease) 1100ms backwards; }
.b-fast.is-in .ml-badge { animation: pop 450ms var(--ease-out) 1300ms backwards; }

@keyframes load-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

/* Mini: chat */
.mini-chat { display: grid; align-content: center; gap: 18px; }
.mc-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: #000;
  font-size: 14px;
  font-weight: 500;
}
.mc-cta .icon { width: 16px; height: 16px; }
.mc-bubble {
  justify-self: end;
  max-width: 250px;
  padding: 12px 14px 8px;
  border-radius: 18px 18px 4px 18px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  box-shadow: 0 10px 40px rgba(0, 5, 221, 0.35);
}
.mc-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}
.mc-meta .icon { width: 14px; height: 14px; }
.js .b-whats:not(.is-in) .mc-bubble { opacity: 0; }
.b-whats.is-in .mc-cta { animation: press 500ms var(--ease-out) 400ms; }
.b-whats.is-in .mc-bubble { transform-origin: bottom right; animation: pop 500ms var(--ease-out) 800ms backwards; }
@keyframes press { 40% { transform: scale(0.95); } }

/* Mini: canvas */
.mini-canvas { display: grid; }
.mz-board {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background-color: var(--surface-2);
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
}
.mz-block {
  position: absolute;
  border: 1px dashed rgba(107, 113, 255, 0.6);
  border-radius: 8px;
  background: rgba(0, 5, 221, 0.08);
}
.mz-nav { top: 8%; left: 6%; right: 6%; height: 12%; }
.mz-hero { top: 27%; left: 6%; width: 50%; height: 30%; }
.mz-img { top: 27%; right: 6%; width: 32%; height: 64%; }
.mz-c1 { bottom: 9%; left: 6%; width: 23%; height: 26%; }
.mz-c2 { bottom: 9%; left: 33%; width: 23%; height: 26%; }
.mz-cursor {
  position: absolute;
  top: 54%;
  left: 52%;
  width: 22px;
  height: 22px;
  color: var(--text);
  fill: var(--surface-2);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}
.js .b-zero:not(.is-in) .mz-block { opacity: 0; }
.b-zero.is-in .mz-block { animation: pop 500ms var(--ease-out) backwards; }
.b-zero.is-in .mz-nav { animation-delay: 300ms; }
.b-zero.is-in .mz-hero { animation-delay: 500ms; }
.b-zero.is-in .mz-img { animation-delay: 700ms; }
.b-zero.is-in .mz-c1 { animation-delay: 900ms; }
.b-zero.is-in .mz-c2 { animation-delay: 1050ms; }
.b-zero.is-in .mz-cursor { animation: cursor-path 1600ms var(--ease-in-out) 200ms backwards; }
@keyframes cursor-path {
  0% { transform: translate(-60px, -70px); opacity: 0; }
  20% { opacity: 1; }
  55% { transform: translate(40px, -40px); }
  100% { transform: none; }
}

/* Mini: approve */
.mini-approve { display: grid; gap: 14px; align-content: center; }
.ma-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}
.ma-list li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
}
.ma-list li + li { border-top: 1px solid var(--border); }
.ma-name { color: var(--text); }
.ma-list em { color: var(--muted); font-size: 13px; font-style: normal; }
.ma-check {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}
.ma-check .icon { width: 13px; height: 13px; stroke-width: 2; }
.is-ok .ma-check { border-color: transparent; background: var(--accent-text); color: #000; }
.is-ok em { color: var(--accent-text); }
.is-wait .ma-check { border-style: dashed; }
.ma-comment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  font-size: 14px;
}
.ma-comment p { display: grid; color: var(--text); line-height: 1.4; }
.ma-comment b { color: var(--muted); font-size: 12px; font-weight: 500; }
.ma-btn {
  flex: none;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: #000;
  font-size: 13px;
  font-weight: 500;
}
.js .b-approve:not(.is-in) .ma-check { transform: scale(0.8); opacity: 0.4; }
.b-approve.is-in .is-ok .ma-check { animation: pop 450ms var(--ease-out) backwards; }
.b-approve.is-in .is-ok:nth-child(1) .ma-check { animation-delay: 400ms; }
.b-approve.is-in .is-ok:nth-child(2) .ma-check { animation-delay: 650ms; }
.b-approve.is-in .ma-comment { animation: fade-up 500ms var(--ease) 900ms backwards; }

@media (min-width: 1024px) {
  .mini-approve { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 16px; }
  .ma-comment { flex-direction: column; align-items: flex-start; }
}

/* Types */

.types-grid { display: grid; gap: 16px; }
.type-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px 16px;
  padding: 24px;
}
.type-card h3 { font-size: 21px; letter-spacing: -0.025em; line-height: 1.2; }
.type-card p,
.type-card .type-actions { grid-column: 1 / -1; }
.type-card p { font-size: 16px; line-height: 1.55; }

@media (min-width: 720px) {
  .type-card { display: flex; flex-direction: column; align-items: stretch; padding: 28px; }
  .type-card h3 { margin-top: 12px; font-size: 22px; }
  .type-card p { flex: 1; }
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
}

.type-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 8px;
  font-size: 15px;
}
.type-pick,
.type-example {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  transition: color 200ms ease;
}
.type-pick { color: var(--text); font-weight: 500; }
.type-pick .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
.type-example { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .type-pick:hover .icon { transform: translateX(3px); }
  .type-example:hover { color: var(--text); }
}

@media (min-width: 720px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .types-grid { grid-template-columns: repeat(6, 1fr); }
  .type-card { grid-column: span 2; }
  .type-card:nth-child(n + 4) { grid-column: span 3; }
}

.types-help { margin-top: 40px; color: var(--muted); }

.also {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.also-label { color: var(--text); }
.also-list { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* Configurator */

.cfg {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-frame);
  background: var(--surface);
}
.cfg-main { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 4vw, 48px); }

.cfg-progress { display: grid; gap: 12px; margin-bottom: 32px; }
.cfg-status { color: var(--muted); font-size: 14px; }
.cfg-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cfg-bars span {
  height: 3px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}
.cfg-bars span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 450ms var(--ease-out);
}
.cfg-bars span.is-on::after { transform: scaleX(1); }

.cfg-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.cfg-step:not([hidden]) { animation: step-in 320ms var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cfg-legend {
  padding: 0;
  color: var(--text);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.cfg-legend:focus { outline: none; }
.cfg-legend:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 4px; }
.cfg-hint { margin: 8px 0 24px; font-size: 15px; }

.opt-grid { display: grid; gap: 10px; }
@media (min-width: 560px) {
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
}

.opt,
.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.opt:active,
.chip:active { transform: scale(0.98); }
.opt { min-height: 60px; padding: 14px 16px; border-radius: 16px; line-height: 1.3; }
.chip { min-height: 44px; padding: 0 18px 0 14px; border-radius: var(--r-pill); gap: 8px; }

@media (hover: hover) and (pointer: fine) {
  .opt:hover,
  .chip:hover { border-color: var(--border-hover); background: rgba(255, 255, 255, 0.04); }
}

.opt[aria-pressed="true"],
.chip[aria-pressed="true"] {
  border-color: var(--accent-text);
  background: var(--accent-soft);
}

.opt-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.opt-mark .icon { width: 13px; height: 13px; stroke-width: 2.25; color: #000; opacity: 0; transform: scale(0.6); transition: opacity 200ms ease, transform 250ms var(--ease-out); }
.opt[aria-pressed="true"] .opt-mark { border-color: transparent; background: var(--accent-text); }
.opt[aria-pressed="true"] .opt-mark .icon { opacity: 1; transform: none; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip .icon { width: 16px; height: 16px; color: var(--accent-text); opacity: 0.25; transition: opacity 200ms ease; }
.chip[aria-pressed="true"] .icon { opacity: 1; }

.fields { display: grid; gap: 18px; }
@media (min-width: 560px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 8px; }
.field label { color: var(--text); font-size: 15px; font-weight: 500; }
.optional { color: var(--muted); font-weight: 400; }
.field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-field);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input::placeholder { color: #7d7d7d; }
.field input:hover { border-color: var(--border-hover); }
.field input:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(107, 113, 255, 0.25); }
.field input[aria-invalid="true"] { border-color: var(--danger); }

.cfg-error { min-height: 24px; margin-top: 16px; color: var(--danger); font-size: 14px; }

.cfg-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.cfg-next { margin-left: auto; }
.cfg-nav .btn { min-width: 0; }

@media (max-width: 479.98px) {
  .cfg-back { width: 48px; padding: 0; }
  .cfg-back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cfg-next { flex: 1; padding: 0 18px; }
}

.cfg-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 4vw, 40px);
  border-top: 1px solid var(--border);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(0, 5, 221, 0.2), transparent 70%),
    var(--surface-2);
}
.cfg-preview-label { color: var(--muted); font-size: 14px; }
.chat {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-2);
}
.chat-avatar img { width: 22px; height: 22px; }
.chat-who { display: grid; line-height: 1.3; }
.chat-who b { color: var(--text); font-size: 15px; font-weight: 500; }
.chat-who small { color: var(--muted); font-size: 12px; }
.chat-body { padding: 18px 16px 20px; }
.chat-bubble {
  margin-left: auto;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 18px 18px 4px 18px;
  background: var(--accent-deep);
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-bubble .is-empty { color: rgba(255, 255, 255, 0.55); }
.cfg-preview-note { color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (min-width: 960px) {
  .cfg { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .cfg-preview { border-top: 0; border-left: 1px solid var(--border); }
}
@media (max-width: 959.98px) {
  .cfg:not([data-step="3"]) .cfg-preview { display: none; }
}

/* Process */

.steps { display: grid; gap: 0; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-content: start;
  column-gap: 20px;
  padding-bottom: 40px;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}
.step h3 { padding-top: 8px; font-size: 21px; letter-spacing: -0.02em; line-height: 1.3; }
.step p { margin-top: 8px; font-size: 16px; line-height: 1.55; }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 8px;
  left: 21.5px;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-text), rgba(107, 113, 255, 0.08));
  transform-origin: top;
  transition: transform 900ms var(--ease);
}
.js .steps:not(.is-in) .step::after { transform: scaleY(0); }
.steps.is-in .step:nth-child(2)::after { transition-delay: 150ms; }
.steps.is-in .step:nth-child(3)::after { transition-delay: 300ms; }

@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { grid-template-columns: 1fr; padding-bottom: 0; }
  .step-num { grid-row: auto; margin-bottom: 20px; }
  .step h3 { padding-top: 0; }
  .step:not(:last-child)::after {
    top: 21.5px;
    bottom: auto;
    left: 52px;
    right: -24px;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-text), rgba(107, 113, 255, 0.08));
    transform-origin: left;
  }
  .js .steps:not(.is-in) .step::after { transform: scaleX(0); }
}

/* Investment */

.invest {
  display: grid;
  gap: 32px;
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--border);
  border-radius: var(--r-frame);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(0, 5, 221, 0.14), transparent 70%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.invest-head { display: grid; gap: 20px; }
.invest-head .h2 { max-width: 15ch; }
.invest-body { display: grid; gap: 28px; justify-items: start; max-width: 520px; }

@media (min-width: 960px) {
  .invest { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
}

/* About */

.about-grid { display: grid; gap: 48px; align-items: center; }
.about-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  max-height: 640px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background:
    radial-gradient(55% 45% at 50% 46%, rgba(0, 5, 221, 0.28), transparent 70%),
    var(--surface);
  isolation: isolate;
}
.logo-3d { mix-blend-mode: screen; }
.about-visual picture { width: 64%; margin-top: -12%; }
.about-visual img { width: 100%; }
.about-visual figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 2px;
  font-size: 14px;
  line-height: 1.45;
}
.about-visual figcaption b { color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }

.about-copy { display: grid; gap: 20px; }
.about-text { display: grid; gap: 16px; max-width: 60ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.stats dd {
  color: var(--text);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}
.stats dt { font-size: 14px; line-height: 1.4; }

@media (min-width: 960px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: 80px; }
  .about-visual { aspect-ratio: 4 / 5; }
  .about-visual picture { width: 78%; margin-top: -10%; }
}

/* FAQ */

.faq-grid { display: grid; gap: 40px; }
.faq-head { display: grid; gap: 20px; align-content: start; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 22px 0;
  color: var(--text);
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
  transition: color 200ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { color: var(--muted); transition: transform 300ms var(--ease-out), color 200ms ease; }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover .icon { color: var(--text); }
}
.faq-a { padding: 0 48px 24px 0; }
.faq-a p { max-width: 62ch; font-size: 16px; line-height: 1.65; }

.faq-item::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 320ms var(--ease), content-visibility 320ms allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }

@media (min-width: 960px) {
  .faq-grid { grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* Final CTA */

.cta {
  position: relative;
  overflow: hidden;
  padding-block: var(--section);
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  top: calc(var(--section) - 40px);
  left: 50%;
  z-index: -1;
  width: min(900px, 140vw);
  height: 520px;
  background: radial-gradient(50% 50% at 50% 40%, rgba(0, 5, 221, 0.42), rgba(0, 5, 221, 0.08) 55%, transparent 72%);
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-inner { display: grid; justify-items: center; gap: 22px; }
.cta-logo-wrap { width: clamp(170px, 22vw, 260px); margin-bottom: 8px; }
.cta-logo { width: 100%; animation: drift 9s ease-in-out infinite alternate; }
@keyframes drift {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-14px) rotate(2deg); }
}
.cta-title { max-width: 16ch; }
.cta-sub { max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* Footer */

.site-footer {
  padding: 64px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.footer-grid { display: grid; gap: 40px; }
.footer-brand { display: grid; gap: 12px; max-width: 320px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.footer-nav a,
.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--muted);
  transition: color 200ms ease;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--text); }
.footer-contact .icon { width: 18px; height: 18px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* Floating WhatsApp (phones only) */

.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--text);
  color: #000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 250ms ease, transform 300ms var(--ease-out);
}
.wa-float .icon { width: 24px; height: 24px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:active { transform: scale(0.95); }

@media (min-width: 768px) {
  .wa-float { display: none; }
}

/* 404 */

.page-404 {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: calc(var(--header-h) + 48px) 0 64px;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.page-404::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(50% 40% at 50% 45%, rgba(0, 5, 221, 0.3), transparent 72%);
}
.page-404-inner { display: grid; justify-items: center; gap: 22px; }
.page-404 .logo-3d { width: clamp(150px, 20vw, 220px); }

/* Reduced motion: keep fades, drop movement */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .scene-img { filter: none; transform: none; }
}
