/* ==========================================================================
   landing.css — Home page (index.html) | Alisa AI Bridge / Claude
   Builds on theme.css tokens & utility classes. Page-specific styles only.
   ========================================================================== */

/* ==========================================================================
   1. HERO
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

/* Soft warm glow behind the hero */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle at center,
              rgba(217, 119, 87, .18) 0%,
              rgba(232, 201, 160, .10) 38%,
              transparent 70%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__copy {
  max-width: 46rem;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  letter-spacing: -0.015em;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: italic;
  color: var(--clay);
}

.hero__lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 auto 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2rem;
  max-width: 42rem;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hero__meta li {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero__visual {
  position: relative;
}

/* Hero — Station Midi photo floats freely, no window/backdrop */
.hero-scene {
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Photo of the real Yandex Station Midi (orange), background removed */
.station-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Static — no movement. Image drives its own size (capped by max-height),
   container wraps it exactly so it never overflows onto the copy. */
.station-photo__img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(33, 30, 26, .20));
}

/* "Listening" glow pulsing behind the speaker's top */
.station-photo__glow {
  position: absolute;
  z-index: 0;
  top: 16%;
  left: 50%;
  width: 62%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at center,
              rgba(252, 63, 29, .45) 0%,
              rgba(217, 119, 87, .28) 38%,
              transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  animation: stGlow 3.4s ease-in-out infinite;
}

@keyframes stGlow {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.96); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .station-photo__img,
  .station-photo__glow { animation: none; }
}

/* ==========================================================================
   1b. CLAUDE SPARK WATERMARK (background, behind all content)
   ========================================================================== */

.bg-claude {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(52vw, 360px);
  height: min(52vw, 360px);
  transform: translate(-50%, -50%);
  color: var(--clay);
  opacity: 0;          /* driven by hero-scroll.js */
  z-index: 0;          /* above body background, below content */
  pointer-events: none;
  will-change: transform, opacity, clip-path;
}

.bg-claude svg {
  width: 100%;
  height: 100%;
}

/* Keep page content stacked above the watermark */
#main,
#site-footer {
  position: relative;
  z-index: 1;
}

/* Header wrapper must sit above #main so the mobile nav (fixed, inside the
   sticky header) overlays hero content instead of being trapped at z-index 1. */
#site-header {
  position: relative;
  z-index: 800;
}

/* ==========================================================================
   2. SHARED SECTION HEADERS / CTAs
   ========================================================================== */

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.section-head h2 {
  margin-bottom: 0.875rem;
}

.section-head p {
  margin-inline: auto;
  font-size: 1.0625rem;
}

.section-cta {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   3. ADVANTAGES
   ========================================================================== */

.advantages {
  gap: 1.5rem;
}

.advantage {
  padding: 1.75rem 1.5rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

.advantage:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--gold);
}

.advantage__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--clay-deep);
  background: rgba(217, 119, 87, .12);
}

.advantage__title {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   4. FEATURES
   ========================================================================== */

.features .card {
  display: flex;
  flex-direction: column;
}

.feature__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 1rem;
}

.features h3 {
  margin-bottom: 0.625rem;
}

.features p {
  font-size: 0.95rem;
}

/* ==========================================================================
   5. STEPS — How to connect
   ========================================================================== */

.steps {
  counter-reset: step;
  gap: 1.5rem;
}

.step {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: box-shadow var(--t), transform var(--t);
}

.step:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.125rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: var(--clay);
  box-shadow: 0 6px 18px rgba(217, 119, 87, .35);
}

.step h3 {
  margin-bottom: 0.5rem;
}

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

.step a {
  color: var(--clay-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--t);
}

.step a:hover {
  color: var(--clay);
}

/* ==========================================================================
   6. PRICING TEASER
   ========================================================================== */

.pricing {
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.pricing-card__badge {
  align-self: flex-start;
  margin-bottom: 0.875rem;
}

.pricing-card__name {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.pricing-card__desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.pricing-card__price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.pricing-card__period {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* Highlight the top tier */
.pricing-card--top {
  border-color: var(--clay);
  box-shadow: 0 14px 44px rgba(217, 119, 87, .18);
}

.pricing-card--top .pricing-card__amount {
  color: var(--clay-deep);
}

/* ==========================================================================
   7. FINAL CTA
   ========================================================================== */

.final-cta {
  position: relative;
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--r-lg);
  background:
    linear-gradient(160deg, var(--bg-warm) 0%, var(--surface) 100%);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}

.final-cta .wave-divider {
  margin-bottom: 1.5rem;
}

.final-cta h2 {
  margin-bottom: 0.875rem;
}

.final-cta p {
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1.0625rem;
}

.final-cta a[href^="https"] {
  color: var(--clay-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   8. RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .hero__copy {
    max-width: none;
  }
}

@media (max-width: 600px) {
  .hero__actions .btn,
  .final-cta__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .hero__meta {
    gap: 0.5rem 1.5rem;
  }
}

/* Блок тарифов на главной центрируем: карточек две, а сетка на всю ширину
   растягивала бы их до неуместных размеров и уводила от центра. */
.pricing--centered {
  justify-content: center;
  max-width: 720px;
  margin-inline: auto;
}

.pricing-card__note {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
