@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --emerald: #10B981;
  --bg-main: #F8FAFC;
  --text-dark: #0F172A;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Karaoke Subtitle Effect on Hero Title: мягкая волна с легким свечением */
.karaoke-char {
  color: #0F172A;
  display: inline-block;
  transition: color 0.15s ease, text-shadow 0.15s ease, transform 0.15s ease;
  will-change: transform, color, text-shadow;
}

.karaoke-char.karaoke-active {
  color: #10B981 !important;
  transform: translateY(-2px);
  text-shadow: 0 0 14px rgba(16, 185, 129, 0.55), 0 0 4px rgba(16, 185, 129, 0.35);
}

.karaoke-char.karaoke-final-green {
  color: #10B981 !important;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Bento Card with Spotlight & Depth */
.card-glass {
  position: relative;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}

.card-glass::before {
  content: '';
  position: absolute;
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0;
  background: radial-gradient(350px circle at var(--x, 50%) var(--y, 50%), rgba(37, 99, 235, 0.07), transparent 75%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.card-glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

.card-glass > * {
  position: relative;
  z-index: 2;
}

/* Primary Button Styling */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 14px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px 0 rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Badges */
.badge-emerald {
  display: inline-flex;
  align-items: center;
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Messenger Selector Buttons */
.messenger-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.messenger-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}

.messenger-btn.active {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border-color: #2563EB !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Form Inputs */
input, select, textarea {
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Native Dialog */
dialog:modal {
  overscroll-behavior: contain;
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 90vw;
  width: 480px;
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overscroll-behavior: contain;
}

/* FAQ Accordion Styling */
.faq-item {
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, color 0.2s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background-color: #EFF6FF;
  color: var(--primary);
}

.faq-content {
  display: none;
  animation: faqFadeIn 0.25s ease-out;
}

.faq-item.active .faq-content {
  display: block;
}

@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

