/* Disable webkit tap highlight on mobile devices */
* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow text selection for specific elements */
input, textarea, [contenteditable] {
  -webkit-user-select: text;
  -khtml-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

:root {
  --bg: #000;
  --card: rgba(10,10,10,0.98);
  --white: #fff;
  --gray: #b0b0b8;
  --border: #fff2;
  --shadow: 0 8px 32px 0 rgba(255,255,255,0.07);
  --radius: 2.2rem;
  --radius-sm: 1.2rem;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  /* Мобильные улучшения */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Улучшения для мобильных устройств */
* {
  box-sizing: border-box;
}

/* Убираем выделение текста на мобильных */
.btn, .feature-card, .testimonial {
  /* Уже отключено глобально */
}

/* Убираем подсветку тапов */
button, .btn, a {
  /* Уже отключено глобально */
}

body::before {
  content: '';
  position: fixed;
  z-index: 0;
  left: 0; top: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  opacity: 0.38;
  background:
    radial-gradient(ellipse 60% 40% at 8% 12%, #00ffb399 0%, transparent 90%),
    radial-gradient(ellipse 50% 38% at 92% 18%, #ffb30099 0%, transparent 90%),
    radial-gradient(ellipse 55% 28% at 12% 88%, #ff6a0099 0%, transparent 90%),
    radial-gradient(ellipse 38% 50% at 85% 95%, #00ffb399 0%, transparent 90%),
    radial-gradient(ellipse 40% 22% at 70% 60%, #ffb30099 0%, transparent 90%),
    radial-gradient(ellipse 22% 40% at 30% 80%, #ff6a0099 0%, transparent 90%);
  filter: blur(90px) hue-rotate(0deg);
  animation: main-bg-move 18s ease-in-out infinite alternate, main-bg-hue 24s linear infinite;
}

@keyframes main-bg-move {
  0% {
    background-position:
      8% 12%, 92% 18%, 12% 88%, 85% 95%, 70% 60%, 30% 80%;
  }
  100% {
    background-position:
      12% 18%, 88% 22%, 18% 92%, 80% 85%, 75% 65%, 25% 75%;
  }
}

@keyframes main-bg-hue {
  0% { filter: blur(90px) hue-rotate(0deg); }
  100% { filter: blur(90px) hue-rotate(360deg); }
}

body > * { position: relative; z-index: 1; }

.center-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
}

.hero {
  width: 100%;
  margin-top: 6em;
  padding-top: 4em;
  padding-bottom: 4em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.logo {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.main-title {
  font-size: 4.2rem;
  font-weight: 900;
  letter-spacing: -2px;
  margin: 0 0 0.5em 0;
  text-align: center;
  text-shadow: 0 4px 64px #fff1, 0 1px 0 #fff2;
}

.main-subtitle {
  color: var(--gray);
  font-size: 1.35rem;
  font-weight: 400;
  margin: 0 0 7em 0;
  text-align: center;
  letter-spacing: 0.1px;
  min-height: 2.2em;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 2.5em auto;
  align-items: center;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--border);
  padding: 1.7rem 1.5rem 1.3rem 1.5rem;
  width: 100%;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: 0 16px 48px 0 #fff2, 0 8px 32px 0 #0004;
  border-color: #fff5;
}

.feature-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.feature-desc {
  color: var(--gray);
  font-size: 1.05rem;
  font-weight: 400;
}

.cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin: 2.5rem 0 2.5rem 0;
  width: 100%;
}

.btn {
  background: var(--white);
  color: var(--bg);
  border: none;
  border-radius: var(--radius);
  padding: 1.1rem 2.2rem;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  outline: none;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  /* Улучшения для тач-интерфейса */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn:hover {
  background: #222;
  color: var(--white);
  box-shadow: 0 12px 32px 0 #fff2;
  transform: translateY(-2px) scale(1.04);
}

.testimonials {
  margin: 2.5rem 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.testimonial {
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  border: 2px solid var(--border);
  text-align: center;
  width: 100%;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.testimonial:hover {
  box-shadow: 0 8px 32px 0 #fff2, 0 4px 16px 0 #0004;
  border-color: #fff5;
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.7rem;
  font-style: italic;
}

.testimonial-author {
  color: var(--gray);
  font-weight: 700;
  font-size: 1rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.footer-title {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.footer-year {
  color: var(--gray);
  font-size: 1.05rem;
  margin-left: 0.7rem;
}

.footer-link {
  margin-left: 0;
  margin-top: 0.7rem;
}

.footer-link:hover {
  color: #fff;
  border-color: #fff5;
  text-decoration: underline;
}

.footer-text {
  color: var(--gray);
  text-align: center;
  font-weight: 500;
  display: block;
  width: 100%;
  margin: 0 auto;
}

.footer-text a {
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-text a:hover {
  color: var(--white);
  text-decoration: underline;
}

footer {
  width: 100%;
  background: rgba(0,0,0,0.15);
  border-radius: 0;
  box-shadow: 0 -4px 24px 0 #000a;
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  text-align: center;
  font-size: 1.05rem;
  border-top: 2px solid var(--border);
  margin-top: 2.5rem;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
}

/* Typewriter cursor animation */
.typewriter-cursor {
  display: inline-block;
  background: var(--white);
  margin-left: 2px;
  width: 2px;
  animation: typewriter-blink 1.2s infinite;
}

@keyframes typewriter-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Стилизация скроллбара */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  body {
    padding: 0 1rem;
  }

  .center-wrap {
    max-width: 100%;
    padding: 0 0.5rem;
  }

  .hero {
    margin-top: 1.5rem;
    padding: 1.5rem 0 2rem 0;
    margin-bottom: 1.5rem;
  }

  .main-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
  }

  .main-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 3rem;
    padding: 0 0.5rem;
  }

  .features {
    max-width: 100%;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .feature-card {
    padding: 1.5rem 1rem;
    margin: 0;
  }

  .feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }

  .feature-desc {
    font-size: 1rem;
    line-height: 1.5;
  }

  .cta {
    gap: 1rem;
    margin-bottom: 2rem;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .testimonials {
    max-width: 100%;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .testimonial {
    padding: 1.5rem 1rem;
  }

  .testimonial-text {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .testimonial-author {
    font-size: 0.9rem;
  }

  footer {
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    padding: 0 0.5rem;
  }

  .center-wrap {
    padding: 0;
  }

  .hero {
    margin-top: 1rem;
    padding: 1rem 0 1.5rem 0;
  }

  .main-title {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
  }

  .main-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    padding: 0 0.25rem;
  }

  .features {
    gap: 0.8rem;
  }

  .feature-card {
    padding: 1.25rem 0.8rem;
  }

  .feature-title {
    font-size: 1.2rem;
  }

  .feature-desc {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }

  .testimonial {
    padding: 1.25rem 0.8rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
  }

  footer {
    padding: 1.25rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
  }
}

/* Дополнительная адаптация для очень маленьких экранов */
@media (max-width: 360px) {
  .main-title {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .main-subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .feature-card {
    padding: 1rem 0.6rem;
  }

  .feature-title {
    font-size: 1.1rem;
  }

  .feature-desc {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
    min-width: 120px;
  }

  .testimonial {
    padding: 1rem 0.6rem;
  }

  .testimonial-text {
    font-size: 0.9rem;
  }

  .testimonial-author {
    font-size: 0.85rem;
  }
}

/* Ландшафтная ориентация на мобильных */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero {
    margin-top: 0.5rem;
    padding: 0.8rem 0 1rem 0;
  }

  .main-title {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
  }

  .main-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .features {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  .testimonials {
    gap: 0.6rem;
    margin-bottom: 1rem;
  }

  footer {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    justify-content: center;
  }
  }
  }
  }
  }
  }
} 