:root {
  --bg-color: #050505;
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-hover: rgba(255, 255, 255, 0.08);
  --font-main: 'Inter', sans-serif;
  --bot-accent: #00f0ff;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  line-height: 1.6;
}

#neural-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  opacity: 0.4;
  touch-action: none;
}

/* --- HEADER --- */
.glass-header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%); /* Позиция по умолчанию */
  width: 90%;
  max-width: 1000px;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 160;
  
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  
  /* ПЛАВНЫЙ ПЕРЕХОД ПРИ ИСЧЕЗНОВЕНИИ */
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease;
  opacity: 1;
}

/* Класс для скрытия хедера */
.glass-header.hidden {
  transform: translate(-50%, -130%); 
  opacity: 0;
  pointer-events: none;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.desktop-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--text-main);
}

.lang-switch {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
  padding: 0;
}

.lang-btn:hover, .lang-btn.active {
  color: var(--text-main);
}

.sep {
  color: #333;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}

.hero-glow {  /* свечение сзади */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.10) 0%, rgba(0,0,0,0) 70%); /* ярковть менять 4 параметр (0, 240, 255, 0.10)*/
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-glow {
    width: 450px;       /* Уменьшаем размер под экран телефона */
    height: 450px;
    opacity: 0.8;       /* Чуть прозрачнее, чтобы текст читался идеально */
  }
}

.hero-content {
  max-width: 800px;
  width: 100%;
  animation: fadeUp 1s ease-out;
}

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

h1 {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -3px;
  line-height: 1.1;
}

.slogan {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 25px;
  letter-spacing: -0.5px;
}

.description {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 50px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 16px 45px;
  border: 1px solid #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: transparent;
  color: #fff;
}

@media (hover: hover) {
  .btn.primary:hover {
    background: #fff;
    color: #000;
  }
}

/* Для телефонов добавляем эффект нажатия (active), 
   который пропадает сразу, как отпускаешь палец */
.btn.primary:active {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  transform: scale(0.98); /* Легкое уменьшение для тактильности */
}

/* Добавляем позиционирование для заголовка */
.glum-title {
  position: relative;
  display: inline-block; /* Важно: заголовок сжимается по ширине текста */
}

/* Стиль звезды AI */
.ai-star {
  position: absolute;
  top: 0px;       /* Высота над буквой */
  right: -30px;   /* Сдвиг вправо от буквы M */
  font-size: 2.5rem;
  color: var(--bot-accent); /* Используем цвет робота (Cyan) */
  text-shadow: 0 0 20px var(--bot-accent); /* Неоновое свечение */
  animation: star-pulse 3s infinite ease-in-out;
  pointer-events: none;
}

@media (max-width: 768px) {
  .ai-star {
    top: -5px;      /* Поднимаем выше (было 0) */
    right: -21px;    /* Чуть ближе к тексту */
    font-size: 2rem; /* Чуть меньше размер */
  }
}

/* Анимация пульсации звезды */
@keyframes star-pulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg); 
    opacity: 0.8; 
  }
  50% { 
    transform: scale(1.3) rotate(5deg); 
    opacity: 1; 
    text-shadow: 0 0 30px var(--bot-accent);
  }
}

/* --- TECH STRIP --- */
.tech-strip {
  width: 100%;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.01);
  overflow: hidden; /* Скрываем то, что вылезает */
  position: relative;
}

.tech-track {
  display: flex;
  width: max-content;
  gap: 50px;
  animation: scroll-left 150s linear infinite; /* Бесконечное движение */
}

.tech-item {
  color: #444; /* Чуть темнее, чтобы не отвлекало */
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 2px;
  flex-shrink: 0;
  /*margin-right: 50px; /* Отступ между словами */
}

/* Сама анимация */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* Сдвигаем на половину (так как продублировали список) */
}

/* При наведении останавливаем */
.tech-strip:hover .tech-track {
  animation-play-state: paused;
}

/* --- SECTIONS --- */
.section-padding {
  padding: 100px 20px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 60px;
  font-weight: 600;
  border-left: 3px solid #fff;
  padding-left: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px; 
}

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

.card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--card-hover);
  transform: translateY(-8px);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.card:hover::before {
  transform: translateX(100%);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.trust-item h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
}

.trust-item p {
  color: var(--text-muted);
}

.contact-section {
  display: flex;
  justify-content: center;
}

.info-panel {
  text-align: center;
  padding: 0 20px;
  width: 100%;
  max-width: 700px;
}

.info-panel h3 {
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 2px;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 50px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.label {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.value {
  color: var(--text-main);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 300;
  transition: opacity 0.2s;
}

.value:hover {
  opacity: 0.7;
}

footer {
  text-align: center;
  padding: 40px 20px;
  color: #444;
  font-size: 0.8rem;
  border-top: 1px solid #111;
}

/* ROBOT & CHAT */
#robot-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  z-index: 100;
  animation: float 4s ease-in-out infinite;
  cursor: pointer;
  transition: transform 0.3s;
}

#robot-wrapper:hover {
  transform: scale(1.1);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes tear-drop {
  0% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(20px); }
}

.crying-anim {
  animation: tear-drop 1.5s linear;
}

#chat-window {
  position: fixed;
  bottom: 130px;
  right: 20px;
  width: 320px;
  height: 400px;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

.chat-header {
  background: rgba(255,255,255,0.05);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#close-chat {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
}

.message {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 80%;
  line-height: 1.4;
}

.message.bot {
  background: rgba(255,255,255,0.1);
  align-self: flex-start;
  border-top-left-radius: 0;
}

.message.user {
  background: var(--bot-accent);
  color: #000;
  align-self: flex-end;
  border-top-right-radius: 0;
  font-weight: 500;
}

.chat-input-area {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 5px;
}

#user-input {
  flex: 1;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px;
  border-radius: 4px;
  color: #fff;
  outline: none;
}

#user-input:focus {
  border-color: var(--bot-accent);
}

#send-btn {
  background: var(--bot-accent);
  border: none;
  border-radius: 4px;
  padding: 0 12px;
  cursor: pointer;
  color: #000;
}

@media (max-width: 768px) {
  h1 { font-size: 3.5rem; }
  .slogan { font-size: 1.3rem; }
  .grid.col-2 { grid-template-columns: 1fr; }
  .value { font-size: 1.5rem; }
  .section-padding { padding: 60px 20px; }
  .card { padding: 30px; }
  #robot-wrapper { width: 70px; height: 70px; bottom: 10px; right: 10px; }
  #chat-window { bottom: 90px; right: 10px; width: 280px; height: 350px; }
  
  .glass-header { width: 95%; padding: 10px 20px; }
  .desktop-nav { display: none; }
}

/* --- PRICING MINIMAL (FIXED) --- */
.pricing-minimal {
  max-width: 800px;
  /* Убираем центрирование, чтобы было выровнено по левому краю, как блоки выше */
  text-align: left; 
}

.pricing-lead {
  /* Было 1.5rem, стало 1.25rem — аккуратнее, но чуть крупнее обычного текста */
  font-size: 1.25rem; 
  color: var(--text-main);
  font-weight: 400; /* Обычная толщина, не слишком тонкая */
  line-height: 1.6;
  margin-bottom: 25px;
  letter-spacing: -0.5px; /* Чуть плотнее, как в заголовках */
}

/* Линия разделитель */
.pricing-divider {
  width: 80px;
  height: 2px;
  background: var(--bot-accent);
  margin-bottom: 25px;
  box-shadow: 0 0 10px var(--bot-accent);
  border-radius: 2px;
}

.pricing-sub {
  /* Используем те же переменные, что и в описании Hero/Trust секций */
  font-size: 1.1rem; 
  color: var(--text-muted); /* Тот же серый цвет, что везде */
  font-weight: 300; /* Тонкий шрифт, как в описании "Efektyvumas" */
  margin-bottom: 20px;
  line-height: 1.6;
}

.pricing-highlight {
  font-size: 1.1rem;
  color: var(--bot-accent);
  font-weight: 500;
  margin-bottom: 35px;
  letter-spacing: 0.5px;
}

.pricing-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem; /* Стандартный размер кнопки */
  font-weight: 600;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.pricing-link:hover {
  color: var(--bot-accent);
  border-color: var(--bot-accent);
  padding-left: 5px; /* Легкий сдвиг вправо всего блока */
}

.arrow {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.pricing-link:hover .arrow {
  transform: translateX(5px);
}

.hamburger {
  display: none;
}

.mobile-nav-overlay, .hamburger {
  display: none;
}

/* Показываем только на мобильных */
@media (max-width: 768px) {

   html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
  }
  
  /* Стили самой кнопки */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 170; /* Поверх всего */
    padding: 10px;
    margin-left: 15px;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
  }

  /* Анимация превращения в крестик */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--bot-accent); /* Делаем голубым при открытии */
  }
  .hamburger.active span:nth-child(2) {
    transform: translateY(0) rotate(-45deg); /* Сливаем две полоски в одну для X */
    background-color: var(--bot-accent);
    margin-top: -8px; /* Корректировка отступа */
  }

  /* Само меню (полный экран) */
  .mobile-nav-overlay {
    display: flex; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Arba 100dvh geresniam palaikymui */
    
    /* CSS fiksas slinkimui: blokuoja touch judesius ant meniu */
    touch-action: none; 
    
    background: rgba(5, 5, 5, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 150; 
    
    flex-direction: column;
    justify-content: center;

    align-items: flex-start;
    padding-left: 35px;
    
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    
    /* Užuolaidos efektas: meniu pakeltas į viršų */
    transform: translateY(-100%);
    
    /* Uždarymo animacija (greita) */
    transition: 
        transform 0.5s cubic-bezier(0.32, 0, 0.67, 0),
        opacity 0.5s ease,
        visibility 0.5s;
  }

  /* Состояние "открыто" */
  .mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    
    /* Nuleidžiame žemyn */
    transform: translateY(0);
    
    /* Atidarymo animacija (sklandi) */
    transition: 
        transform 0.5s cubic-bezier(0.33, 1, 0.68, 1),
        opacity 0.5s ease;
  }

  /* Ссылки внутри меню */
  .mobile-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: left;
  }

 /* Ссылки внутри меню */
  .mob-link {
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    
    /* FIKSAS: Nuorodos plotis lygus teksto pločiui, kad linija būtų tiksli */
    width: fit-content;
    
    position: relative; 
    display: block; 
    padding-bottom: 5px;   
    
    /* --- Pradinė teksto būsena (nematomas ir pakeltas) --- */
    opacity: 0;
    transform: translateY(-20px);
    
    transition: 
        opacity 0.2s ease,
        transform 0.2s ease,
        color 0.3s ease; 
  }

  /* --- Teksto atsiradimas atidarius --- */
  .mobile-nav-overlay.open .mob-link {
    opacity: 1;
    transform: translateY(0);
    
    transition: 
        opacity 0.4s ease,
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        color 0.3s ease;
  }
  
  /* Paeiliui atsiradimas (labai greitas kaskadas) */
  .mobile-nav-overlay.open .mob-link:nth-child(1) { transition-delay: 0.10s; }
  .mobile-nav-overlay.open .mob-link:nth-child(2) { transition-delay: 0.15s; }
  .mobile-nav-overlay.open .mob-link:nth-child(3) { transition-delay: 0.20s; }
  .mobile-nav-overlay.open .mob-link:nth-child(4) { transition-delay: 0.25s; }

  /* Рисуем линию (FIKSAS) */
  .mob-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0; /* Pririšame prie kairės */
    
    width: 0%;   
    height: 2px; 
    
    background-color: var(--bot-accent);    
    box-shadow: 0 0 10px var(--bot-accent); 
    border-radius: 2px;
    
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* При нажатии/наведении */
  .mob-link:hover,
  .mob-link:active {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  }

  /* Линия растягивается */
  .mob-link:hover::after,
  .mob-link:active::after {
    width: 100%; 
  }
}

/* --- FIX IPHONE ZOOM --- */
@media (max-width: 768px) {
  #user-input {
    font-size: 16px !important; /* 16px sustabdo automatinį priartinimą */
    padding: 10px; /* Šiek tiek padidiname, kad būtų patogiau pirštui */
  }
}

.message a {
  color: var(--bot-accent); /* Tavo žydra spalva (#00f0ff) */
  text-decoration: underline;
  font-weight: bold;
  transition: all 0.2s ease;
}

.message a:hover {
  color: #ffffff; 
  text-decoration: none;
  text-shadow: 0 0 5px var(--bot-accent); /* Pridedame švytėjimą užvedus */
}

/* Основные вертикальные линии */
.tech-border {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.05); /* Очень тусклая линия */
  z-index: 10;
  pointer-events: none;
}

.left-border {
  left: 40px; /* Отступ от левого края */
}

.right-border {
  right: 40px; /* Отступ от правого края */
}

/* Декоративные засечки (маркеры) на линиях */
.tech-marker {
  position: absolute;
  width: 4px;
  height: 20px;
  background: var(--bot-accent); /* Твой голубой цвет */
  left: -1.5px; /* Центрируем относительно линии */
  opacity: 0.3; /* Полупрозрачные, чтобы не отвлекали */
  box-shadow: 0 0 10px var(--bot-accent); /* Легкое свечение */
}

/* Расставляем маркеры по высоте */
.tech-marker.top { top: 15%; }
.tech-marker.mid { top: 50%; height: 60px; opacity: 0.1; } /* Длинная тусклая полоска в центре */
.tech-marker.bot { bottom: 15%; }

/* Добавляем цифры/координаты (для атмосферы) */
.tech-border::after {
  content: "SYSTEM"; /* Текст слева */
  position: absolute;
  bottom: 50px;
  left: 16px;
  color: rgba(255, 255, 255, 0.15);
  font-size: 10px;
  font-family: monospace;
  letter-spacing: 2px;
  transform: rotate(-90deg);
  transform-origin: left bottom;
}

.right-border::after {
  content: "ENGINE"; /* Текст справа */
  bottom: auto;
  top: 100px;
  right: 0px;
  left: auto;
  transform: rotate(90deg);
  transform-origin: right top;
}

/* СКРЫВАЕМ НА ТЕЛЕФОНАХ */
/* На мобильных места мало, там эти линии будут мешать */
@media (max-width: 1024px) {
  .tech-border {
    display: none;
  }
}