/* =========================================================
   ИИ Решения для бизнеса — стили MVP 1.0
   Шрифты: Golos Text (OFL 1.1) — заголовки, Manrope (OFL 1.1) — текст.
   Лицензии проверены и задокументированы в font-license-audit.md
   ========================================================= */

/* ---------- Fonts (self-hosted, локальные файлы) ---------- */
@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/GolosText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/GolosText-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../assets/fonts/GolosText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --navy-900: #111c2e;
  --navy-800: #1a2332;
  --navy-700: #24304a;
  --blue-accent: #2aabee;
  --blue-accent-dark: #1678a8;
  --blue-accent-darker: #0f4f6e;
  --blue-accent-light: #eaf6fd;
  --white: #ffffff;
  --bg-light: #f6f8fb;
  --bg-light-alt: #eef2f7;
  --border-light: #e2e8f0;
  --text-primary: #111c2e;
  --text-secondary: #55657c;
  --text-on-dark: #ffffff;
  --text-on-dark-secondary: #aab6c9;
  --success: #1fa96a;
  --success-bg: #e9f9f1;
  --error: #e0473b;
  --error-bg: #fdecea;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(17, 28, 46, 0.06);
  --shadow-md: 0 12px 32px rgba(17, 28, 46, 0.1);
  --shadow-lg: 0 24px 64px rgba(17, 28, 46, 0.16);
  --font-heading: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container-w: 1200px;
  --header-h: 76px;
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: inherit;
}
p {
  margin: 0;
}
input,
textarea,
select {
  font-family: inherit;
  font-size: 16px;
}

/* Visible focus for keyboard navigation everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--blue-accent-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--transition-base);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

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

.section {
  padding: 88px 0;
}
.section-tight {
  padding: 64px 0;
}
.section-dark {
  background: var(--navy-900);
  color: var(--text-on-dark);
}
.section-light-alt {
  background: var(--bg-light);
}

.section-head {
  max-width: 720px;
  margin: 0 0 48px;
}
.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-accent-dark);
  margin: 0 0 14px;
  display: inline-block;
}
.hero .eyebrow,
.section-dark .eyebrow {
  color: var(--blue-accent);
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}
.section-dark .section-head p {
  color: var(--text-on-dark-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  padding: 14px 28px;
  transition: transform var(--transition-base), box-shadow var(--transition-base),
    background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--blue-accent-dark);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(42, 171, 238, 0.35);
}
.btn-primary:hover {
  background: var(--blue-accent-darker);
  box-shadow: 0 10px 26px rgba(42, 171, 238, 0.45);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--navy-900);
  color: #fff;
}
.btn-secondary:hover {
  background: var(--navy-700);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-ghost:hover {
  border-color: var(--blue-accent);
  color: var(--blue-accent-dark);
}
.section-dark .btn-ghost,
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.section-dark .btn-ghost:hover,
.hero .btn-ghost:hover {
  border-color: var(--blue-accent);
  color: var(--blue-accent);
}
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.15;
  color: #fff;
  display: flex;
  flex-direction: column;
}
.logo-text-sub {
  font-weight: 500;
  font-size: 12px;
  color: var(--text-on-dark-secondary);
}
.logo-placeholder-badge {
  display: none;
}

.main-nav-cta {
  display: none;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  padding: 8px 2px;
  position: relative;
  transition: color var(--transition-base);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}
.main-nav a:hover,
.main-nav a.is-active {
  color: #fff;
}
.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 18% 20%, #1a2f4d 0%, var(--navy-900) 45%),
    linear-gradient(160deg, var(--navy-900) 0%, #0d1524 100%);
  color: #fff;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.hero-bg::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.55), transparent 70%);
  top: -160px;
  right: -120px;
}
.hero-bg::after {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(42, 171, 238, 0.25), transparent 70%);
  bottom: -140px;
  left: -80px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero .eyebrow {
  color: var(--blue-accent);
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-on-dark-secondary);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-chip {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

/* ---------- Advantages ---------- */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.advantage-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.advantage-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-accent-light);
  color: var(--blue-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.advantage-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.advantage-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ---------- Pain points ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pain-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--blue-accent-light);
  color: var(--blue-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pain-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.pain-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
}
.pain-conclusion {
  max-width: 640px;
  margin: 32px auto 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}
.pain-cta {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* ---------- Services ---------- */
.service-group {
  margin-bottom: 56px;
}
.service-group:last-child {
  margin-bottom: 0;
}
.service-group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.service-group-head h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.service-group-head p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 680px;
}
.service-group-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.service-group-note {
  font-size: 13.5px;
  color: var(--text-secondary);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 16px;
}
.service-group-note strong {
  color: var(--text-primary);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(42, 171, 238, 0.4);
}
.price-card h4 {
  font-size: 16.5px;
  margin-bottom: 10px;
  min-height: 44px;
}
.price-card .price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--blue-accent-dark);
  margin-bottom: 14px;
}
.price-card .price-caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
}
.price-card ul {
  margin-bottom: 18px;
  flex-grow: 1;
}
.price-card li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.5;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue-accent);
}
.price-card .btn {
  margin-top: auto;
}

.no-price-card {
  background: var(--bg-light);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.no-price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.no-price-card h4 {
  font-size: 17px;
}
.no-price-card p {
  color: var(--text-secondary);
  font-size: 14.5px;
}

/* ---------- Packages ---------- */
.packages-intro {
  max-width: 720px;
  margin-bottom: 44px;
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.package-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.package-card.is-featured {
  background: linear-gradient(160deg, #16233a 0%, #0e1826 100%);
  border: 1.5px solid var(--blue-accent);
}
.package-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(42, 171, 238, 0.16);
  color: var(--blue-accent);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.package-card h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 6px;
}
.package-purpose {
  color: var(--text-on-dark-secondary);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.package-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  color: var(--blue-accent);
  margin-bottom: 20px;
}
.package-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-on-dark-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 22px;
}
.package-flow span.step {
  color: #fff;
  font-weight: 600;
}
.package-flow span.arrow {
  color: var(--blue-accent);
}
.package-card ul.package-list {
  margin-bottom: 26px;
}
.package-card ul.package-list li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  line-height: 1.5;
}
.package-card ul.package-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue-accent);
  font-weight: 700;
}

.package-note {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.package-note h4 {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.package-note ul li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
}
.package-note ul li::before {
  content: "—";
  position: absolute;
  left: 0;
}

.compare-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: #fff;
}
table.compare-table th,
table.compare-table td {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-light);
}
table.compare-table th {
  font-family: var(--font-heading);
  background: var(--bg-light);
  font-weight: 700;
  color: var(--text-primary);
}
table.compare-table td.center,
table.compare-table th.center {
  text-align: center;
}
table.compare-table tr:last-child td {
  border-bottom: none;
}
.yes-mark {
  color: var(--success);
  font-weight: 700;
}
.no-mark {
  color: var(--text-secondary);
}

.payment-stages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 8px;
}
.payment-stage-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
}
.payment-stage-card h4 {
  font-size: 15.5px;
  margin-bottom: 12px;
}
.payment-stage-card ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payment-stage-card li {
  font-size: 13.5px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed var(--border-light);
  padding-bottom: 8px;
}
.payment-stage-card li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.payment-stage-card li b {
  color: var(--text-primary);
}

/* ---------- Process ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.process-step-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--blue-accent);
  opacity: 0.5;
  margin-bottom: 14px;
}
.process-step h4 {
  font-size: 15.5px;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- Cases: hero case ---------- */
.case-hero {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
}
.case-hero-head {
  max-width: 780px;
  margin-bottom: 32px;
}
.case-hero-head h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin: 14px 0 12px;
  line-height: 1.25;
}
.case-subtitle {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.6;
}

.case-hero-visual {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.browser-mockup {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.browser-mockup-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #eef1f6;
  border-bottom: 1px solid var(--border-light);
}
.browser-mockup-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d7dce4;
}
.browser-mockup-bar span:nth-child(1) {
  background: #ef5f57;
}
.browser-mockup-bar span:nth-child(2) {
  background: #f6bd3b;
}
.browser-mockup-bar span:nth-child(3) {
  background: #61c454;
}
.browser-mockup-url {
  margin-left: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  flex-grow: 1;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-mockup img {
  display: block;
  width: 100%;
}
.phone-mockup {
  border-radius: 32px;
  overflow: hidden;
  border: 7px solid var(--navy-900);
  box-shadow: var(--shadow-lg);
  background: var(--navy-900);
  max-width: 240px;
  margin: 0 auto;
}
.phone-mockup img {
  display: block;
  width: 100%;
}

.case-chain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
}
.case-chain-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-primary);
}
.case-chain-step .chain-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--blue-accent-light);
  color: var(--blue-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.case-chain-arrow {
  color: var(--blue-accent);
  flex-shrink: 0;
}

.case-mini-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.mini-gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: #fff;
}
.mini-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  object-position: top;
}
.mini-gallery-caption {
  font-size: 11.5px;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-top: 1px solid var(--border-light);
}

.case-mock-table {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.case-mock-table-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}
.case-mock-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.case-mock-table table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 11.5px;
}
.case-mock-table th,
.case-mock-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  white-space: nowrap;
}
.case-mock-table th {
  background: #fafbfd;
  font-weight: 700;
  color: var(--text-primary);
}
.case-mock-table .masked {
  color: var(--border-light);
  letter-spacing: 1px;
}

.case-hero-result {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.case-hero-result p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.65;
  font-style: italic;
}
.case-hero-note {
  font-size: 12.5px;
  color: var(--text-secondary);
  background: var(--bg-light);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}

/* ---------- Cases: capabilities grid (same project, zoomed in) ---------- */
.capabilities-head {
  margin-bottom: 18px;
}
.capabilities-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 2px;
}
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.capability-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.capability-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.capability-card-visual {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
}
.capability-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.capability-card-visual-table {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.capability-card-visual-table .case-mock-table {
  width: 100%;
}
.capability-card-body {
  padding: 18px 20px 22px;
}
.capability-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue-accent-dark);
  background: var(--blue-accent-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}
.capability-card h4 {
  font-size: 15.5px;
  margin-bottom: 6px;
  line-height: 1.35;
}
.capability-card-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ---------- Cases: SMM cards (currently unused on the page, kept for future re-enable) ---------- */
.smm-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.case-card-visual {
  aspect-ratio: 4/3;
  background: var(--bg-light);
  overflow: hidden;
  position: relative;
}
.case-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-card-visual.is-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  background: repeating-linear-gradient(
    135deg,
    var(--bg-light),
    var(--bg-light) 10px,
    var(--bg-light-alt) 10px,
    var(--bg-light-alt) 20px
  );
  border-bottom: 1px dashed var(--border-light);
}
.case-card-visual.is-pending span {
  font-size: 12px;
  font-weight: 600;
  max-width: 200px;
  text-align: center;
  line-height: 1.4;
}
.case-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.case-card-body h3 {
  font-size: 17.5px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.case-card-body .case-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin: 14px 0 6px;
}
.case-card-body .case-field-label:first-of-type {
  margin-top: 4px;
}
.case-card-body ul.case-did-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  margin-bottom: 5px;
  line-height: 1.5;
}
.case-card-body ul.case-did-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--blue-accent);
}
.case-did-list code,
.case-hero code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--text-primary);
}
.case-safe-quote {
  font-size: 13.5px;
  color: var(--text-primary);
  font-style: italic;
  background: var(--bg-light);
  border-left: 3px solid var(--blue-accent);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  margin: 4px 0 14px;
  line-height: 1.55;
}
.case-source-note {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.case-card-body .btn {
  margin-top: 16px;
}

.case-status {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.case-status.own {
  background: var(--blue-accent-light);
  color: var(--blue-accent-darker);
}
.case-status.client {
  background: #fff4e5;
  color: #a15c00;
}
.case-status.demo {
  background: #f1eafe;
  color: #6a3fd1;
}
.case-status.prototype {
  background: var(--bg-light-alt);
  color: var(--text-secondary);
}
.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.case-tag {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

/* ---------- Pre-launch checklist ---------- */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.checklist-item {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.checklist-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(42, 171, 238, 0.18);
  color: var(--blue-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.checklist-item p {
  font-size: 14.5px;
  color: var(--text-on-dark-secondary);
  line-height: 1.55;
}
.audit-callout {
  background: rgba(42, 171, 238, 0.1);
  border: 1px solid rgba(42, 171, 238, 0.3);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.audit-callout p {
  color: #fff;
  font-size: 15px;
  max-width: 620px;
}
.audit-callout strong {
  color: var(--blue-accent);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue-accent);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- About / Founders ---------- */
.about-section {
  position: relative;
  overflow: hidden;
}
.about-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px circle at 85% 0%, rgba(42, 171, 238, 0.14), transparent 60%),
    radial-gradient(500px circle at 5% 100%, rgba(42, 171, 238, 0.1), transparent 60%);
}
.about-intro {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-bottom: 48px;
}
.about-heading {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 780px;
}
.text-accent {
  background: linear-gradient(90deg, var(--blue-accent), #8fd7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-lead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: #fff;
  max-width: 640px;
  margin-bottom: 28px;
}
.about-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-col {
  display: flex;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.about-col-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(42, 171, 238, 0.16);
  color: var(--blue-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.about-col p {
  color: var(--text-on-dark-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}

.founders-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.founder-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), border-color var(--transition-base);
  cursor: pointer;
  perspective: 1400px;
}
.founder-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 171, 238, 0.6);
}
.founder-card:focus-visible {
  outline: 3px solid var(--blue-accent);
  outline-offset: 4px;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 650ms cubic-bezier(0.4, 0.2, 0.2, 1);
}
.founder-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.flip-card-front {
  position: relative;
}
.flip-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--navy-800);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-card-back h3 {
  color: #fff;
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 12px;
}
.flip-card-back p {
  color: var(--text-on-dark-secondary);
  font-size: 14.5px;
  line-height: 1.6;
}
.flip-card-back .flip-hint {
  margin-top: 18px;
  color: var(--blue-accent);
  font-size: 13px;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  .flip-card-inner,
  .flip-card-face {
    transition: none !important;
  }
  .founder-card.is-flipped .flip-card-inner {
    transform: none;
  }
  .flip-card-back {
    transform: none;
    display: none;
  }
  .founder-card.is-flipped .flip-card-front {
    display: none;
  }
  .founder-card.is-flipped .flip-card-back {
    display: flex;
  }
}
.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--navy-700);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms ease;
}
.founder-card:hover .founder-photo img {
  transform: scale(1.04);
}
.founder-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 14, 24, 0.92) 0%, rgba(9, 14, 24, 0.55) 28%, transparent 55%);
}
.founder-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
}
.founder-caption h3 {
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 4px;
}
.founder-caption p {
  color: var(--blue-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.process-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px 28px;
}
.process-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.process-strip-num {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-accent), #1a6fa3);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.process-strip-label {
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}
.process-strip-arrow {
  color: var(--blue-accent);
  font-size: 18px;
  flex-shrink: 0;
}

/* ---------- CTA transition ---------- */
.cta-transition {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
}
.cta-transition-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-transition-inner h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}
.cta-transition-inner p {
  color: var(--text-on-dark-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* ---------- Lead form ---------- */
.form-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.demo-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff8e6;
  border: 1px solid #f5d98b;
  color: #7a5b00;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 28px;
}
.demo-banner strong {
  display: block;
  font-size: 13.5px;
  margin-bottom: 2px;
}
.demo-banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}
.form-field .optional-tag {
  font-weight: 400;
  color: var(--text-secondary);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--text-primary);
  background: #fff;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.15);
  outline: none;
}
.form-field textarea {
  resize: vertical;
  min-height: 96px;
}
.field-error {
  font-size: 12.5px;
  color: var(--error);
  min-height: 16px;
  display: block;
}
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error);
}
.form-hint {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: -8px;
  margin-bottom: 18px;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}
.checkbox-field input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue-accent);
  flex-shrink: 0;
}
.checkbox-field label {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.checkbox-field a {
  color: var(--blue-accent-dark);
  font-weight: 600;
  text-decoration: underline;
}
.form-status {
  margin-top: 20px;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.55;
  display: none;
}
.form-status.is-visible {
  display: block;
}
.form-status.is-demo {
  background: var(--blue-accent-light);
  color: #0d5a80;
  border: 1px solid rgba(42, 171, 238, 0.35);
}
.form-status.is-success {
  background: var(--success-bg);
  color: #146c43;
  border: 1px solid rgba(31, 169, 106, 0.35);
}
.form-status.is-error {
  background: var(--error-bg);
  color: #9c2c22;
  border: 1px solid rgba(224, 71, 59, 0.35);
}
.form-status strong {
  display: block;
  margin-bottom: 4px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 14, 24, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
}
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--transition-base);
}
.modal-overlay.is-open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--transition-base), color var(--transition-base);
}
.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}
.modal h2 {
  font-size: 22px;
  margin-bottom: 8px;
  padding-right: 30px;
}
.modal > p.modal-desc {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 24px;
}
body.modal-open {
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--text-on-dark-secondary);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand .logo-text,
.footer-brand .logo-text-sub {
  color: #fff;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14.5px;
  transition: color var(--transition-base);
}
.footer-col a:hover {
  color: #fff;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal p {
  margin-bottom: 10px;
}
.footer-legal .todo-mark {
  color: var(--blue-accent);
  font-weight: 600;
}
.footer-bottom {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Legal stub pages ---------- */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 64px 0 48px;
}
.legal-hero .eyebrow {
  color: var(--blue-accent);
}
.legal-hero h1 {
  font-size: clamp(26px, 4vw, 36px);
  margin-bottom: 12px;
}
.legal-hero p {
  color: var(--text-on-dark-secondary);
  max-width: 640px;
  font-size: 15.5px;
}
.legal-body {
  flex-grow: 1;
  padding: 56px 0;
}
.legal-status-banner {
  display: flex;
  gap: 16px;
  background: #fff8e6;
  border: 1px solid #f5d98b;
  color: #7a5b00;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 40px;
  max-width: 760px;
}
.legal-status-banner svg {
  flex-shrink: 0;
  margin-top: 3px;
}
.legal-status-banner strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.legal-status-banner p {
  font-size: 14px;
  line-height: 1.6;
}
.legal-content {
  max-width: 760px;
}
.legal-content h2 {
  font-size: 19px;
  margin: 32px 0 12px;
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.legal-content ul {
  margin-bottom: 14px;
}
.legal-content li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}
.legal-content li::before {
  content: "—";
  position: absolute;
  left: 0;
}
.legal-content a {
  color: var(--blue-accent-dark);
  font-weight: 600;
  text-decoration: underline;
}
.legal-content h3 {
  font-size: 16.5px;
  margin: 24px 0 10px;
}
.legal-content img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 20px 0;
}
.legal-content figcaption {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: -12px;
  margin-bottom: 20px;
}

/* ---------- Article (blog) meta + CTA ---------- */
.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-on-dark-secondary);
  font-size: 13.5px;
  margin-top: 14px;
}
.article-meta .eyebrow {
  margin: 0;
}
.article-cta {
  max-width: 760px;
  margin: 40px 0 0;
  padding: 28px 26px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-align: center;
}
.article-cta p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 16px;
}
.legal-meta-box {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-top: 32px;
  max-width: 760px;
}
.legal-meta-box h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.legal-meta-box p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-weight: 600;
  color: var(--blue-accent-dark);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .advantages-grid,
  .pain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .founders-grid {
    gap: 20px;
  }
  .process-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .no-price-grid {
    grid-template-columns: 1fr;
  }
  .smm-cases-grid,
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-mini-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--navy-900);
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    z-index: 480;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    width: 100%;
    padding: 16px 4px;
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .main-nav a::after {
    display: none;
  }
  .main-nav-cta {
    display: block;
    margin-top: 20px;
    width: 100%;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .header-actions .btn-primary.header-cta-desktop {
    display: none;
  }
  .about-columns {
    grid-template-columns: 1fr;
  }
  .founders-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
  .founder-photo {
    aspect-ratio: 3 / 4;
  }
  .process-strip {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 16px;
  }
  .process-strip-arrow {
    display: none;
  }
  .smm-cases-grid,
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .case-hero-visual {
    grid-template-columns: 1fr;
  }
  .phone-mockup {
    max-width: 220px;
  }
  .case-mini-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }
  .container {
    padding: 0 20px;
  }
  .advantages-grid,
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .packages-grid {
    grid-template-columns: 1fr;
  }
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
  .about-col {
    padding: 16px 18px;
  }
  .process-strip {
    padding: 20px;
    gap: 18px 24px;
  }
  .process-strip-label {
    white-space: normal;
  }
  .case-hero {
    padding: 24px 20px;
  }
  .case-chain {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 12px;
  }
  .case-mini-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .checklist {
    grid-template-columns: 1fr;
  }
  .payment-stages {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 28px 22px;
  }
  .audit-callout {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 96px 0 72px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  /* Длинные надписи на кнопках переносятся вместо того, чтобы толкать
     страницу за пределы узкого экрана (найдено при проверке на 320px). */
  .btn {
    white-space: normal;
    max-width: 100%;
    text-align: center;
  }
  .process-list {
    grid-template-columns: 1fr;
  }
  .no-price-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    padding: 26px 18px;
  }
  .price-card h4 {
    min-height: auto;
  }
  .case-mini-gallery {
    grid-template-columns: 1fr;
  }
  .case-chain {
    justify-content: center;
  }
}

/* =========================================================
   ИИ-консультант — виджет (локальный демо-прототип)
   ========================================================= */
.ai-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 850;
}

/* ---------- FAB ---------- */
.ai-fab {
  height: 52px;
  padding: 0 18px 0 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: linear-gradient(135deg, var(--blue-accent), #1a6fa3);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(42, 171, 238, 0.35), var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(42, 171, 238, 0.45), var(--shadow-md);
}
.ai-fab-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ai-fab-icon-chat,
.ai-fab-icon-close {
  position: absolute;
  transition: opacity 150ms ease, transform 150ms ease;
}
.ai-fab-icon-close {
  opacity: 0;
  transform: scale(0.6);
}
.ai-fab[aria-expanded="true"] .ai-fab-icon-chat {
  opacity: 0;
  transform: scale(0.6);
}
.ai-fab[aria-expanded="true"] .ai-fab-icon-close {
  opacity: 1;
  transform: scale(1);
}
.ai-fab-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* ---------- Panel shell ---------- */
.ai-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(560px, 70vh);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity var(--transition-base), transform var(--transition-base);
  pointer-events: none;
}
.ai-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-panel-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--navy-900);
  color: #fff;
}
.ai-panel-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ai-avatar {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-accent), #1a6fa3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.ai-panel-header-text {
  min-width: 0;
}
.ai-panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  color: #fff;
  line-height: 1.3;
}
.ai-demo-pill {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--blue-accent);
  background: rgba(42, 171, 238, 0.16);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
}
.ai-panel-subtitle {
  font-size: 11.5px;
  color: var(--text-on-dark-secondary);
  line-height: 1.3;
  margin-top: 1px;
}
.ai-panel-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base);
}
.ai-panel-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Messages ---------- */
.ai-messages {
  flex-grow: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-light);
  scroll-behavior: smooth;
}
.ai-msg {
  max-width: 88%;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 10px 13px;
  border-radius: 14px;
  white-space: pre-line;
  overflow-wrap: break-word;
  animation: ai-msg-in 200ms ease;
}
@keyframes ai-msg-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ai-msg-bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.ai-msg-user {
  align-self: flex-end;
  background: var(--blue-accent-dark);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.ai-msg a {
  color: inherit;
  text-decoration: underline;
  font-weight: 600;
  text-underline-offset: 2px;
}
.ai-msg-bot a {
  color: var(--blue-accent-dark);
}

.ai-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 11px 14px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: #fff;
  border: 1px solid var(--border-light);
}
.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.5;
  animation: ai-typing-bounce 1s ease-in-out infinite;
}
.ai-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.ai-typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ai-typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ---------- Quick replies ---------- */
.ai-quick-replies {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--border-light);
}
.ai-chip {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-accent-darker);
  background: var(--blue-accent-light);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 7px 13px;
  transition: background var(--transition-base), color var(--transition-base), transform var(--transition-base);
}
.ai-chip:hover {
  background: var(--blue-accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Input ---------- */
.ai-input-form {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-light);
  background: #fff;
}
.ai-input-form textarea {
  flex-grow: 1;
  min-width: 0;
  resize: none;
  max-height: 96px;
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 9px 15px;
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-primary);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.ai-input-form textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 4px rgba(42, 171, 238, 0.15);
  outline: none;
}
.ai-send-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--blue-accent-dark);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), transform var(--transition-base);
}
.ai-send-btn:hover:not(:disabled) {
  background: var(--blue-accent-darker);
  transform: translateY(-1px);
}
.ai-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ai-input-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #fff;
}
.ai-input-error {
  font-size: 11.5px;
  color: #c7362a;
  min-height: 14px;
  flex-grow: 1;
}
.ai-telegram-link {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--blue-accent-dark);
  white-space: nowrap;
}
.ai-telegram-link:hover {
  color: var(--blue-accent-darker);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .ai-widget {
    right: 16px;
    bottom: 16px;
  }
  .ai-fab-label {
    display: none;
  }
  .ai-fab {
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .ai-panel {
    right: 10px;
    left: 10px;
    bottom: 82px;
    width: auto;
    max-width: none;
    height: min(70vh, 620px);
  }
}

@media (max-width: 380px) {
  .ai-panel {
    right: 8px;
    left: 8px;
    bottom: 76px;
  }
  .ai-quick-replies {
    padding: 8px 10px;
  }
  .ai-chip {
    font-size: 12px;
    padding: 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-msg {
    animation: none;
  }
  .ai-typing span {
    animation: none;
    opacity: 0.7;
  }
  .ai-fab,
  .ai-panel,
  .ai-fab-icon-chat,
  .ai-fab-icon-close {
    transition: none;
  }
}
