/* ============================================================
   Landing Redesign — New Sections & Components
   Extends main style.css with landing-specific styles
   ============================================================ */

/* ── Hero Input Bar ── */
.hero-input-bar {
  max-width: 600px;
  margin-bottom: var(--space-5);
}
.hero-input-bar__inner {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.hero-input-bar__inner:focus-within {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(196, 181, 253, 0.2), 0 4px 20px rgba(0, 0, 0, 0.15);
}
.hero-input-bar__textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: var(--text-md);
  line-height: var(--leading-normal);
  padding: var(--space-2);
  min-height: 44px;
  max-height: 120px;
  background: transparent;
  color: #fff;
}
.hero-input-bar__textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.hero-input-bar__send {
  width: 44px;
  height: 44px;
  border: none;
  background: #fff;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.hero-input-bar__send:hover {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  transform: scale(1.05);
}

/* ── Hero Quick Action Chips ── */
.hero-quick-actions {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-1px);
}
.hero-chip svg {
  opacity: 0.8;
  flex-shrink: 0;
}

/* ── Section Label Light (for dark bg sections) ── */
.section__label--light {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
}

/* ── About Layout (two-column with image) ── */
.about-layout__content {
  /* text content side */
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.about-layout__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
}
.about-layout__text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-4);
}
.about-layout__disclaimer {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  margin-top: var(--space-4);
}
.about-layout__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}
.about-layout__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Process Steps (Stage-Gate) ── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  counter-reset: process-counter;
}
.process-step {
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  position: relative;
  text-align: center;
}
.process-step:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}
.process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--font-weight-extrabold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}
.process-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary-10) 0%, rgba(196, 181, 253, 0.15) 100%);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.process-step__title {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}
.process-step__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Feature Icons (replacing emoji) ── */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: var(--space-4);
}
.feature-icon--primary {
  background: linear-gradient(135deg, var(--color-primary-10) 0%, rgba(196, 181, 253, 0.15) 100%);
  color: var(--color-primary);
}
.feature-icon--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.15) 100%);
  color: var(--color-info);
}
.feature-icon--green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.15) 100%);
  color: var(--color-success);
}
.feature-icon--amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.15) 100%);
  color: var(--color-warning);
}

/* ── Mentor Layout (landing page version) ── */
.section--mentor {
  background: linear-gradient(135deg, rgba(30, 27, 46, 0.88) 0%, rgba(107, 33, 168, 0.82) 100%),
              url('/images/team-rostov-moscow.webp') center/cover no-repeat;
  color: #fff;
}
.section--mentor .section__title { color: #fff; }
.section--mentor .section__subtitle { color: rgba(255, 255, 255, 0.85); }
.mentor-layout {
  /* Override the existing mentor-layout from submit page */
}
.section--mentor .mentor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  min-height: auto;
}
.mentor-layout__content {
  /* text side */
}
.mentor-layout__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
}
.mentor-layout__text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-6);
}
.mentor-layout__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.mentor-layout__feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
}
.mentor-layout__feature svg {
  flex-shrink: 0;
  color: var(--color-accent);
}
.mentor-layout__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.section--mentor .btn--primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.section--mentor .btn--primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary-dark);
}
.section--mentor .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.section--mentor .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}
.mentor-layout__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mentor-layout__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ── Demo Static (when no upcoming demo days) ── */
.demo-static {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.demo-static__content {
  padding: var(--space-10) 0;
}
.demo-static__title {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
}
.demo-static__text {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--space-8);
}

/* ── Demo Day section cards on dark bg ── */
.section--demo-bg .card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section--demo-bg .card__title,
.section--demo-bg .card__title a {
  color: #fff;
}
.section--demo-bg .card__text {
  color: rgba(255, 255, 255, 0.85);
}
.section--demo-bg .btn--outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.section--demo-bg .btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
}

/* ── Card Badges (for events section) ── */
.card__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.card__badge--demo {
  background: rgba(196, 181, 253, 0.3);
  color: #fff;
}
.card__badge--event {
  background: rgba(59, 130, 246, 0.2);
  color: rgba(255, 255, 255, 0.95);
}

/* ── Coming Soon Badge ── */
.card--coming-soon {
  position: relative;
  opacity: 0.85;
}
.card__coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

/* ── Footer News ── */
.footer__news {
  width: 100%;
  padding-top: var(--space-6);
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.footer__news-title {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
}
.footer__news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
}
.footer__news-list li {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}
.footer__news-item-title {
  font-size: var(--text-sm);
  color: var(--color-text);
}
.footer__news-item-date {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ── Footer Bottom (lang + copy) ── */
.footer__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.footer__lang {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
}
.footer__lang svg {
  opacity: 0.6;
}
.footer__lang .lang-switch__btn {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.footer__lang .lang-switch__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.footer__lang .lang-switch__btn--active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ============================================================
   Responsive — Landing Redesign
   ============================================================ */

@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .about-layout__image {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }
  .section--mentor .mentor-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .mentor-layout__image {
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
  .hero-input-bar {
    max-width: 100%;
  }
  .hero-input-bar__textarea {
    font-size: 16px; /* iOS zoom prevention */
  }
  .hero-quick-actions {
    justify-content: center;
  }
  .hero-chip {
    font-size: var(--text-xs);
    padding: 6px 12px;
  }
  .about-layout__title {
    font-size: var(--text-3xl);
  }
  .mentor-layout__title {
    font-size: var(--text-3xl);
  }
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .process-step {
    padding: var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .demo-static__title {
    font-size: var(--text-3xl);
  }
}

@media (max-width: 480px) {
  .hero-input-bar__inner {
    padding: var(--space-2);
  }
  .hero-chip {
    font-size: 11px;
    padding: 5px 10px;
    gap: var(--space-1);
  }
  .hero-chip svg {
    width: 14px;
    height: 14px;
  }
  .about-layout__title {
    font-size: var(--text-2xl);
  }
  .about-layout__text {
    font-size: var(--text-base);
  }
  .mentor-layout__title {
    font-size: var(--text-2xl);
  }
  .mentor-layout__text {
    font-size: var(--text-base);
  }
  .process-step__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .demo-static__title {
    font-size: var(--text-2xl);
  }
}
