:root {
  --bg-dark: #FFFFFF;
  --bg-panel: #F8FAFC;
  --bg-card: #FFFFFF;

  --amber: #f59e0b;
  --amber-dim: rgba(245, 158, 11, 0.1);
  --cyan: #0ea5e9;
  --cyan-glow: rgba(14, 165, 233, 0.1);
  --cyan-border: rgba(14, 165, 233, 0.2);
  --purple: #8b5cf6;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #E2E8F0;

  --font-sys: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --morph-speed: 0.6s;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sys);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cyan);
}

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

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span:first-child {
  color: var(--cyan);
}

.logo span:last-child {
  color: var(--amber);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--cyan);
}

/* === Dropdown === */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
}

.dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s var(--ease-smooth);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

.dropdown-menu a:hover {
  background: var(--bg-panel);
  color: var(--cyan);
}

.mobile-only-auth {
  display: none; /* Скрыто на десктопе */
}

.auth-btn {
  background: var(--text-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.auth-btn:hover {
  background: var(--cyan);
  color: #fff;
  border-color: var(--cyan);
}

/* === Hero Section === */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 span {
  color: var(--cyan);
}

.hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-btn {
  display: inline-block;
  background: var(--cyan);
  color: #fff;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 10px 24px var(--cyan-glow);
  transition: all 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px var(--cyan-glow);
  color: #fff;
}

/* === Grid Features === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin: 80px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.feature-card:hover {
  border-color: var(--cyan-border);
  background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transform: translateY(-8px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 24px;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

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

/* === Footer === */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 80px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

/* === Mobile Responsiveness === */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: all 0.4s var(--ease-smooth);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 24px;
    font-weight: 700;
  }

  .nav-wrap {
    height: 80px;
    flex-direction: row;
    justify-content: space-between;
  }

  header .auth-btn {
    display: none; /* Прячем кнопку из шапки */
  }

  .nav-links .mobile-only-auth {
    display: block !important;
    margin-top: 20px;
    background: var(--cyan);
    color: #000 !important;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 800;
  }

  /* Анимация бургера в крестик */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--cyan);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--cyan);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    margin: 40px 0;
  }
}

.unified-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 4px;
  cursor: pointer;
  padding: 20px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  overflow: visible;
}

/* Левая стойка (подогнана под новые координаты Y: 19 и 82) */
.stem-left {
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke var(--morph-speed) var(--ease-smooth);
}

/* Правые дуги (ваш обновленный путь) */
.bows-to-stem {
  fill: none;
  stroke: var(--text-secondary);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* Ваша новая форма */
  d: path("M 30 19 C 72 12, 66 60, 32 50 C 67 42, 75 87, 30 82");
  transition: all var(--morph-speed) var(--ease-bounce);
}

/* Линии между точками */
.network-lines {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  d: path("M 55 35 L 35 50 L 55 65");
  filter: drop-shadow(0 0 6px var(--cyan-glow));
  transition: all var(--morph-speed) var(--ease-bounce);
}

.node {
  fill: var(--cyan);
  filter: drop-shadow(0 0 4px var(--cyan-glow));
  transition: all var(--morph-speed) var(--ease-bounce);
}

.node-top {
  cx: 55px;
  cy: 35px;
  r: 4px;
}

.node-mid {
  cx: 35px;
  cy: 50px;
  r: 4.5px;
}

.node-bot {
  cx: 55px;
  cy: 65px;
  r: 4px;
}

.logo-text {
  display: flex;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-left: 8px;
}

.part-brief {
  color: var(--cyan);
}

.part-hub {
  color: var(--amber);
  font-weight: 800;
  transition: color var(--morph-speed) var(--ease-smooth), text-shadow var(--morph-speed) var(--ease-smooth);
}

/* === АНИМАЦИЯ === */

.unified-logo:hover .stem-left,
.unified-logo:hover .bows-to-stem {
  stroke: var(--text-primary);
}

.unified-logo:hover .bows-to-stem {
  /* Выстраиваем ваши Y-координаты в прямую линию по X=70 */
  d: path("M 70 19 C 70 12, 70 60, 70 50 C 70 42, 70 87, 70 82");
}

.unified-logo:hover .node-top {
  cx: 70px;
  cy: 50px;
}

.unified-logo:hover .node-mid {
  cx: 50px;
  cy: 50px;
}

.unified-logo:hover .node-bot {
  cx: 30px;
  cy: 50px;
}

.unified-logo:hover .network-lines {
  d: path("M 70 50 L 50 50 L 30 50");
  stroke-width: 4;
  filter: drop-shadow(0 0 10px var(--cyan-glow));
}

.unified-logo:hover .part-hub {
  color: var(--text-primary);
  text-shadow: 0 0 16px var(--cyan-glow);
}

/* === Screenshots & Visuals === */
.app-screenshot-wrap {
  position: relative;
  margin: 40px auto;
  max-width: 960px;
  border-radius: 12px;
  background: var(--bg-panel);
  padding: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transition: transform 0.4s var(--ease-bounce), box-shadow 0.4s ease;
}

.app-screenshot-wrap:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 60px 120px rgba(0,0,0,0.8), 0 0 40px var(--cyan-glow);
  border-color: var(--cyan-border);
}

.app-screenshot-wrap img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.feature-row-v2 {
  display: flex !important;
  align-items: center;
  gap: 80px;
  margin: 120px 0;
  text-align: left;
}

.feature-row-v2.reverse {
  flex-direction: row-reverse;
}

.feature-info-v2 {
  flex: 1;
}

.feature-visual-v2 {
  flex: 1.4;
}

.feature-row-v2 h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.feature-row-v2 p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--amber-dim);
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.pill-cyan {
  background: var(--cyan-glow);
  color: var(--cyan);
  border-color: var(--cyan-border);
}

@media (max-width: 1024px) {
  .feature-row-v2 {
    flex-direction: column !important;
    text-align: center !important;
    gap: 40px;
    margin: 80px 0;
  }
}

.app-screenshot-wrap {
  width: fit-content;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  background: #f8fafc; /* Светлый фон на случай если картинка с прозрачностью или меньше контейнера */
}

.app-screenshot-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(14, 165, 233, 0.15);
  border-color: var(--cyan-border);
}

.app-screenshot-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast; /* Немного четкости для скриншотов */
}