/* ===== Design tokens ===== */
:root {
  --bg-0: #050510;
  --bg-1: #0a0a18;
  --bg-2: #10102a;
  --ink-100: #ffffff;
  --ink-80: rgba(255, 255, 255, 0.78);
  --ink-60: rgba(255, 255, 255, 0.56);
  --ink-40: rgba(255, 255, 255, 0.36);
  --ink-20: rgba(255, 255, 255, 0.16);
  --ink-10: rgba(255, 255, 255, 0.08);
  --ink-5: rgba(255, 255, 255, 0.04);
  --accent-blue: #6e8bff;
  --accent-violet: #b388ff;
  --accent-cyan: #7fe0ff;
  --grad-1: linear-gradient(135deg, #6e8bff 0%, #b388ff 50%, #7fe0ff 100%);
  --grad-2: linear-gradient(135deg, #6e8bff 0%, #b388ff 100%);
  --glass-bg: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.08);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-0);
  color: var(--ink-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  min-height: 100vh;
  position: relative;
}

/* ===== Animated background ===== */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg-0);
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
}
.blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #4a5fd6 0%, transparent 70%);
  top: -200px; left: -200px;
  animation: float1 22s ease-in-out infinite;
}
.blob-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8a5fd6 0%, transparent 70%);
  top: 30%; right: -200px;
  animation: float2 26s ease-in-out infinite;
}
.blob-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #5fb5d6 0%, transparent 70%);
  bottom: -150px; left: 30%;
  animation: float3 30s ease-in-out infinite;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, 80px) scale(1.15); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 100px) scale(0.9); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.1); }
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.5s var(--ease-out);
}
header.scrolled {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: rgba(5, 5, 16, 0.65);
  border-bottom: 1px solid var(--ink-10);
  padding: 12px 0;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: none;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  background-image: url('favicon.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 20px rgba(110, 139, 255, 0.4);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--ink-80);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.3s var(--ease-out);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--accent-blue);
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--ink-100); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 9px 18px;
  background: var(--ink-10);
  border: 1px solid var(--ink-20);
  border-radius: 100px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(20px);
}
.nav-cta:hover {
  background: var(--ink-20);
  transform: translateY(-1px);
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.15s; }
.reveal[data-delay="2"] { transition-delay: 0.3s; }
.reveal[data-delay="3"] { transition-delay: 0.45s; }
.reveal[data-delay="4"] { transition-delay: 0.6s; }
.reveal[data-delay="5"] { transition-delay: 0.75s; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding: 160px 0 100px;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  font-size: 13px;
  color: var(--ink-80);
  margin-bottom: 32px;
}
.hero-eyebrow-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-2);
  position: relative;
  box-shadow: 0 0 12px rgba(110, 139, 255, 0.6);
}
.hero-eyebrow-dot::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: white;
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.hero h1 .accent {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero p.lead {
  font-size: 19px;
  color: var(--ink-60);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.55;
}

/* ===== Buttons ===== */
.btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad-2);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(110, 139, 255, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8aa1ff 0%, #c4a0ff 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(110, 139, 255, 0.7),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }

/* ===== Phone mockup ===== */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}
.phone-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(110, 139, 255, 0.35) 0%, rgba(179, 136, 255, 0.15) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.phone {
  position: relative;
  width: 300px;
  height: 620px;
  border-radius: 48px;
  background: linear-gradient(160deg, #1a1a2e 0%, #0a0a18 100%);
  padding: 8px;
  box-shadow:
    0 60px 100px -30px rgba(0, 0, 0, 0.7),
    0 30px 60px -20px rgba(110, 139, 255, 0.25),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: floatPhone 7s ease-in-out infinite;
  z-index: 1;
  transform-style: preserve-3d;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-18px) rotateX(2deg) rotateY(-2deg); }
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 40px;
  background: linear-gradient(180deg, #0a0a1e 0%, #050511 100%);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 5;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 18px 28px 0;
  font-size: 13px;
  font-weight: 600;
  color: white;
}
.phone-status-icons {
  display: flex; gap: 5px; align-items: center;
}
.phone-header {
  padding: 42px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.phone-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.phone-search-ic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
}
.chat-list {
  flex: 1;
  padding: 10px 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 14px;
  transition: background 0.3s;
}
.chat-item.active {
  background: linear-gradient(90deg, rgba(110, 139, 255, 0.15), rgba(179, 136, 255, 0.05));
}
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.av-1 { background: linear-gradient(135deg, #ff8a65, #ff5252); }
.av-2 { background: linear-gradient(135deg, #6e8bff, #b388ff); }
.av-3 { background: linear-gradient(135deg, #4dd0e1, #26c6da); }
.av-4 { background: linear-gradient(135deg, #ba68c8, #7e57c2); }
.av-5 { background: linear-gradient(135deg, #66bb6a, #43a047); }
.chat-meta {
  flex: 1;
  min-width: 0;
}
.chat-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.chat-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.chat-time {
  font-size: 11px;
  color: var(--ink-40);
}
.chat-last {
  font-size: 12.5px;
  color: var(--ink-60);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.badge {
  margin-left: 6px;
  background: var(--grad-2);
  border-radius: 100px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  color: white;
}
.phone-tab-bar {
  display: flex;
  justify-content: space-around;
  padding: 10px 18px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.tab-ic {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}
.tab-ic.active {
  background: var(--grad-2);
}

/* ===== Sections ===== */
section {
  padding: 120px 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}
.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-80);
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(20px);
}
.section-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.section-header p {
  font-size: 18px;
  color: var(--ink-60);
  line-height: 1.55;
}

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  padding: 32px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px) saturate(180%);
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  cursor: default;
}
/* Курсор-следящее свечение: координаты --mx/--my задаёт JS */
.feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 139, 255, 0.15), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 30px 60px -20px rgba(110, 139, 255, 0.2);
}
.feature:hover::before {
  opacity: 1;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(110, 139, 255, 0.15), rgba(179, 136, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-blue);
}
.feature h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.feature p {
  font-size: 14.5px;
  color: var(--ink-60);
  line-height: 1.55;
}

/* ===== Download ===== */
.download-section {
  padding: 100px 0;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.dl-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  text-decoration: none;
  color: white;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
}
.dl-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(110, 139, 255, 0), rgba(179, 136, 255, 0));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.dl-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 25px 50px -15px rgba(110, 139, 255, 0.35);
}
.dl-card:hover::after {
  opacity: 1;
  background: linear-gradient(135deg, rgba(110, 139, 255, 0.1), rgba(179, 136, 255, 0.06));
}
.dl-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-100);
}
.dl-platform-label {
  font-size: 11.5px;
  color: var(--ink-40);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.dl-platform-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dl-arrow {
  position: absolute;
  top: 24px; right: 24px;
  color: var(--ink-40);
  transition: all 0.4s var(--ease-out);
}
.dl-card:hover .dl-arrow {
  color: white;
  transform: translate(2px, -2px);
}

/* ===== About ===== */
.about {
  padding: 140px 0;
}
.about-wrap {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.about h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.about h2 .grad {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about p {
  font-size: 19px;
  color: var(--ink-60);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 70px;
}
.principle {
  padding: 32px 28px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  text-align: left;
  transition: all 0.5s var(--ease-out);
}
.principle:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}
.principle-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-40);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.principle-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.principle-title .grad {
  background: var(--grad-1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.principle-text {
  font-size: 14px;
  color: var(--ink-60);
  line-height: 1.55;
}

/* ===== Footer ===== */
footer {
  padding: 70px 0 40px;
  border-top: 1px solid var(--ink-10);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--ink-60);
  margin-top: 16px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-40);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--ink-80);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--ink-10);
  font-size: 13px;
  color: var(--ink-40);
  flex-wrap: wrap;
  gap: 16px;
}
.socials {
  display: flex;
  gap: 10px;
}
.social-ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-80);
  transition: all 0.4s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}
.social-ic:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 80px; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }
  .hero-eyebrow { margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 760px) {
  .principles { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 80px 0; }
  .hero { padding: 130px 0 70px; }
  .features-grid, .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .phone { width: 260px; height: 540px; }
  .phone-glow { width: 380px; height: 380px; }
}

/* Уважаем системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
