/* Digital Engineer AI — dark tech landing */
:root {
  --bg: #05070a;
  --bg-2: #0a0e14;
  --bg-elevated: #10161f;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(61, 139, 253, 0.35);
  --text: #f0f4fa;
  --text-muted: #9aa5b8;
  --accent: #3d8bfd;
  --accent-soft: rgba(61, 139, 253, 0.22);
  --cyan: #00e5ff;
  --gold: #c9a227;
  --gold-soft: rgba(201, 162, 39, 0.2);
  --danger: #ff6b7a;
  --success: #3dd68c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container: 1120px;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #7af0ff;
}

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  position: relative;
}

.section--tight {
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 18ch;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 2rem;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(5, 7, 10, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(61, 139, 253, 0.35);
}

.nav-cta:hover {
  filter: brightness(1.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(61, 139, 253, 0.4);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 16px 40px rgba(61, 139, 253, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-demo {
  width: 100%;
  min-height: 52px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 2rem) 0 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(61, 139, 253, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 70%, rgba(0, 229, 255, 0.1), transparent 50%),
    linear-gradient(180deg, #0a1018 0%, var(--bg) 55%, var(--bg) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1.15rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0;
  background: linear-gradient(120deg, #fff 20%, var(--gold) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandIn 0.9s var(--ease) both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
  max-width: 52rem;
  animation: fadeUp 0.8s 0.15s var(--ease) both;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  max-width: 38rem;
  animation: fadeUp 0.8s 0.28s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0.25rem 0 0;
  animation: fadeUp 0.8s 0.4s var(--ease) both;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0.15rem 0 0;
  animation: fadeUp 0.8s 0.5s var(--ease) both;
}

.hero-trust::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

@keyframes brandIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Problem */
.problem-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: end;
  }
}

.problem-block h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.problem-block p {
  color: var(--text-muted);
}

.problem-block--solve {
  padding: 1.5rem;
  border-left: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Benefits */
.benefits {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
}

.benefit {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.benefit-feature {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--cyan);
}

.benefit-gain {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Products */
.products {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product {
  position: relative;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.9), rgba(10, 14, 20, 0.6));
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.product:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.products-note {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Demo widgets */
.demo-stage {
  display: grid;
  gap: 1.25rem;
  transition: gap 0.6s var(--ease);
}

@media (min-width: 900px) {
  .demo-stage {
    grid-template-columns: 1fr 1fr;
  }

  .demo-stage.is-split {
    gap: clamp(2rem, 8vw, 6rem);
  }

  .demo-stage.is-split .demo-panel--chat {
    transform: translateX(-8%);
  }

  .demo-stage.is-split .demo-panel--voice {
    transform: translateX(8%);
  }
}

.demo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 22, 31, 0.75);
  padding: 1.25rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.7s var(--ease), border-color 0.3s ease;
}

.demo-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.demo-panel-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.demo-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 80%, rgba(61, 139, 253, 0.15), transparent 55%),
    #070b12;
  border: 1px solid var(--line);
  display: none;
}

.demo-panel [data-close-widget] {
  display: none;
}

.demo-panel.is-open [data-close-widget] {
  display: inline-flex;
}

.demo-panel.is-open .demo-frame-wrap {
  display: block;
}

.demo-panel.is-open .btn-demo,
.demo-panel.is-open .demo-hint {
  display: none;
}

.demo-frame {
  width: 100%;
  height: 480px;
  border: 0;
  background: transparent;
}

.demo-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 2rem 1rem;
}

/* Architecture diagrams */
.arch {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(16, 22, 31, 0.95), rgba(5, 7, 10, 0.8));
  overflow-x: auto;
}

.arch svg {
  width: 100%;
  min-width: 560px;
  height: auto;
  display: block;
}

.arch-node {
  fill: rgba(61, 139, 253, 0.18);
  stroke: var(--accent);
  stroke-width: 1.5;
}

.arch-zone {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.arch-label {
  fill: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
}

.arch-zone-title {
  fill: var(--gold);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.arch-flow {
  stroke: var(--cyan);
  stroke-width: 1.75;
  fill: none;
  stroke-dasharray: 5 6;
  animation: flowDash 1.2s linear infinite;
}

@keyframes flowDash {
  to { stroke-dashoffset: -22; }
}

/* Universal */
.universal-points {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0;
  list-style: none;
}

.universal-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
}

.universal-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* Steps */
.steps {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 1.1rem;
  line-height: 1.4;
}

.steps strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.steps span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* About */
.about {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 800px) {
  .about {
    grid-template-columns: 240px 1fr;
    gap: 3rem;
  }
}

.about-photo {
  display: block;
  width: 240px;
  height: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow:
    0 0 0 1px rgba(201, 162, 39, 0.35),
    var(--shadow);
  margin-inline: auto;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(16, 22, 31, 0.55);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  font-weight: 650;
  font-family: var(--font-display);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 1.15rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* Form */
.lead-form {
  max-width: 520px;
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.field input {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input.is-invalid {
  border-color: var(--danger);
}

.consent-title {
  margin-top: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.consent-list {
  display: grid;
  gap: 0.85rem;
}

.consent-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.consent-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-item .legal-link {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
}

.form-error {
  color: var(--danger);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.btn.is-loading,
.btn.is-success {
  pointer-events: none;
  opacity: 1;
}

.btn.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.btn.is-loading::before {
  content: "";
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: btnSpin 0.7s linear infinite;
  flex-shrink: 0;
}

.btn.is-success {
  background: linear-gradient(135deg, var(--success) 0%, #1fa86a 100%);
  box-shadow: 0 12px 32px rgba(61, 214, 140, 0.35);
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
  background: #04060a;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  margin-bottom: 0.55rem;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-legal {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-legal button {
  color: var(--text-muted);
  font-size: 0.92rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.footer-legal button:hover {
  color: var(--cyan);
}

.socials {
  display: flex;
  gap: 0.65rem;
  margin-top: 0;
}

.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
  overflow: hidden;
  transition: transform 0.2s var(--ease), opacity 0.2s ease;
}

.socials a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.socials img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Back to top */
.back-top {
  position: fixed;
  right: 1rem;
  left: auto;
  bottom: 1rem;
  z-index: 9990;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ease), border-color 0.2s ease, background 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-top:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--cyan);
}

.back-top:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.cookie-bar {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: auto;
  z-index: 10000;
  width: min(100% - 2rem, 360px);
  max-width: 360px;
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s ease, bottom 0.3s var(--ease);
}

/* Cookie выше кнопки «наверх», когда обе видны */
body:has(.back-top.is-visible) .cookie-bar.is-visible {
  bottom: calc(1rem + 44px + 0.75rem);
}

.cookie-bar.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.cookie-bar p {
  flex: none;
  min-width: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.cookie-bar .btn {
  width: 100%;
  justify-content: center;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  width: min(100%, 720px);
  max-height: min(85vh, 820px);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s var(--ease);
}

.modal.is-open .modal-dialog {
  transform: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.modal-body {
  padding: 1.25rem;
  overflow: auto;
  color: var(--text-muted);
  font-size: 0.92rem;
  white-space: pre-wrap;
  line-height: 1.55;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Thanks page */
.thanks {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 2rem) 1.25rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(61, 139, 253, 0.18), transparent 55%),
    var(--bg);
}

.thanks h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
  margin: 1rem 0;
}

.thanks p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(5, 7, 10, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.35rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
  }

  .nav-cta {
    justify-content: center;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .demo-frame {
    height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg,
  .arch-flow,
  .reveal,
  .hero-brand,
  .hero-title,
  .hero-lead,
  .hero-actions,
  .hero-trust,
  .btn.is-loading::before,
  .back-top {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
