/* ================================================================
   LANDING.CSS — Новый дизайн лэндинга Hotel Intelligence
   Загружается после style.css и переопределяет нужные стили
   ================================================================ */

/* ===== DESIGN TOKENS ===== */
:root {
  --bg-0: #080c18;
  --bg-1: #0d1220;
  --bg-2: #111827;
  --bg-3: #1a2235;
  --surface: #1e2a3d;
  --surface-2: #243047;
  --border: rgba(255,255,255,0.07);
  --border-accent: rgba(99,102,241,0.3);

  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --indigo-dark: #4f46e5;
  --pink: #ec4899;
  --pink-light: #f472b6;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --green: #10b981;

  --text-0: #f8fafc;
  --text-1: #cbd5e1;
  --text-2: #64748b;
  --text-3: #475569;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE OVERRIDES ===== */
body {
  background: var(--bg-0);
  color: var(--text-0);
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  /* Reset gradient from style.css — применяется отдельно в .hero h1 */
  background: none;
  -webkit-text-fill-color: var(--text-0);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-0);
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-0);
}

p { color: var(--text-1); line-height: 1.7; }
a { color: var(--indigo-light); }

/* Container */
.container { max-width: 1160px; }

/* Section */
.section { padding: 6rem 0; }

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--indigo-light);
}

/* Section title — override centered alignment from style.css */
.section-title {
  margin-bottom: 3rem;
  text-align: left;
}
.section-title h2 { margin-bottom: 0.75rem; }
.section-title p {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0;
}

/* ===== BUTTONS ===== */
/* Убираем shimmer-эффект из style.css */
.btn::before { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  position: relative;
  overflow: visible;
}

.btn-primary {
  background: var(--indigo);
  color: white;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--indigo-dark);
  box-shadow: 0 0 24px rgba(99,102,241,0.4);
  transform: translateY(-1px);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover {
  border-color: var(--indigo-light);
  color: var(--indigo-light);
  transform: translateY(-1px);
  background: transparent;
}

.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* ===== ICON BOXES ===== */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg { width: 24px; height: 24px; }
.icon-indigo { background: rgba(99,102,241,0.15); }
.icon-pink   { background: rgba(236,72,153,0.15); }
.icon-teal   { background: rgba(20,184,166,0.15); }
.icon-amber  { background: rgba(245,158,11,0.15); }
.icon-green  { background: rgba(16,185,129,0.15); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  background: linear-gradient(160deg, var(--bg-0) 0%, #0a0f1e 60%, var(--bg-1) 100%);
}
/* Убираем псевдоэлементы hero из style.css */
.hero::before { display: none; }
.hero::after  { display: none; }

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-glow-1 {
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 65%);
}
.hero-glow-2 {
  bottom: -20%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 65%);
}

/* Звёзды — генерируются через effects.js */
.stars-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 780px;
  width: 100%;
  padding: 0 1.5rem;
  animation: fadeUp 0.7s var(--ease) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 30%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-2);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ===== CARD — переопределяем из style.css ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
/* Убираем gradient-border ::before из style.css */
.card::before { display: none; }
.card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(99,102,241,0.1);
  transform: translateY(-3px);
}
/* Corner glow on hover */
.card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top left, rgba(99,102,241,0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* Декоративные мини-графики в карточках */
.card-chart {
  position: absolute;
  bottom: 1rem; right: 1rem;
  opacity: 0.18;
  pointer-events: none;
  transition: opacity 0.25s;
}
.card:hover .card-chart { opacity: 0.35; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== SECTION BACKGROUNDS ===== */
.bg-0 { background: var(--bg-0); }
.bg-1 { background: var(--bg-1); }
.bg-2 { background: var(--bg-2); }

/* Accent line on section top edge */
.section-glow { position: relative; }
.section-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 480px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.22), transparent);
  pointer-events: none;
}

/* ===== SECTION 2: NAIL ===== */
.nail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.nail-col {
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--border);
}
.nail-col-muted {
  background: var(--bg-2);
  opacity: 0.82;
}
.nail-col-accent {
  background: var(--surface);
  border-color: rgba(99,102,241,0.35);
  box-shadow: 0 0 40px rgba(99,102,241,0.08);
}
.nail-col .icon-box { margin-bottom: 1.25rem; }
.nail-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-0);
}
.nail-col p { font-size: 1rem; color: var(--text-1); margin-bottom: 0.75rem; }
.nail-col em { color: var(--text-2); font-style: italic; }

.nail-bridge {
  max-width: 680px;
  margin: 2.5rem auto 0;
  text-align: center;
}
.nail-bridge p { color: var(--text-2); font-size: 1rem; line-height: 1.8; margin-bottom: 0.75rem; }

.bridge-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.bridge-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  transition: background 0.25s var(--ease);
  position: relative;
}
.bridge-card:last-child { border-right: none; }
.bridge-card:hover { background: var(--surface-2); }
/* Top accent lines */
.bridge-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.25s;
}
.bridge-card:nth-child(1)::before { background: linear-gradient(90deg, var(--indigo), var(--indigo-light)); }
.bridge-card:nth-child(2)::before { background: linear-gradient(90deg, var(--pink), var(--pink-light)); }
.bridge-card:nth-child(3)::before { background: linear-gradient(90deg, var(--teal), #5eead4); }
.bridge-card:hover::before { opacity: 1; }

.bridge-card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.bridge-card-title {
  font-size: 1rem; font-weight: 700; color: var(--text-0);
  margin-bottom: 0.625rem;
}
.bridge-card-text {
  font-size: 0.9rem; color: var(--text-2); line-height: 1.65;
}

/* ===== SECTION 3: SCENARIOS ===== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.scenario-card { display: flex; flex-direction: column; }
.scenario-card .card-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem;
}
.scenario-card h3 { font-size: 1rem; padding-top: 0.25rem; }
.scenario-card p { font-size: 0.925rem; color: var(--text-1); margin-bottom: 0.5rem; }
.scenario-card .conclusion {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem; font-style: italic; color: var(--indigo-light);
}

/* ===== SECTION 4: DEMO ===== */
.demo-frame {
  border-radius: var(--r-xl);
  border: 1px solid var(--border-accent);
  background: var(--surface);
  overflow: hidden;
  max-width: 860px;
  margin: 2.5rem auto 0;
  box-shadow: 0 0 60px rgba(99,102,241,0.08);
  transition: box-shadow 0.3s, transform 0.3s var(--ease);
}
.demo-frame:hover {
  box-shadow: 0 0 80px rgba(99,102,241,0.16);
  transform: translateY(-4px);
}
.demo-frame-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot-r { background: #ff5f57; }
.demo-dot-y { background: #febc2e; }
.demo-dot-g { background: #28c840; }
.demo-frame-title {
  font-size: 0.8rem; color: var(--text-3);
  margin-left: auto; margin-right: auto;
  font-family: 'SF Mono', 'Monaco', monospace;
}
.demo-inner {
  padding: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 1rem;
  min-height: 220px; text-align: center;
}
.demo-inner p { color: var(--text-2); font-size: 0.95rem; }
.demo-mock {
  width: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  padding: 0 0 1rem;
}
.demo-metric {
  background: var(--bg-3);
  border-radius: var(--r-md);
  padding: 1rem;
  border: 1px solid var(--border);
}
.demo-metric-label {
  font-size: 0.7rem; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}
.demo-metric-value {
  font-size: 1.5rem; font-weight: 700; color: var(--text-0);
  margin-bottom: 0.25rem;
}
.demo-metric-sub { font-size: 0.75rem; color: var(--text-3); }
.demo-metric.accent .demo-metric-value { color: var(--indigo-light); }
.demo-cta { margin-top: 0.5rem; }

/* ===== SECTION 5: FEATURES / QUESTIONS ===== */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.question-card { display: flex; flex-direction: column; min-height: 260px; }
.question-card .card-header {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1rem;
}
.question-title {
  font-size: 0.95rem; font-weight: 700;
  color: var(--indigo-light);
  margin-bottom: 0; padding-top: 0.25rem;
}
.question-card p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.question-note {
  margin-top: auto;
  padding-top: 0.875rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-3); font-style: italic;
}

/* ===== SECTION 6: DIFF ===== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
/* Убираем gradient-border из style.css для diff-card */
.diff-card::before { display: none; }
.diff-card:hover {
  border-color: rgba(99,102,241,0.3);
  transform: translateY(-2px);
}
.diff-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.diff-icon-indigo { background: rgba(99,102,241,0.12); }
.diff-icon-pink   { background: rgba(236,72,153,0.12); }
.diff-icon-teal   { background: rgba(20,184,166,0.12); }
.diff-card h3 { font-size: 1.05rem; margin-bottom: 0.75rem; color: var(--text-0); }
.diff-card p { font-size: 0.9rem; color: var(--text-1); line-height: 1.75; }
.diff-formula {
  display: block;
  font-family: 'SF Mono','Monaco','Courier New',monospace;
  font-size: 0.75rem;
  background: var(--bg-0);
  color: var(--indigo-light);
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-sm);
  margin: 0.625rem 0;
  word-break: break-all;
}

/* ===== SECTION 7: PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
  position: relative;
}
/* Убираем gradient-border из style.css; overflow: visible нужен для бейджа «Популярный» */
.pricing-card::before { display: none; }
.pricing-card { overflow: visible; }
.pricing-card:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transform: translateY(-3px);
}
.pricing-card.popular {
  border-color: var(--indigo);
  box-shadow: 0 0 0 1px var(--indigo), 0 12px 40px rgba(99,102,241,0.2);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: white;
  padding: 0.25rem 0.875rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.pricing-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.pricing-desc { font-size: 0.875rem; color: var(--text-2); margin-bottom: 1.5rem; min-height: 40px; }
.pricing-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.625rem;
  margin-bottom: 2rem; flex-grow: 1;
  padding: 0;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 0.625rem;
  font-size: 0.875rem; color: var(--text-1);
}
.pricing-features li::before {
  content: '';
  display: block;
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0; margin-top: 2px;
  background: rgba(16,185,129,0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%2310b981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") no-repeat center;
}
.pricing-divider { height: 1px; background: var(--border); margin-bottom: 1.5rem; }
.pricing-price {
  font-size: 2.5rem; font-weight: 800; color: var(--text-0); margin-bottom: 0.25rem;
}
.pricing-period { font-size: 0.8rem; color: var(--text-3); display: block; margin-bottom: 1.25rem; }
.pricing-card .btn { width: 100%; justify-content: center; }
.feature-new {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: rgba(99,102,241,0.15); color: var(--indigo-light);
  padding: 0.15rem 0.4rem; border-radius: 4px;
  margin-left: 0.25rem; vertical-align: middle;
}

/* ===== SECTION 8: FAQ ===== */
.faq-list { max-width: 780px; margin: 2.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-btn {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.125rem 0;
  background: transparent; border: none;
  color: var(--text-0); font-size: 0.975rem; font-weight: 600;
  cursor: pointer; text-align: left;
  transition: color 0.2s;
}
.faq-btn:hover { color: var(--indigo-light); }
.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem; color: var(--text-3);
  transition: transform 0.3s, border-color 0.2s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--indigo-light);
  color: var(--indigo-light);
}
.faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s var(--ease);
}
.faq-body-inner { padding: 0 0 1.25rem; }
.faq-body-inner p { font-size: 0.925rem; color: var(--text-2); line-height: 1.75; }
.faq-body-inner a { color: var(--indigo-light); text-decoration: underline; }

/* ===== SECTION 9: FINAL CTA ===== */
.final-cta {
  padding: 8rem 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.13) 0%, rgba(236,72,153,0.05) 50%, transparent 70%);
}
.final-cta h2 { margin-bottom: 1rem; }
.final-cta p {
  color: var(--text-2); font-size: 1.05rem;
  max-width: 520px; margin: 0 auto 2.5rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nail-grid        { grid-template-columns: 1fr; }
  .scenarios-grid   { grid-template-columns: 1fr; }
  .questions-grid   { grid-template-columns: 1fr; }
  .diff-grid        { grid-template-columns: 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .diff-card        { padding: 1.5rem; }
}

@media (max-width: 700px) {
  .bridge-cards { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .bridge-card { border-right: none; border-bottom: 1px solid var(--border); }
  .bridge-card:last-child { border-bottom: none; }
  .demo-mock { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .final-cta { padding: 5rem 0; }
}
