/* ========== PAGE LANDING REDESIGN ========== */

.page-landing {
  /* Google Fonts Custom Variables Override */
  --font-ui: "Manrope", sans-serif;
  --font-display: "Unbounded", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Custom Color Palette (Deep dark-violet & Violet/Purple) */
  --landing-bg: #110e2a;
  --landing-accent: #a855f7;
  --landing-accent-glow: rgba(168, 85, 247, 0.25);
  --landing-card-bg: rgba(23, 20, 51, 0.55);
  --landing-card-border: rgba(168, 85, 247, 0.16);
  --landing-card-border-hover: rgba(236, 72, 153, 0.4);
  --landing-text-muted: #9ca3af;
  --landing-text-bright: #f3f4f6;

  background: var(--landing-bg);
}

/* Base body background for landing */
body.page-landing {
  background: var(--landing-bg) !important;
}

/* Update glow and layers for landing */
.page-landing .bg-stars {
  opacity: 0.28;
}

.page-landing .bg-glow-a {
  background: radial-gradient(circle at 18% 15%, rgba(168, 85, 247, 0.22), transparent 42%);
}

.page-landing .bg-glow-b {
  background: radial-gradient(circle at 82% 80%, rgba(236, 72, 153, 0.16), transparent 45%);
}

.page-landing .bg-grid {
  background-image:
    linear-gradient(rgba(168, 85, 247, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 30%, black 50%, transparent 90%);
  opacity: 0.65;
}

/* Glassmorphic Topbar for Landing */
.page-landing .topbar {
  border-color: rgba(168, 85, 247, 0.18);
  background: rgba(17, 14, 42, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.page-landing .brand-mark {
  background: linear-gradient(135deg, var(--landing-accent), #ec4899);
  box-shadow: 0 0 12px var(--landing-accent-glow);
}

.page-landing .button {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-landing .button.primary {
  background: linear-gradient(135deg, var(--landing-accent), #8b5cf6);
  border-color: rgba(168, 85, 247, 0.4);
  color: #000000;
  box-shadow: 0 8px 20px var(--landing-accent-glow);
}

.page-landing .button.primary:hover {
  background: linear-gradient(135deg, #b55fe6, #906bf9);
  box-shadow: 0 12px 28px rgba(168, 85, 247, 0.4);
  transform: translateY(-2px);
}

.page-landing .button.ghost {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.05);
  color: var(--landing-text-bright);
}

.page-landing .button.ghost:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.5);
  transform: translateY(-2px);
}

/* Hero Section */
.landing-hero-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  top: -100px;
}

.hero-content-centered {
  position: relative;
  z-index: 1;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.landing-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  color: #d8b4fe;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-session-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.25);
  background: rgba(236, 72, 153, 0.06);
  color: #f472b6;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.landing-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-hero-title .title-primary {
  font-size: clamp(54px, 8vw, 92px);
  background: linear-gradient(135deg, #ffffff 30%, #e9d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-hero-title .title-secondary {
  font-size: clamp(24px, 3.8vw, 42px);
  background: linear-gradient(135deg, #d8b4fe 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  text-transform: lowercase;
}

.landing-hero-subtitle {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--landing-text-muted);
  line-height: 1.6;
  max-width: 68ch;
}

.landing-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.landing-hero-ctas .button {
  min-width: 200px;
}

/* Stats Strip */
.landing-stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 50px;
  padding: 16px 32px;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(17, 14, 42, 0.5);
  backdrop-filter: blur(8px);
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stats-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: #e9d5ff;
}

.stats-text {
  font-size: 14px;
  color: var(--landing-text-muted);
  text-transform: lowercase;
}

.stats-pill {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid var(--landing-accent-glow);
  letter-spacing: 0.04em;
}

.stats-separator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
}

/* Capabilities (Features) Section */
.landing-section {
  padding: 70px 0 30px;
}

.landing-section-head {
  text-align: center;
  margin-bottom: 44px;
}

.landing-section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin: 0 0 12px;
  background: linear-gradient(135deg, #ffffff, #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-section-subtitle {
  font-size: 16px;
  color: var(--landing-text-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

.landing-features-three-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-feature-big-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px;
  border-radius: 24px;
  background: var(--landing-card-bg);
  border: 1px solid var(--landing-card-border);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms ease, box-shadow 300ms ease;
}

.landing-feature-big-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.landing-feature-big-card:hover {
  transform: translateY(-6px);
  border-color: var(--landing-card-border-hover);
  box-shadow: 0 20px 40px rgba(168, 85, 247, 0.08);
}

.landing-feature-big-card:hover::before {
  background: linear-gradient(135deg, var(--landing-accent), #ec4899);
}

.card-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
  bottom: -40px;
  right: -40px;
  pointer-events: none;
  transition: transform 500ms ease;
}

.landing-feature-big-card:hover .card-glow {
  transform: scale(1.4);
}

.card-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #d8b4fe;
  margin-bottom: 24px;
  transition: background 300ms ease, color 300ms ease;
}

.landing-feature-big-card:hover .card-icon-wrapper {
  background: rgba(168, 85, 247, 0.2);
  color: #ffffff;
}

.card-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--landing-accent);
  margin-bottom: 8px;
}

.landing-feature-big-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
}

.landing-feature-big-card p {
  font-size: 14px;
  color: var(--landing-text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
  flex-grow: 1;
}

.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.card-pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.card-pill-soft {
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.12);
  color: #d8b4fe;
}

.card-action-btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  margin-top: auto;
  transition: color 200ms ease;
}

.card-action-btn::after {
  content: " →";
  transition: transform 200ms ease;
}

.card-action-btn:hover {
  color: var(--landing-accent);
}

.card-action-btn:hover::after {
  transform: translateX(4px);
}

/* Timeline / "Как начать" Section */
.timeline-container {
  position: relative;
  padding: 40px 0;
  margin-top: 20px;
}

.timeline-line {
  position: absolute;
  top: 72px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.05) 0%, rgba(168, 85, 247, 0.3) 50%, rgba(168, 85, 247, 0.05) 100%);
  z-index: 0;
}

.timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  padding: 0 16px;
}

.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #171433;
  border: 2px solid rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.1);
  margin-bottom: 20px;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

.timeline-step:hover .step-badge {
  border-color: var(--landing-accent);
  box-shadow: 0 0 24px var(--landing-accent-glow);
  transform: scale(1.08);
}

.step-number {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.step-text {
  font-size: 13px;
  color: var(--landing-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Big Bottom CTA block */
.landing-cta-block {
  position: relative;
  padding: 60px 40px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(23, 20, 51, 0.8) 0%, rgba(17, 14, 42, 0.9) 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.landing-cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1.5px;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.landing-cta-block h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #ffffff, #d8b4fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-cta-block p {
  position: relative;
  z-index: 1;
  font-size: 16px;
  color: var(--landing-text-muted);
  max-width: 60ch;
  line-height: 1.6;
  margin: 0;
}

.cta-buttons {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.cta-buttons .button {
  min-width: 200px;
}

/* Compact Links Footer */
.landing-footer {
  padding: 60px 0 30px;
  margin-top: 40px;
  border-top: 1px solid rgba(168, 85, 247, 0.1);
}

.footer-links-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 40px;
}

.footer-compact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.footer-compact-link:hover {
  background: rgba(168, 85, 247, 0.05);
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateY(-2px);
}

.link-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.link-note {
  font-size: 11px;
  color: var(--landing-text-muted);
  text-transform: lowercase;
}

.link-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #d8b4fe;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

.footer-credits-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--landing-text-muted);
  flex-wrap: wrap;
}

.developer-credit {
  font-weight: 500;
}

.footer-dot {
  color: rgba(168, 85, 247, 0.4);
}

/* Responsive Overrides and Animations */
@media (max-width: 1024px) {
  .landing-features-three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .landing-hero-container {
    padding: 60px 16px 40px;
  }
  
  .landing-stats-strip {
    flex-direction: column;
    padding: 20px;
    align-items: stretch;
    width: 100%;
    gap: 14px;
  }
  
  .stats-separator {
    width: 100%;
    height: 1px;
    border-radius: 0;
  }
  
  .stats-item {
    justify-content: center;
  }

  .landing-features-three-grid {
    grid-template-columns: 1fr;
  }

  .timeline-line {
    display: none;
  }
  
  .timeline-steps {
    flex-direction: column;
    gap: 32px;
  }
  
  .timeline-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0;
  }
  
  .step-badge {
    margin-bottom: 0;
    margin-right: 16px;
    flex-shrink: 0;
  }
  
  .landing-hero-ctas, .cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .landing-hero-ctas .button, .cta-buttons .button {
    width: 100%;
  }
}
