:root {
  --bg-primary: #0A0D14;
  --bg-secondary: #0F1320;
  --bg-card: #141826;
  --bg-glass: rgba(20, 24, 38, 0.7);
  --accent: #3D7FFF;
  --accent-hover: #5B96FF;
  --accent-glow: rgba(61, 127, 255, 0.18);
  --accent-2: #00D4FF;
  --text-primary: #F0F4FF;
  --text-secondary: #7A8AA8;
  --text-muted: #7080A0;
  --border: rgba(61, 127, 255, 0.12);
  --border-hover: rgba(61, 127, 255, 0.35);
  --gradient: linear-gradient(135deg, #3D7FFF 0%, #00D4FF 100%);
  --gradient-text: linear-gradient(135deg, #3D7FFF, #00D4FF);
  --good-up: #00C896;
  --danger: #ff6a8f;
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
  --container: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(61,127,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61,127,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 4.8vw, 48px);
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-secondary);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 760px;
  margin: 0 auto;
}

.gradient-text {
  color: var(--accent-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Shimmer sweep on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 65%
  );
  transform: translateX(-160%);
  transition: transform 0s;
  pointer-events: none;
}
.btn:hover::before {
  transform: translateX(160%);
  transition: transform 0.55s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1a60ef 0%, #3d7fff 35%, #00c3ff 70%, #1a60ef 100%);
  background-size: 220% auto;
  animation: btnFlow 5s linear infinite;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(61, 127, 255, 0.25),
    0 4px 18px rgba(61, 127, 255, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  color: #fff;
}

@keyframes btnFlow {
  to { background-position: 220% center; }
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow:
    0 0 0 1px rgba(61, 127, 255, 0.35),
    0 8px 30px rgba(61, 127, 255, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.btn-primary:active {
  transform: scale(0.97);
  box-shadow:
    0 0 0 1px rgba(61, 127, 255, 0.2),
    0 2px 8px rgba(61, 127, 255, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.22);
  animation-play-state: paused;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-2px) scale(1.025);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(61, 127, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(61, 127, 255, 0.15),
    0 8px 24px rgba(61, 127, 255, 0.22);
}

.btn-ghost:active {
  transform: scale(0.97);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px var(--accent-glow);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

header.scrolled {
  background: rgba(10, 13, 20, 0.96);
  box-shadow: 0 1px 0 var(--border);
}

.header-wrap {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text-primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: '';
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span { top: 50%; transform: translateY(-50%); }
.menu-toggle::before { top: 14px; }
.menu-toggle::after { bottom: 14px; }

.menu-toggle.active span { opacity: 0; }
.menu-toggle.active::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active::after  { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-height) 0 auto;
  transform: translateY(-110%) scale(0.98);
  transform-origin: top center;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease;
  opacity: 0;
  background: rgba(10, 13, 20, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  z-index: 150;
  padding: 20px 20px 24px;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu nav {
  display: grid;
  gap: 2px;
  margin-bottom: 20px;
}

.mobile-menu a {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease;
}

.mobile-menu nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-cta {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1a60ef 0%, #3d7fff 35%, #00c3ff 70%, #1a60ef 100%);
  background-size: 220% auto;
  animation: btnFlow 5s linear infinite;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 4px 18px rgba(61,127,255,0.38), inset 0 1px 0 rgba(255,255,255,0.22);
}

.hero {
  padding-top: calc(var(--header-height) + 48px);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -140px;
  transform: translateX(-50%);
  width: min(1200px, 100vw);
  height: 430px;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(61,127,255,0.15), transparent);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  background: rgba(61,127,255,0.08);
  color: var(--text-secondary);
  margin-bottom: 22px;
  animation: fadeUp 0.5s ease 0.1s both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease 0.2s both;
}

.hero-subtitle {
  color: var(--text-secondary);
  max-width: 620px;
  font-size: clamp(16px, 2.2vw, 19px);
  margin-bottom: 26px;
  animation: fadeUp 0.5s ease 0.3s both;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease 0.4s both;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-secondary);
  font-size: 15px;
  animation: fadeUp 0.5s ease 0.5s both;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-metrics span::before {
  content: '✓';
  color: var(--accent-2);
  font-weight: 700;
}

.hero-mockup {
  animation: fadeLeft 0.7s ease 0.4s both;
}

.float-wrap {
  animation: float 5s ease-in-out infinite;
}

.mock-window {
  background: linear-gradient(180deg, #11192b 0%, #0f1727 100%);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(61,127,255,0.12) inset;
  overflow: hidden;
}

.mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.mock-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c896;
  box-shadow: 0 0 10px rgba(0, 200, 150, 0.6);
}

.chat-demo {
  padding: 16px;
  display: grid;
  gap: 12px;
  background: radial-gradient(circle at top right, rgba(61,127,255,0.16), transparent 45%);
}

.bubble {
  border-radius: 14px;
  padding: 10px 12px;
  max-width: 85%;
  font-size: 14px;
  line-height: 1.45;
}

.bubble.bot {
  background: rgba(61,127,255,0.18);
  border: 1px solid rgba(61,127,255,0.32);
  justify-self: start;
}

.bubble.user {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  justify-self: end;
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.typing i {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}

.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }

.toast-note {
  justify-self: end;
  background: rgba(0,200,150,0.12);
  border: 1px solid rgba(0,200,150,0.3);
  color: #7ff1cc;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  animation: fadeUp 0.6s ease 0.8s both;
}

.stats-band {
  padding: 36px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 10px 24px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 4px;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1;
  margin-bottom: 8px;
  color: var(--accent-2);
}

.stat-sub {
  color: var(--text-secondary);
  font-size: 14px;
}

.services-grid,
.cases-grid,
.team-grid {
  display: grid;
  gap: 20px;
}

.services-grid,
.cases-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(61,127,255,0.18), rgba(0,212,255,0.12));
  border: 1px solid var(--border);
}

.service-icon svg {
  width: 24px;
  height: 24px;
  stroke: #9ec3ff;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-secondary);
}

.tag {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid var(--border-hover);
  color: #b7d3ff;
  background: rgba(61,127,255,0.12);
}

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(61,127,255,0.95), rgba(61,127,255,0.08));
}

.step {
  width: calc(50% - 36px);
  position: relative;
  padding: 18px 18px 18px 20px;
}

.step:nth-child(odd) {
  justify-self: start;
}

.step:nth-child(even) {
  justify-self: end;
}

.step::before {
  content: attr(data-step);
  position: absolute;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px var(--accent-glow);
  z-index: 2;
}

.step:nth-child(odd)::before {
  right: -54px;
}

.step:nth-child(even)::before {
  left: -54px;
}

.step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  margin-bottom: 9px;
}

.step p {
  color: var(--text-secondary);
}

.time-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
  color: #b9d2ff;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(61,127,255,0.1);
}

.case-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.industry-tag,
.duration-tag,
.mini-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.case-card h3 {
  font-family: 'Syne', sans-serif;
  margin-bottom: 10px;
  font-size: 24px;
}

.case-row {
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: 14px;
}

.case-results {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.case-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}

.case-result b {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
}

.case-result.up b { color: var(--good-up); }
.case-result.down b { color: var(--accent); }

.case-bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 14px;
}

.card-link:hover {
  text-decoration: underline;
}

.comparison-wrap {
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 6px;
}

.comparison-grid {
  min-width: 900px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.compare-col,
.compare-head {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--bg-card);
}

.compare-head {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
}

.compare-head.ambot {
  background: linear-gradient(145deg, rgba(61,127,255,0.24), rgba(0,212,255,0.14));
  border-color: rgba(61,127,255,0.5);
  color: #d7e6ff;
  box-shadow: 0 14px 38px rgba(61,127,255,0.2);
  transform: translateY(-8px);
}

.compare-col ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.compare-col li {
  min-height: 56px;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text-secondary);
  background: rgba(10,13,20,0.5);
  font-size: 14px;
}

.compare-col.criteria li {
  color: var(--text-primary);
  font-weight: 500;
}

.compare-col.ambot {
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px var(--accent-glow);
  transform: translateY(-8px);
}

.compare-col.ambot li {
  color: #d7e6ff;
  border-color: rgba(61,127,255,0.36);
  background: rgba(21,33,58,0.7);
}

.compare-col.ambot li::after {
  content: '✓';
  margin-left: auto;
  color: var(--accent-2);
  font-weight: 700;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.tab-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.25s ease;
}

.tab-btn.active {
  background: rgba(61,127,255,0.14);
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: 0 8px 26px var(--accent-glow);
}

.demo-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  position: relative;
}

.demo-panel {
  padding: 20px;
  min-height: 290px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.demo-panel.fade {
  opacity: 0;
  transform: translateY(8px);
}

.demo-panel h3 {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  margin-bottom: 14px;
}

.demo-panel.before h3 { color: #ff8fa8; }
.demo-panel.after h3 { color: #8ab7ff; }

.demo-list {
  list-style: none;
  display: grid;
  gap: 11px;
}

.demo-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
}

.demo-list li b {
  margin-top: 1px;
  font-size: 14px;
  line-height: 1;
}

.demo-panel.before li b { color: #ff7d9a; }
.demo-panel.after li b { color: var(--accent-2); }

.member-card {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.member-top {
  display: flex;
  gap: 14px;
  align-items: center;
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.member-name {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
}

.member-role {
  color: #9fc2ff;
  font-size: 14px;
  margin-top: 3px;
}

.member-quote {
  color: var(--text-secondary);
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 12px;
}

.testimonial-wrap {
  position: relative;
  padding: 0 58px;
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: 18px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.testimonial {
  min-width: 100%;
  padding: 26px;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 76px;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.18;
  pointer-events: none;
}

.stars {
  color: #FFB800;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 18px;
}

.testimonial p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 940px;
}

.testimonial strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.testimonial small {
  color: var(--text-secondary);
  display: block;
  margin-bottom: 10px;
}

.testimonial-bottom {
  display: flex;
  justify-content: flex-end;
}

.slider-arrow {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10,13,20,0.8);
  color: var(--text-primary);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  cursor: pointer;
}

.slider-arrow:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.slider-prev { left: 8px; }
.slider-next { right: 8px; }

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(61,127,255,0.15);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.active {
  border-color: var(--border-hover);
}

.faq-question {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 16px 18px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-item.active .faq-question {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}

.faq-icon {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1;
}

.faq-item.active .faq-icon {
  color: var(--accent-2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--text-secondary);
  padding: 0 18px;
}

.faq-answer p {
  padding-bottom: 16px;
}

#contact {
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(61,127,255,0.12), var(--bg-primary));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== CONTACT FORM (redesigned) ===== */
.contact-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.contact-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(30px, 4.5vw, 42px);
  margin-bottom: 12px;
  line-height: 1.1;
}

.contact-head p {
  color: var(--text-secondary);
  font-size: clamp(15px, 2vw, 18px);
}

.contact-panel {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.contact-info {
  padding: 44px 38px;
  background: linear-gradient(160deg, rgba(61,127,255,0.16), rgba(0,212,255,0.05));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.contact-info h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(21px, 2.4vw, 25px);
  margin-bottom: 10px;
  line-height: 1.2;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 26px;
}

.contact-trust {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-primary);
  font-size: 14px;
}

.contact-trust li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: var(--accent-2);
  margin-top: 1px;
}

.contact-channels {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10,13,20,0.35);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-channel:hover {
  border-color: var(--border-hover);
  background: rgba(61,127,255,0.1);
  transform: translateX(2px);
}

.contact-channel .cc-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(61,127,255,0.16);
  flex: 0 0 auto;
}

.contact-channel .cc-icon svg {
  width: 17px;
  height: 17px;
  stroke: #9ec3ff;
  fill: none;
  stroke-width: 1.9;
}

.contact-channel .cc-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.contact-channel .cc-label {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.contact-channel .cc-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-form-panel {
  padding: 44px 38px;
  display: grid;
  gap: 16px;
  align-content: start;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  text-align: left;
}

.field .form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10,13,20,0.6);
  color: var(--text-primary);
  padding: 12px 14px;
  outline: none;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 76px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(61,127,255,0.16);
}

.field.error input,
.field.error select {
  border-color: #ff5f7a;
  box-shadow: 0 0 0 3px rgba(255,95,122,0.16);
}

.error-text {
  color: #ff8ea1;
  font-size: 12px;
  min-height: 14px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.chip.active {
  background: rgba(61,127,255,0.18);
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 16px;
  margin-top: 4px;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-note {
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
}

.form-note a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.form-error-banner {
  display: none;
  border-radius: 12px;
  border: 1px solid rgba(255,95,122,0.35);
  background: rgba(255,95,122,0.08);
  color: #ff8ea1;
  padding: 12px 14px;
  font-size: 13.5px;
}

.success-state {
  display: none;
  padding: 44px 38px;
  border-radius: 16px;
  text-align: center;
  color: var(--text-primary);
  place-items: center;
  gap: 14px;
}

.success-state .fs-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,200,150,0.16);
  border: 1px solid rgba(0,200,150,0.4);
  display: grid;
  place-items: center;
  margin: 0 auto 6px;
}

.success-state .fs-icon svg {
  width: 26px;
  height: 26px;
  stroke: #7ff1cc;
  fill: none;
  stroke-width: 2;
}

.success-state h3 {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
}

.success-state p {
  color: var(--text-secondary);
  max-width: 340px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-info {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

footer {
  padding: 54px 0 24px;
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-brand .logo {
  margin-bottom: 12px;
}

.footer-brand p,
.footer-list a,
.footer-contact a,
.footer-contact span {
  color: var(--text-secondary);
}

.footer-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-list,
.footer-contact {
  display: grid;
  gap: 8px;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: rgba(61,127,255,0.08);
}

.socials svg {
  width: 17px;
  height: 17px;
  stroke: #aad0ff;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}

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

@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(32px); }
  to { opacity: 1; transform: none; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0.5deg); }
  50% { transform: translateY(-14px) rotate(-0.5deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

@media (max-width: 1199px) {
  :root { --container: 1000px; }
  .services-grid,
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-mockup {
    max-width: 640px;
  }
}

@media (max-width: 767px) {
  :root { --header-height: 74px; }
  section { padding: 52px 0; }
  .container { width: calc(100% - 36px); }

  .nav,
  .header-wrap > .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  /* ── Hero ── */
  .hero {
    padding-top: calc(var(--header-height) + 14px);
    padding-bottom: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-title {
    font-size: clamp(30px, 8.5vw, 38px);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-badge {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 10px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 28px;
    font-size: 16px;
  }

  .hero-metrics {
    font-size: 13px;
    gap: 12px;
  }

  .hero-mockup {
    display: block;
    margin-top: 0;
  }

  .hero-mockup .float-wrap {
    animation: none;
  }

  .mock-window {
    max-width: 100%;
  }

  .chat-demo .bubble:nth-child(n+3),
  .chat-demo .toast-note {
    display: none;
  }

  /* ── Stats ── */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-item {
    border-right: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-card);
    padding: 16px 10px;
  }

  /* ── Grids → 1 col ── */
  .services-grid,
  .cases-grid,
  .team-grid,
  .demo-panels,
  .product-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-panel {
    padding: 32px 24px;
  }

  /* ── AMBot bot: feature list 2-col ── */
  .feature-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
  }

  .feature-item {
    font-size: 13px;
    gap: 8px;
  }

  .feature-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }

  .product-ctas {
    flex-direction: column;
    gap: 10px;
  }

  .product-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Как мы работаем: timeline ── */
  .timeline::before {
    left: 22px;
    transform: none;
  }

  .step {
    width: calc(100% - 52px);
    justify-self: end;
  }

  .step:nth-child(odd)::before,
  .step:nth-child(even)::before {
    left: -46px;
    right: auto;
  }

  /* ── Comparison ── */
  .comparison-wrap {
    overflow-x: unset;
  }

  .comparison-grid {
    min-width: unset;
    grid-template-columns: 1fr 1fr;
  }

  /* Скрываем колонки «Готовые платформы» и «Штатный разраб.» */
  .comparison-grid > *:nth-child(2),
  .comparison-grid > *:nth-child(4),
  .comparison-grid > *:nth-child(6),
  .comparison-grid > *:nth-child(8) {
    display: none;
  }

  .compare-head.ambot,
  .compare-col.ambot {
    transform: none;
  }

  .compare-col.ambot {
    box-shadow: none;
  }

  /* ── Testimonials ── */
  .slider-arrow {
    display: none;
  }

  .testimonial-wrap {
    padding: 0;
  }

  .testimonial {
    padding: 20px 16px;
  }

  /* ── Mid-page CTA ── */
  .mid-cta {
    flex-direction: column;
    padding: 28px 20px;
    text-align: center;
    gap: 20px;
  }

  .mid-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* ── Section headings ── */
  .section-head h2 {
    font-size: clamp(24px, 6.5vw, 32px);
  }

  /* ── Pricing ── */
  .pricing-grid {
    gap: 28px;
  }
}

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

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  padding: 28px 24px;
  display: grid;
  gap: 20px;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(61,127,255,0.5);
  background: linear-gradient(160deg, rgba(61,127,255,0.12), rgba(0,212,255,0.06));
  box-shadow: 0 16px 48px rgba(61,127,255,0.18);
  transform: translateY(-6px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.pricing-price {
  font-family: 'Syne', sans-serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.pricing-price sup {
  font-size: 18px;
  font-weight: 500;
  vertical-align: super;
}

.pricing-price span {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: -12px;
}

.pricing-dual {
  display: grid;
  gap: 8px;
}

.pricing-dual-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(61,127,255,0.07);
  border: 1px solid var(--border);
}

.pricing-dual-row span {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.pricing-dual-row b {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-features {
  list-style: none;
  display: grid;
  gap: 10px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-2);
  font-weight: 700;
  flex: 0 0 auto;
  margin-top: 1px;
}

.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
}

@media (max-width: 1199px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 32px rgba(61,127,255,0.38);
  white-space: nowrap;
}

@media (max-width: 767px) {
  .floating-cta {
    bottom: 20px;
    right: 20px;
    left: auto;
  }

  .floating-cta a {
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(61, 127, 255, 0.55);
  }

  .fcta-text {
    display: none;
  }
}

/* ===== MID-PAGE CTA ===== */
.mid-cta {
  background: linear-gradient(135deg, rgba(61,127,255,0.14) 0%, rgba(0,212,255,0.08) 100%);
  border: 1px solid rgba(61,127,255,0.28);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.mid-cta-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  margin-bottom: 6px;
}

.mid-cta-text p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ══════════════════════════════════════════
   PREMIUM ANIMATIONS CSS
   ══════════════════════════════════════════ */

/* ── Split Text ── */
.split-ready { overflow: visible; }

.sw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}

.si {
  display: inline-block;
  transform: translateY(115%) rotate(3deg);
  transition: transform 0.82s cubic-bezier(0.16, 1, 0.3, 1) var(--sd, 0ms);
}

.sw.on .si {
  transform: translateY(0) rotate(0deg);
}

/* ── Typed cursor ── */
.typed-cursor {
  opacity: 1;
  color: var(--accent-2);
  font-weight: 300;
  margin-left: 1px;
}

.typed-cursor.blink {
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── 3D Tilt shine ── */
.tilt-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  transition: background 0.12s ease;
  clip-path: inset(0 round 18px);
}

/* ── Hero Canvas ── */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── Grain Overlay ── */
.grain-layer {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.038;
  pointer-events: none;
  z-index: 9997;
  animation: grainShift 0.35s steps(1) infinite;
  will-change: transform;
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, -4%); }
  40%  { transform: translate(4%, 2%); }
  60%  { transform: translate(-2%, 5%); }
  80%  { transform: translate(5%, -3%); }
  100% { transform: translate(-1%, 2%); }
}

/* ── Orbs ── */
.orbs-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  animation: orbDrift ease-in-out infinite;
  will-change: transform;
}

@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(3%, 5%) scale(1.06); }
  50%  { transform: translate(-4%, 3%) scale(0.94); }
  75%  { transform: translate(5%, -3%) scale(1.03); }
  100% { transform: translate(0, 0) scale(1); }
}

/* ── Scroll Line ── */
.scroll-line {
  position: fixed;
  left: 0; top: 0;
  width: 2px;
  height: 0;
  background: var(--gradient);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(61,127,255,0.5);
  transition: height 0.08s linear;
}

/* ── Section Ghost Numbers ── */
.sec-num {
  position: absolute;
  top: 48px;
  right: 0;
  font-family: 'Syne', sans-serif;
  font-size: clamp(100px, 16vw, 180px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(61,127,255,0.07);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.05em;
}

/* ── Scroll Reveal (.reveal) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure orbs and grain don't darken cards */
.card, header, footer, .pricing-card, section {
  position: relative;
  z-index: 1;
}

/* Mobile: disable expensive effects */
@media (max-width: 767px) {
  .grain-layer { display: none; }
  .orb { filter: blur(40px); }
  .sec-num { display: none; }
  .scroll-line { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain-layer, .orb, .scroll-line { display: none; }
  .si { transition: none !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ══════════════════════════════════════════
   PRELOADER
══════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease;
}
#preloader.hide {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Logo */
.pl-logo {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  position: relative;
  margin-bottom: 40px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.pl-logo.visible {
  clip-path: inset(0 0% 0 0);
}
.pl-logo .pl-logo-gradient {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pl-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666;
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
}
.pl-logo.visible .pl-logo-sub {
  opacity: 1;
}

/* Terminal */
.pl-terminal {
  width: min(420px, 90vw);
  background: #111118;
  border: 1px solid #222230;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(167,139,250,0.08);
}
.pl-terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #18181f;
  border-bottom: 1px solid #222230;
}
.pl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pl-dot:nth-child(1) { background: #ff5f57; }
.pl-dot:nth-child(2) { background: #febc2e; }
.pl-dot:nth-child(3) { background: #28c840; }
.pl-terminal-title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.7rem;
  color: #444;
  letter-spacing: 0.05em;
}
.pl-lines {
  padding: 16px 20px 20px;
  min-height: 148px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pl-line {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #555;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}
.pl-line.show { opacity: 1; transform: translateX(0); }
.pl-line .pl-ok  { color: #28c840; }
.pl-line .pl-warn { color: #febc2e; }
.pl-line .pl-key  { color: #a78bfa; }
.pl-line .pl-val  { color: #7dd3fc; }
.pl-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: #a78bfa;
  margin-left: 3px;
  vertical-align: middle;
  animation: pl-blink 0.9s step-end infinite;
}
@keyframes pl-blink { 50% { opacity: 0; } }

/* Progress */
.pl-progress-wrap {
  padding: 0 20px 16px;
}
.pl-progress-track {
  height: 2px;
  background: #1e1e2a;
  border-radius: 2px;
  overflow: hidden;
}
.pl-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #a78bfa, #ec4899);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.pl-percent {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #444;
  text-align: right;
  margin-top: 6px;
  letter-spacing: 0.05em;
}
