:root {
  --bg: #07101c;
  --bg-2: #0a1526;
  --text: #e8f1ff;
  --muted: #9fb0cf;
  --line: rgba(255,255,255,0.08);
  --glass: rgba(14, 24, 40, 0.62);
  --glass-2: rgba(14, 24, 40, 0.78);
  --accent: #7fe8ff;
  --accent-2: #97a8ff;
  --glow: 0 0 0 1px rgba(255,255,255,0.05), 0 30px 80px rgba(20, 30, 60, 0.55);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: radial-gradient(circle at top, #0f2341 0%, var(--bg) 36%, #040912 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; pointer-events: none; }
button { font: inherit; color: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  --scroll-boost: 0;
  --bg-shift-x: 0px;
  --bg-shift-y: 0px;
}
.noise {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 0.8px, transparent 0.8px);
  background-size: 24px 24px;
  opacity: .48;
  transform: translate3d(calc(var(--bg-shift-x) * .08), calc(var(--bg-shift-y) * .08), 0);
  transition: transform .16s ease-out;
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .34;
  animation: floatOrb 14s ease-in-out infinite;
  transition: transform .16s ease-out, opacity .16s ease-out;
}
.orb-1 {
  width: 280px; height: 280px; background: #246dff; top: 7%; left: 4%;
  transform: translate3d(calc(var(--bg-shift-x) * 0.65), calc(var(--bg-shift-y) * -0.28), 0) scale(calc(1 + var(--scroll-boost) * .16));
}
.orb-2 {
  width: 320px; height: 320px; background: #39c9ff; right: -6%; top: 28%; animation-delay: -4s;
  transform: translate3d(calc(var(--bg-shift-x) * -0.52), calc(var(--bg-shift-y) * 0.22), 0) scale(calc(1 + var(--scroll-boost) * .2));
}
.orb-3 {
  width: 260px; height: 260px; background: #6f5dff; bottom: 6%; left: 44%; animation-delay: -8s;
  transform: translate3d(calc(var(--bg-shift-x) * 0.34), calc(var(--bg-shift-y) * 0.34), 0) scale(calc(1 + var(--scroll-boost) * .23));
}
@keyframes floatOrb {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(0,-22px,0) scale(1.08); }
}

.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.section { padding: 92px 0; }
.section-first { padding-top: 140px; }
.eyebrow {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 232, 255, 0.18);
  background: rgba(127, 232, 255, 0.08);
  color: var(--accent);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1, h2, h3, p { margin: 0; }
h1 {
  font-size: clamp(2.5rem, 4vw, 5.1rem);
  line-height: .98;
  letter-spacing: -0.04em;
  max-width: 820px;
}
h2 {
  font-size: clamp(1.9rem, 3vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
h3 { font-size: 1.15rem; line-height: 1.2; }
p { color: var(--muted); line-height: 1.75; }
.lead { font-size: 1.1rem; max-width: 700px; margin-top: 18px; }

.glass, .glass-soft {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  box-shadow: var(--glow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass { border-radius: var(--radius); }
.glass-soft { border-radius: var(--radius-sm); }
.glow-border { position: relative; }
.glow-border::before {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(127,232,255,0.35), rgba(151,168,255,0.1), rgba(255,255,255,0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.intro-loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: rgba(3,7,13,0.7);
  backdrop-filter: blur(14px);
  transition: opacity .8s ease, visibility .8s ease;
}
.intro-loader.hidden { opacity: 0; visibility: hidden; }
.intro-card { width: min(92vw, 580px); padding: 36px; text-align: center; }
.intro-badge {
  display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(127,232,255,0.12); color: var(--accent); margin-bottom: 14px;
}
.intro-card h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.intro-card p { min-height: 52px; }
.typing-line { display: inline-flex; gap: 8px; margin-top: 14px; }
.typing-line span, .typing-bubble span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(232,241,255,0.82);
  animation: blinkDots 1.15s infinite ease-in-out;
}
.typing-line span:nth-child(2), .typing-bubble span:nth-child(2) { animation-delay: .16s; }
.typing-line span:nth-child(3), .typing-bubble span:nth-child(3) { animation-delay: .32s; }
@keyframes blinkDots { 0%, 80%, 100% { opacity: .28; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.site-header {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 40;
  width: min(calc(100% - 20px), 1240px);
  padding: 10px 0;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800;
}
.brand::after {
  content: "";
  width: 28px; height: 28px; border-radius: 50%;
  background: url('assets/zorina-avatar.png') center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 10px 28px rgba(87, 224, 255, .22);
  margin-left: 2px;
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px rgba(127,232,255,0.8);
}
.brand-text { letter-spacing: -0.03em; }
.desktop-nav { display: flex; gap: 22px; color: #caddff; }
.desktop-nav a { opacity: .85; }
.desktop-nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 700;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta-primary {
  background: linear-gradient(135deg, var(--accent), #c8f7ff);
  color: #04101b;
  box-shadow: 0 18px 40px rgba(81, 227, 255, .2);
}
.cta-secondary {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  color: var(--text);
}
.desktop-cta { display: inline-flex; }
.mobile-sticky-bot { display: none; }
.burger {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); display: none; cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 20px; height: 2px; margin: 5px auto; background: white; border-radius: 999px; transition: .25s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  display: none; opacity: 0; transform: translateY(-6px); pointer-events: none;
  margin: 12px; padding: 12px; gap: 10px; flex-direction: column;
}
.mobile-menu.open { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { padding: 12px 14px; border-radius: 14px; }
.mobile-menu .full { width: 100%; }

.hero-copy { max-width: 860px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-points span,
.mini-card span {
  gap: 10px;
  display: inline-flex;
  align-items: center;
}
.hero-points span {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: #d7e6ff;
}
.hero-points i, .mini-card i, .demo-topbar i, .sound-toggle i { color: var(--accent); }

.demo-section { padding-top: 36px; }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-head.narrow { max-width: 850px; }
.demo-feed { padding: 18px; overflow: hidden; }
.demo-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.demo-topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #79ffbf; box-shadow: 0 0 16px #79ffbf; flex: 0 0 10px; }
.group-stack { display: inline-flex; align-items: center; margin-right: 2px; }
.stack-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700;
  color: #edf5ff; background: linear-gradient(135deg, #304969, #18263c);
  border: 2px solid rgba(7,16,28,.95); margin-left: -10px; overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}
.stack-avatar:first-child { margin-left: 0; }
.stack-zorina { background: linear-gradient(135deg, rgba(145,240,255,.22), rgba(156,168,255,.16)); }
.stack-zorina img { width: 100%; height: 100%; object-fit: cover; }
.demo-title-wrap { display: grid; gap: 2px; min-width: 0; }
.demo-title-wrap strong {
  display: inline-flex; align-items: center; gap: 8px;
  color: #edf5ff; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.demo-title-wrap span { color: var(--muted); font-size: .84rem; }
.demo-topbar-right { margin-left: auto; }
.sound-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.sound-toggle:hover { transform: translateY(-1px); }
.sound-toggle.on {
  border-color: rgba(127,232,255,.26);
  background: rgba(127,232,255,.08);
}

.chat-live-shell {
  position: relative;
  margin-top: 18px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    radial-gradient(circle at top, rgba(127,232,255,.06), transparent 50%);
  overflow: hidden;
}
.chat-live-shell::before,
.chat-live-shell::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 38px; z-index: 2; pointer-events: none;
}
.chat-live-shell::before { top: 0; background: linear-gradient(180deg, rgba(6,10,18,.92), rgba(6,10,18,0)); }
.chat-live-shell::after { bottom: 0; background: linear-gradient(0deg, rgba(6,10,18,.98), rgba(6,10,18,0)); }

.chat-thread.live {
  position: relative;
  height: 540px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-end;
  padding: 10px 8px 84px;
}
.chat-thread.live::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 30%, transparent 70%, rgba(255,255,255,.015));
  pointer-events: none;
}

.typing-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity .24s ease, transform .34s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.typing-overlay.show {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.typing-overlay .chat-row {
  opacity: 1;
  transform: none;
  transition: none;
  max-height: none;
}
.typing-overlay .bubble-group {
  max-width: min(780px, calc(100% - 64px));
}

.chat-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(.992);
  transition:
    opacity .34s ease,
    transform .56s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
}
.chat-row.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.chat-row.removing {
  opacity: 0;
  transform: translate3d(0, -12px, 0) scale(.985);
  transition:
    opacity .24s ease,
    transform .34s cubic-bezier(.22,1,.36,1);
}

.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; flex: 0 0 42px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 26px rgba(0,0,0,.24);
}
.avatar.human { background: linear-gradient(135deg, #304969, #1b2b42); color: #dbe8ff; }
.avatar.ai { background: linear-gradient(135deg, rgba(145,240,255,.2), rgba(156,168,255,.14)); }
.avatar.ai img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bubble-group {
  max-width: min(780px, calc(100% - 64px));
  min-width: 0;
}
.chat-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px 4px;
  font-size: .82rem;
  color: #bfd1ef;
}
.sender { font-weight: 600; }
.sender.accent { color: var(--accent); }
.chat-presence {
  color: rgba(191,209,239,.7);
  font-size: .76rem;
}

.bubble {
  position: relative;
  padding: 14px 16px 32px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: #edf5ff;
  line-height: 1.62;
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.chat-row.human .bubble { background: linear-gradient(180deg, rgba(45,70,105,.52), rgba(24,37,58,.7)); }
.chat-row.ai .bubble { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.045)); }
.bubble-rich { padding-bottom: 38px; }
.bubble-title { color: #f4f8ff; font-weight: 700; margin-bottom: 12px; }
.top-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.top-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.045);
}
.top-list span { color: var(--accent); }
.bubble-foot { margin-top: 12px; font-size: .95rem; }

.telegram-meta {
  position: absolute;
  right: 12px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: rgba(214, 228, 248, .74);
}
.telegram-meta i {
  font-size: .78rem;
  color: rgba(127,232,255,.9);
}

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 74px;
  padding-bottom: 16px;
}

.demo-rail {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px;
}
.mini-card { padding: 16px; }
.mini-card span { display: inline-flex; font-weight: 700; color: #edf5ff; margin-bottom: 6px; }

.two-col {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center;
}
.info-panel { padding: 24px; }
.quote { font-size: 1.1rem; color: #edf5ff; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.feature-tags span, .step span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--accent);
}
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-card, .step { padding: 22px; }
.feature-card h3, .step h3 { margin-bottom: 10px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.faq-list { display: grid; gap: 12px; }
details { padding: 18px 20px; }
summary { cursor: pointer; font-weight: 700; color: #edf5ff; }
details p { margin-top: 12px; }
.final-cta-card {
  padding: 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.final-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.site-footer { padding: 0 0 34px; }
.footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: #d4e2fb; }

.cookie-popup {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  width: min(430px, calc(100% - 24px));
  padding: 18px; display: flex; align-items: flex-end; gap: 14px;
  transform: translateY(120%); opacity: 0; pointer-events: none;
  transition: .4s ease;
}
.cookie-popup.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-popup p { font-size: .94rem; margin-top: 6px; }

.legal-page { padding-top: 140px; }
.legal-card { padding: 28px; }
.legal-card h1 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 12px; }
.legal-card h2 { font-size: 1.25rem; margin: 24px 0 10px; }
.legal-card ul { color: var(--muted); line-height: 1.8; }
.back-to-site { margin-top: 22px; }

@media (max-width: 980px) {
  .desktop-nav, .desktop-cta { display: none; }
  .burger { display: inline-block; }
  .mobile-sticky-bot { display: inline-flex; min-height: 42px; padding: 0 14px; font-size: .92rem; }
  .two-col, .feature-grid, .steps-grid, .demo-rail { grid-template-columns: 1fr 1fr; }
  .final-cta-card, .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .section-first { padding-top: 118px; }
  .container { width: min(var(--container), calc(100% - 20px)); }
  .site-header { top: 8px; width: calc(100% - 12px); }
  .header-row { gap: 10px; }
  .brand-text { font-size: .98rem; }
  .brand::after { width: 24px; height: 24px; }
  .mobile-sticky-bot { font-size: .82rem; padding: 0 12px; }
  .hero-actions, .final-cta-actions { width: 100%; }
  .hero-actions .cta, .final-cta-actions .cta { flex: 1; }
  .demo-feed { padding: 12px; }
  .demo-topbar {
    flex-direction: column; align-items: stretch;
  }
  .demo-topbar-left {
    align-items: flex-start; flex-wrap: wrap;
  }
  .demo-topbar-right { margin-left: 0; }
  .sound-toggle { width: 100%; justify-content: center; }
  .chat-live-shell { padding: 10px; }
  .chat-thread.live { height: 500px; gap: 10px; padding: 8px 4px 76px; }
  .typing-overlay { left: 10px; right: 10px; bottom: 10px; }
  .chat-row { gap: 10px; }
  .avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .bubble-group { max-width: calc(100% - 48px); }
  .typing-overlay .bubble-group { max-width: calc(100% - 48px); }
  .bubble {
    padding: 12px 14px 30px;
    line-height: 1.56;
    font-size: .96rem;
  }
  .chat-meta {
    gap: 6px;
    margin-left: 2px;
    flex-wrap: wrap;
  }
  .two-col, .feature-grid, .steps-grid, .demo-rail { grid-template-columns: 1fr; }
  .cookie-popup { right: 10px; bottom: 10px; width: calc(100% - 20px); flex-direction: column; align-items: stretch; }
}