/* Base theme */
:root {
  --bg: #0b0d12;
  --bg-alt: #0e1117;
  --text: #e5e7eb;
  --muted: #a5adbb;
  --primary: #7c9cff;
  --primary-600: #678bff;
  --primary-700: #5477ff;
  --card: #121621;
  --stroke: #22283a;
  --accent: #22d3ee;
  --success: #34d399;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 1120px;
}

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

ul, ol, figure, blockquote {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq__q:focus-visible {
  outline-offset: -2px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
}
html, body {
  padding: 0;
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 800px at 70% -10%, rgba(124,156,255,0.08), transparent 60%),
              radial-gradient(800px 600px at -10% 10%, rgba(34,211,238,0.06), transparent 60%),
              var(--bg);
  font: 16px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  margin: 0 0 10px;
  line-height: 1.25;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  background: rgba(11,13,18,0.6);
  border-bottom: 1px solid var(--stroke);
}
@media (max-width: 820px) {
  .site-header {
    z-index: 102;
  }
}
/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-700), var(--accent));
  box-shadow: 0 0 10px rgba(124,156,255,0.5);
  transform-origin: left;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
  position: relative;
}
.header__inner .brand {
  flex-shrink: 0;
}
.header__inner .nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.header__inner .nav ul {
  margin: 0;
  padding: 0;
}
.header__inner .nav .nav-cta {
  display: none;
}
.header__inner .header-cta {
  flex-shrink: 0;
}
.header__inner .nav-toggle {
  flex-shrink: 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}
.brand__logo {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #0b0d12;
  border-radius: 50%;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(124,156,255,0.35);
}
.nav ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 5px;
  border-radius: 8px;
  font-size: 0.875rem;
  white-space: nowrap;
}
.nav a:hover {
  background: rgba(124,156,255,0.08);
  color: var(--text);
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.2s;
}
/* Mobile Navigation */
@media (max-width: 820px) {
  .header__inner {
    display: flex;
    align-items: center;
  }
  .header__inner .brand {
    order: 1;
  }
  .header__inner .nav {
    order: 2;
  }
  .header__inner .header-cta {
    order: 2;
    display: none !important;
  }
  .header__inner .nav-toggle {
    order: 3;
    margin-left: auto;
  }
  
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 101;
    width: 44px;
    height: 44px;
    padding: 0;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
  }
  .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);
  }
  
  .header__inner .nav ul {
    display: none !important;
  }
  
  .nav.open ul {
    display: flex !important;
  }
  
  /* Overlay — под шапкой, затемняет только контент */
  .nav-overlay {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 98;
    pointer-events: none;
  }
  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  /* Панель меню — под шапкой, без перекрытия логотипа */
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
    border: 1px solid var(--stroke);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 20px 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.65, 0.3, 1);
    z-index: 100;
    pointer-events: none;
  }
  .nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .nav li {
    width: 100%;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav.open li {
    opacity: 1;
    transform: translateY(0);
  }
  .nav.open li:nth-child(1) { transition-delay: 0.05s; }
  .nav.open li:nth-child(2) { transition-delay: 0.1s; }
  .nav.open li:nth-child(3) { transition-delay: 0.15s; }
  .nav.open li:nth-child(4) { transition-delay: 0.2s; }
  .nav.open li:nth-child(5) { transition-delay: 0.25s; }
  .nav.open li:nth-child(6) { transition-delay: 0.3s; }
  .nav.open li:nth-child(7) { transition-delay: 0.35s; }
  .nav a {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 14px 20px;
    color: var(--text);
    text-decoration: none;
    text-align: left;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid transparent;
  }
  .nav a:hover {
    background: rgba(124, 156, 255, 0.1);
    color: var(--primary);
    border-color: rgba(124, 156, 255, 0.2);
  }
  .nav-cta {
    display: block;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 24px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    transition-delay: 0.25s;
  }
  .nav.open .nav-cta {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
  }
}

/* Hero */
.hero {
  padding: 0 0 28px;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #c7d2fe, #22d3ee, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: headline-sheen 6s linear infinite;
}
@keyframes headline-sheen {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.hero__actions {
  display: flex;
  gap: 12px;
  margin: 18px 0 8px;
}
.hero__highlights {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}
.hero__highlights li {
  font-size: 0.95rem;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.hero__media {
  position: relative;
  height: 320px;
}
.glass {
  position: absolute;
  top: 52%;
  left: 62%;
  width: 70%;
  max-width: 400px;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  background: linear-gradient(135deg, rgba(124,156,255,0.12), rgba(34,211,238,0.08));
  border: 1px solid rgba(124,156,255,0.25);
  box-shadow: 0 20px 60px rgba(124,156,255,0.15);
  animation: stack-a 10s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
.glass--a { --rot: -4deg; transform: translate(-50%, -50%) translateX(0) rotate(-4deg); animation-name: stack-a; }
.glass--b { --rot: 3deg; transform: translate(-50%, -50%) translateX(-70px) rotate(3deg); animation-name: stack-b; }
.glass--c { --rot: -2deg; transform: translate(-50%, -50%) translateX(-140px) rotate(-2deg); animation-name: stack-c; }

.glass__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.glass__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(26,39,68,0.95), rgba(30,45,80,0.9));
  color: rgba(124,156,255,0.5);
  font-size: 0.9rem;
  font-weight: 500;
}
.glass__img[style*="display: none"] ~ .glass__placeholder { display: flex; }
.glass:has(.glass__img:not([style*="display: none"])) .glass__placeholder { display: none; }

/* Перекладывание: плавное движение, смена масштаба растянута во времени чтобы не дёргалось */
@keyframes stack-a {
  0%     { z-index: 3; transform: translate(-50%, -50%) translateX(0) rotate(var(--rot)) scale(1.05); box-shadow: 0 24px 64px rgba(124,156,255,0.22); }
  30%    { z-index: 3; transform: translate(-50%, -50%) translateX(0) rotate(var(--rot)) scale(1.05); box-shadow: 0 24px 64px rgba(124,156,255,0.22); }
  36%    { z-index: 1; transform: translate(-50%, -50%) translateX(-140px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
  66%    { z-index: 1; transform: translate(-50%, -50%) translateX(-70px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
  96%    { z-index: 1; transform: translate(-50%, -50%) translateX(-70px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
  100%   { z-index: 3; transform: translate(-50%, -50%) translateX(0) rotate(var(--rot)) scale(1.05); box-shadow: 0 24px 64px rgba(124,156,255,0.22); }
}
@keyframes stack-b {
  0%     { z-index: 2; transform: translate(-50%, -50%) translateX(-70px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
  30%    { z-index: 2; transform: translate(-50%, -50%) translateX(-70px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
  36%    { z-index: 3; transform: translate(-50%, -50%) translateX(0) rotate(var(--rot)) scale(1.05); box-shadow: 0 24px 64px rgba(124,156,255,0.22); }
  63%    { z-index: 3; transform: translate(-50%, -50%) translateX(0) rotate(var(--rot)) scale(1.05); box-shadow: 0 24px 64px rgba(124,156,255,0.22); }
  69%    { z-index: 2; transform: translate(-50%, -50%) translateX(-140px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
  100%   { z-index: 2; transform: translate(-50%, -50%) translateX(-70px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
}
@keyframes stack-c {
  0%     { z-index: 1; transform: translate(-50%, -50%) translateX(-140px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
  63%    { z-index: 2; transform: translate(-50%, -50%) translateX(-70px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
  69%    { z-index: 3; transform: translate(-50%, -50%) translateX(0) rotate(var(--rot)) scale(1.05); box-shadow: 0 24px 64px rgba(124,156,255,0.22); }
  96%    { z-index: 3; transform: translate(-50%, -50%) translateX(0) rotate(var(--rot)) scale(1.05); box-shadow: 0 24px 64px rgba(124,156,255,0.22); }
  100%   { z-index: 1; transform: translate(-50%, -50%) translateX(-140px) rotate(var(--rot)) scale(0.98); box-shadow: 0 16px 48px rgba(124,156,255,0.12); }
}

/* Sections */
.section {
  padding: 48px 0;
}
.section--alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}
.section--cta {
  padding: 60px 0 72px;
}
.section__title {
  font-size: 28px;
  margin-bottom: 18px;
  position: relative;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms cubic-bezier(.2,.65,.3,1);
}
.section__title.reveal--visible::after {
  transform: scaleX(1);
}
.section__subtitle {
  color: var(--muted);
  margin: 18px 0 14px;
  font-weight: 600;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 16px;
}
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  will-change: transform;
  transform: translateZ(0);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card h3, .card h4 { margin-bottom: 6px; }
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124,156,255,0.5);
  box-shadow: 0 18px 40px rgba(124,156,255,0.18);
}
.list {
  margin: 10px 0 18px;
  padding-left: 18px;
  color: var(--muted);
}
.chip h4 { margin: 0; }
.chip p { margin: 6px 0 0; color: var(--muted); }

/* Pricing Tiers */
.tier header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.tier .price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.price-range-sep {
  color: var(--accent);
  font-weight: 700;
  margin: 0 4px;
  opacity: 1;
}
.price-sep {
  display: inline-block;
  min-width: 1.5em;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2em;
}
.tier--highlight {
  border-color: rgba(124,156,255,0.5);
  background: linear-gradient(180deg, rgba(124,156,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 0 0 0 rgba(124,156,255,0.25);
  animation: pulse-glow 2.8s ease-in-out infinite;
}
@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(124,156,255,0.22); }
  50% { box-shadow: 0 0 0 10px rgba(124,156,255,0.0); }
  100% { box-shadow: 0 0 0 0 rgba(124,156,255,0.0); }
}
.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Case */
.case__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 820px) {
  .hero__inner { grid-template-columns: 1fr; }
  .case__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; height: 220px; align-items: center; justify-content: center; }
  .glass { top: 50%; left: 50%; }
}

/* Timeline */
.timeline {
  display: grid;
  gap: 14px;
}
.timeline__item {
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
}
.timeline__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  padding: 6px 10px;
  font-size: 0.85rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
}

/* Testimonial */
.testimonial {
  margin: 0;
  padding: 18px;
  border-left: 3px solid var(--primary);
  background: linear-gradient(180deg, rgba(124,156,255,0.06), rgba(255,255,255,0.02));
  border-radius: 0 var(--radius) var(--radius) 0;
}
.testimonial footer {
  color: var(--muted);
  margin-top: 6px;
}

/* CTA & Form */
.cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; }
}
.cta__content {
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
}
.contact__list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
.contact-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.contact-link__icon {
  font-size: 18px;
  line-height: 1;
}
.contact-link--email:hover {
  border-color: #ea4335;
}
.contact-link--tg:hover {
  border-color: #229ED9;
}
.form {
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
}
.form__row {
  margin-bottom: 12px;
}
.form label {
  display: block;
  color: var(--text);
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  color: var(--text);
  background: #0d1117;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,156,255,0.15);
}
.form__note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 8px 0 0;
}
.form__status {
  margin: 8px 0 0;
  min-height: 1.2em;
  color: var(--muted);
}
.form__loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #0b0d12;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.is-error { border-color: var(--danger) !important; }
.status--ok { color: var(--success); }
.status--err { color: var(--danger); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s ease-in-out;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}
.button:hover {
  transform: translateY(-1px);
}
.button--primary {
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  border-color: rgba(124,156,255,0.5);
  color: #0b0d12;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(124,156,255,0.25);
}
.button--cta {
  background: linear-gradient(135deg, var(--accent), var(--primary)) !important;
  border-color: rgba(124,156,255,0.55) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 32px rgba(34,211,238,0.28), 0 8px 24px rgba(124,156,255,0.22);
}
.button--cta:hover {
  box-shadow: 0 16px 40px rgba(34,211,238,0.35), 0 10px 28px rgba(124,156,255,0.28);
}
.button--secondary {
  border-color: rgba(124,156,255,0.5);
  color: var(--primary);
}
.button--ghost {
  background: transparent;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 18px 0 28px;
  background: rgba(0,0,0,0.2);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 12px;
}
.site-footer nav a:hover { color: var(--text); }

/* Utilities */
.hidden { display: none !important; }
.hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

/* Back to top */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(124,156,255,0.5);
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  color: #0b0d12;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(124,156,255,0.25);
  cursor: pointer;
  z-index: 70;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 150ms ease;
  pointer-events: none;
}
.to-top:hover { box-shadow: 0 16px 36px rgba(124,156,255,0.35); }
.to-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 600ms cubic-bezier(.2,.65,.3,1), transform 600ms cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
  transform: translateZ(0) translateY(24px) scale(0.96);
}
.reveal--visible {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}
/* Directional variants */
[data-reveal="up"] { transform: translateY(24px) scale(0.96); }
[data-reveal="left"] { transform: translateX(-24px) scale(0.96); }
[data-reveal="right"] { transform: translateX(24px) scale(0.96); }
[data-reveal="zoom"] { transform: scale(0.9); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .glass { animation: none; }
  .card, [data-reveal] {
    transition: none;
  }
}


/* Header CTA */
.button--sm { padding: 8px 12px; border-radius: 10px; }

/* Sticky CTA mobile */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.5));
  display: none;
  z-index: 65;
}
.sticky-cta .button {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: block;
}
@media (max-width: 640px) {
  .sticky-cta { display: block; }
}

/* Steps */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* Logos strip */
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.logo-chip {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,0.02);
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
}
.faq__item {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.008));
  overflow: hidden;
}
.faq__q {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  transition: max-height 300ms ease, padding 300ms ease;
  color: var(--muted);
}
.faq__item.is-open .faq__a {
  padding: 0 16px 14px;
  max-height: 200px;
}

/* Before/After slider */
.ba-slider {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0d1117;
  --split: 55%;
}
.ba-slider__before,
.ba-slider__after {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text);
  pointer-events: none;
  user-select: none;
}
.ba-slider__before {
  background: linear-gradient(135deg, #1f2937, #111827);
}
.ba-slider__after {
  background: linear-gradient(135deg, rgba(124,156,255,0.25), rgba(34,211,238,0.2));
  border-right: 2px solid rgba(255,255,255,0.6);
  width: var(--split);
}
.ba-slider input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  background: transparent;
  outline: none;
  cursor: ew-resize;
}
.ba-slider input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 100%; }
.ba-slider input[type="range"]::-moz-range-track { background: transparent; height: 100%; }
.ba-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.ba-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header__inner { height: 56px; }
  .nav-overlay { top: 56px; }
  .nav {
    top: 56px;
    left: 10px;
    right: 10px;
    max-height: calc(100vh - 56px - 20px);
    padding: 20px 16px 28px;
  }
  .nav a { font-size: 1.125rem; padding: 12px 16px; }
  .scroll-progress { height: 2px; }
  .hero { padding: 0 0 18px; }
  .hero h1 { font-size: 24px; }
  .lead { font-size: 0.98rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .button { width: 100%; }
  .hero__media { height: 200px; }
  .glass { width: 78%; top: 50%; left: 50%; }
  .section { padding: 36px 0; }
  .section__title { font-size: 22px; margin-bottom: 14px; }
  .grid { gap: 12px; }
  .card { padding: 14px; }
  .cta { grid-template-columns: 1fr; }
  .form button.button { width: 100%; }
  input, select, textarea { font-size: 16px; }
  .site-footer .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer nav a {
    display: inline-block;
    margin-right: 10px;
    margin-top: 6px;
  }
  .to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

/* Tables (blog) */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--stroke);
}
.table th {
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.table td {
  color: var(--muted);
}
.table a {
  color: var(--primary);
  text-decoration: none;
}
.table a:hover {
  text-decoration: underline;
}
