/* ====================================
   Landing Page Styles - АллоМам
   ==================================== */

/* ====================================
   Card Header with Profile Button
   ==================================== */

/* Выделение карточки создания комнаты */
#startScreen .card {
  max-width: 600px;
  margin: 60px auto 80px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(102, 126, 234, 0.1);
}

.card-header-with-profile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 32px;
  gap: 16px;
}

.card-header-with-profile h2 {
  margin: 0;
  text-align: center;
}

.profile-btn-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  height: auto;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.profile-btn-inline:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
  border-color: var(--primary-solid);
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(102, 126, 234, 0.2);
}

.profile-btn-inline svg {
  width: 20px;
  height: 20px;
}

.display-name-preview {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.display-name-preview:empty {
  display: none;
}

/* ====================================
   Hero Section
   ==================================== */

.landing-hero {
  position: relative;
  text-align: center;
  max-width: 100%;
  margin: 0 auto 80px;
  padding: 80px 20px;
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 50%,
    rgba(240, 147, 251, 0.05) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.6s ease;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

/* Плавающие геометрические фигуры */
.floating-shape {
  position: absolute;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(240, 147, 251, 0.1));
  backdrop-filter: blur(20px);
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: -50px;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 10%;
  animation-delay: -5s;
  animation-duration: 20s;
}

.shape-3 {
  width: 180px;
  height: 180px;
  bottom: -60px;
  left: 15%;
  animation-delay: -10s;
  animation-duration: 22s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 5%;
  animation-delay: -15s;
  animation-duration: 18s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(20px, 30px) rotate(270deg);
  }
}

/* Градиентные орбы */
.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: pulse 15s ease-in-out infinite;
}

.orb-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.6), transparent);
  animation-delay: 0s;
}

.orb-2 {
  width: 250px;
  height: 250px;
  bottom: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(240, 147, 251, 0.6), transparent);
  animation-delay: -5s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(118, 75, 162, 0.4), transparent);
  animation-delay: -10s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin: 0 0 24px 0;
  line-height: 1.2;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 40%, #f093fb 80%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  font-weight: 400;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

.benefit-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.benefit-tag:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(102, 126, 234, 0.4);
}

.benefit-tag svg {
  width: 20px;
  height: 20px;
  color: var(--primary-solid);
}

/* ====================================
   Landing Sections (общие стили)
   ==================================== */

.landing-section {
  width: 100%;
  padding: 100px 20px;
  animation: fadeInUp 0.8s ease;
  position: relative;
}

/* Контент внутри секций ограничен по ширине */
.landing-section > h2,
.landing-section > .story-text,
.landing-section > .comparison-blocks,
.landing-section > .features-grid,
.landing-section > .steps,
.landing-section > .hint,
.landing-section > .conclusion,
.landing-section > .faq-list {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.landing-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 48px 0;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Чередующиеся фоны для секций */
.landing-section.why-simple {
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.05) 100%);
  border-top: 1px solid rgba(102, 126, 234, 0.15);
  border-bottom: 1px solid rgba(102, 126, 234, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.landing-section.features {
  background: transparent;
  padding-top: 120px;
  padding-bottom: 120px;
}

.landing-section.how-it-works {
  background: linear-gradient(135deg,
    rgba(79, 172, 254, 0.04) 0%,
    rgba(0, 242, 254, 0.04) 100%);
  border-top: 1px solid rgba(79, 172, 254, 0.15);
  border-bottom: 1px solid rgba(79, 172, 254, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.landing-section.faq {
  background: transparent;
  padding-top: 120px;
  padding-bottom: 120px;
}

/* ====================================
   Why Simple Section
   ==================================== */

.why-simple .story-text {
  max-width: 800px;
  margin: 0 auto 48px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.why-simple .story-text p {
  margin: 0 0 24px 0;
}

.why-simple .story-text p.highlight {
  color: var(--text);
  font-weight: 600;
  font-size: 1.15rem;
  border-left: 4px solid var(--primary-solid);
  padding-left: 20px;
  margin-top: 32px;
}

.comparison-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin: 48px 0;
}

.comparison-block {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
}

.comparison-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.comparison-block h3 {
  font-size: 1.5rem;
  margin: 0 0 20px 0;
  color: var(--text);
}

.comparison-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-block li {
  padding: 12px 0;
  padding-left: 32px;
  position: relative;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.comparison-block li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: bold;
}

.comparison-block.highlight-block {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
  border-color: rgba(102, 126, 234, 0.3);
}

.comparison-block.highlight-block li::before {
  content: '✓';
  color: var(--success);
}

.comparison-block.highlight-block li {
  color: var(--text);
}

.why-simple .conclusion {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ====================================
   Features Grid
   ==================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary-solid);
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.feature-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 0 16px 0;
}

.feature-card p:last-child {
  margin-bottom: 0;
}

/* ====================================
   How It Works Section
   ==================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 48px 0;
}

.step {
  text-align: center;
  position: relative;
}

.step-icon {
  width: 96px;
  height: 96px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
  transition: var(--transition);
}

.step:hover .step-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.7);
}

.step-icon svg {
  width: 40px;
  height: 40px;
  color: white;
  position: relative;
  z-index: 2;
}

.step-number {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 36px;
  height: 36px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  border: 3px solid var(--background);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.5);
  z-index: 3;
}

.step h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: var(--text);
}

.step p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.how-it-works .hint {
  margin-top: 48px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.08) 0%, rgba(0, 242, 254, 0.08) 100%);
  border: 1px solid rgba(79, 172, 254, 0.2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.how-it-works .hint svg {
  width: 24px;
  height: 24px;
  color: var(--accent-solid);
  flex-shrink: 0;
  margin-top: 2px;
}

.how-it-works .hint span {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.how-it-works .hint strong {
  color: var(--text);
}

/* ====================================
   FAQ Section
   ==================================== */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.faq-question {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  padding-right: 20px;
}

.faq-question svg {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary-solid);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 32px 32px 32px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ====================================
   Responsive Design
   ==================================== */

/* Tablets */
@media (max-width: 768px) {
  .landing-hero {
    padding: 60px 20px;
    margin-bottom: 60px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-benefits {
    gap: 12px;
  }

  .benefit-tag {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .benefit-tag svg {
    width: 18px;
    height: 18px;
  }

  /* Уменьшаем размер анимированных элементов на планшетах */
  .floating-shape {
    display: none; /* Убираем фигуры на планшетах для производительности */
  }

  .gradient-orb {
    filter: blur(40px);
  }

  .orb-1 {
    width: 200px;
    height: 200px;
  }

  .orb-2 {
    width: 180px;
    height: 180px;
  }

  .orb-3 {
    width: 150px;
    height: 150px;
  }

  .landing-section {
    padding: 80px 20px;
  }

  .landing-section.features,
  .landing-section.faq {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .landing-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
  }

  .comparison-blocks {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-question {
    padding: 20px 24px;
  }

  .faq-question h3 {
    font-size: 1.05rem;
  }

  .faq-answer p {
    padding: 0 24px 24px 24px;
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .landing-hero {
    padding: 50px 16px;
    margin-bottom: 40px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-benefits {
    flex-direction: column;
    align-items: stretch;
  }

  .benefit-tag {
    justify-content: center;
  }

  /* Упрощаем анимации на мобильных */
  .floating-shape {
    display: none;
  }

  .gradient-orb {
    filter: blur(30px);
    opacity: 0.3;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    width: 120px;
    height: 120px;
  }

  @keyframes pulse {
    0%, 100% {
      transform: scale(1);
      opacity: 0.3;
    }
    50% {
      transform: scale(1.2);
      opacity: 0.4;
    }
  }

  .landing-section {
    padding: 60px 16px;
  }

  .landing-section.features,
  .landing-section.faq {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .landing-section h2 {
    font-size: 1.6rem;
  }

  .why-simple .story-text {
    font-size: 1rem;
  }

  .comparison-block {
    padding: 24px;
  }

  .comparison-block h3 {
    font-size: 1.3rem;
  }

  .comparison-block li {
    font-size: 1rem;
    padding-left: 24px;
  }

  .feature-card {
    padding: 28px;
  }

  .feature-icon {
    width: 64px;
    height: 64px;
  }

  .feature-icon svg {
    width: 32px;
    height: 32px;
  }

  .feature-card h3 {
    font-size: 1.3rem;
  }

  .feature-card p {
    font-size: 1rem;
  }

  .step-icon {
    width: 80px;
    height: 80px;
  }

  .step-icon svg {
    width: 32px;
    height: 32px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .step h3 {
    font-size: 1.2rem;
  }

  .step p {
    font-size: 1rem;
  }

  .how-it-works .hint {
    padding: 20px 24px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .how-it-works .hint svg {
    margin-top: 0;
  }

  .how-it-works .hint span {
    font-size: 1rem;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question h3 {
    font-size: 1rem;
    padding-right: 12px;
  }

  .faq-question svg {
    width: 20px;
    height: 20px;
  }

  .faq-answer p {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
  }
}

/* ====================================
   Footer
   ==================================== */

.landing-footer {
  display: block !important;
  margin-top: 100px;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.landing-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.landing-footer a:hover {
  color: var(--primary-solid);
}

/* Responsive для футера */
@media (max-width: 480px) {
  .landing-footer {
    margin-top: 60px;
    padding: 30px 16px;
  }

  .landing-footer p {
    font-size: 0.85rem;
  }
}
