/* ============================================= */
/* BASE RESET                                    */
/* ============================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
}

/* ============================================= */
/* INTL-TEL-INPUT OVERRIDES                      */
/* ============================================= */
.iti { width: 100%; }
.iti__tel-input {
  width: 100%;
  height: 56px;
  padding: 0 18px 0 52px;
  font-size: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.iti__tel-input:focus {
  border-color: #4c6ef5;
  box-shadow: 0 0 0 3px rgba(76,110,245,.12);
}
.iti__tel-input::placeholder { color: #94a3b8; }
.iti__country-container { border-radius: 14px 0 0 14px; }
.iti__selected-country {
  background: transparent !important;
  border-radius: 14px 0 0 14px;
}
.iti__dropdown-content {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 40px rgba(0,0,0,.1) !important;
}
.iti__search-input {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}
.iti__country {
  color: #1e293b !important;
  padding: 8px 12px !important;
}
.iti__country:hover,
.iti__country--highlight {
  background: rgba(76,110,245,.08) !important;
}
.iti__dial-code { color: #64748b !important; }

/* ============================================= */
/* REVEAL ANIMATIONS                             */
/* ============================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }
[data-reveal="delay-1"] { transition-delay: .1s; }
[data-reveal="delay-2"] { transition-delay: .2s; }
[data-reveal="delay-3"] { transition-delay: .3s; }
[data-reveal="delay-4"] { transition-delay: .4s; }

/* ============================================= */
/* GLOW CTA                                      */
/* ============================================= */
@keyframes glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(76,110,245,.3); }
  50% { box-shadow: 0 4px 40px rgba(76,110,245,.5); }
}
.glow-pulse { animation: glow 2.4s ease-in-out infinite; }

/* ============================================= */
/* LIVE DOT                                      */
/* ============================================= */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: blink 1.6s ease-in-out infinite;
}

/* ============================================= */
/* HERO BACKGROUND                               */
/* ============================================= */
.hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(76,110,245,.08), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99,102,241,.05), transparent 50%),
    linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
}

/* ============================================= */
/* DECORATIVE BLOBS                              */
/* ============================================= */
.blob-blue {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(76,110,245,.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.blob-purple {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ============================================= */
/* CARD — modern light                           */
/* ============================================= */
.card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.03);
  transition: all .4s cubic-bezier(.16,1,.3,1);
}
.card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* ============================================= */
/* GLASS — light mode                            */
/* ============================================= */
.glass {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.03);
}

/* ============================================= */
/* CASE CARDS                                    */
/* ============================================= */
.case-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 4px 20px rgba(0,0,0,.03);
  transition: all .4s cubic-bezier(.16,1,.3,1);
  height: auto;
}
.case-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.swiper-slide { height: auto !important; }

/* ============================================= */
/* QUIZ                                          */
/* ============================================= */
.quiz-option {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all .3s ease;
  cursor: pointer;
}
.quiz-option:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}
.quiz-option.selected {
  background: #eef2ff;
  border-color: #4c6ef5;
  box-shadow: 0 0 0 3px rgba(76,110,245,.12);
}
.quiz-bar { transition: width .7s cubic-bezier(.16,1,.3,1); }
.result-bar { transition: width 1.4s cubic-bezier(.16,1,.3,1); }

/* ============================================= */
/* FAQ                                           */
/* ============================================= */
.faq-btn { transition: background .2s ease; }
.faq-btn:hover { background: #f8fafc; }
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-content.open { padding-bottom: 20px; }
.faq-icon { transition: transform .3s ease; }

/* ============================================= */
/* SCROLL PROGRESS                               */
/* ============================================= */
#scrollProgress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4c6ef5, #818cf8);
  z-index: 100;
  transition: width .15s linear;
}

/* ============================================= */
/* COOKIE BANNER                                 */
/* ============================================= */
.cookie-wrap {
  transform: translateY(110%);
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.cookie-wrap.show { transform: translateY(0); }

/* ============================================= */
/* TICKER                                        */
/* ============================================= */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track { animation: ticker 40s linear infinite; }

/* ============================================= */
/* INPUT BASE                                    */
/* ============================================= */
.input-base {
  width: 100%; height: 56px;
  padding: 0 18px; font-size: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #1e293b; outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}
.input-base:focus {
  border-color: #4c6ef5;
  box-shadow: 0 0 0 3px rgba(76,110,245,.12);
}
.input-base::placeholder { color: #94a3b8; }
select.input-base {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
select.input-base option { background: #fff; color: #1e293b; }

/* ============================================= */
/* SWIPER OVERRIDES                              */
/* ============================================= */
.cases-swiper { overflow: hidden !important; padding-bottom: 40px !important; }
.swiper-pagination-bullet {
  background: #cbd5e1 !important;
  opacity: 1 !important;
}
.swiper-pagination-bullet-active {
  background: #4c6ef5 !important;
  width: 24px !important;
  border-radius: 4px !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: #4c6ef5 !important;
  background: #fff;
  width: 44px !important; height: 44px !important;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  top: 50% !important;
}
.swiper-button-next:after,
.swiper-button-prev:after { font-size: 16px !important; font-weight: bold; }
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #eef2ff;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* ============================================= */
/* STAT                                          */
/* ============================================= */
.stat-num { font-variant-numeric: tabular-nums; }

/* ============================================= */
/* SECTION DIVIDER                               */
/* ============================================= */
.section-alt {
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eeff 50%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem !important; line-height: 1.15 !important; }
  .hero-sub { font-size: 1rem !important; }
  .nav-cta { display: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .swiper-button-next,
  .swiper-button-prev { display: none !important; }

  /* Performance: disable heavy effects on mobile */
  .blob-blue, .blob-purple { display: none !important; }
  .glass, .nav-scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(255,255,255,.95) !important;
  }
  .glow-pulse { animation: none !important; box-shadow: 0 4px 20px rgba(76,110,245,.3) !important; }
  .card:hover, .case-card:hover { transform: none !important; }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .ticker-track { animation-duration: 60s !important; }
  #scrollProgress { display: none !important; }
}
@media (max-width: 380px) {
  .hero-title { font-size: 1.65rem !important; }
}
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .cookie-wrap { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* ============================================= */
/* SCROLLBAR                                     */
/* ============================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Hide scrollbar for horizontal swipe sections */
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* ============================================= */
/* LEGAL MODAL                                   */
/* ============================================= */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-modal { animation: modalIn .35s cubic-bezier(.16,1,.3,1); }
.legal-content h4 {
  font-size: 15px; font-weight: 700; color: #1e293b;
  margin: 20px 0 8px;
}
.legal-content h4:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 10px; }
.legal-content ul {
  list-style: disc; padding-left: 20px; margin-bottom: 10px;
}
.legal-content ul li { margin-bottom: 4px; }

/* ============================================= */
/* COMMUNITY CHAT                                */
/* ============================================= */
.chat-msg {
  display: flex; gap: 10px; padding: 10px 8px;
  border-radius: 12px; transition: background .2s;
}
.chat-msg:hover { background: #f8fafc; }
.chat-blur-overlay { position: relative; overflow: hidden; }
@keyframes typingDots {
  0%, 60%, 100% { opacity: .3; }
  30% { opacity: 1; }
}
.typing-dots::after {
  content: '...';
  animation: typingDots 1.4s ease-in-out infinite;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-msg-new { animation: chatFadeIn .4s ease-out; }

/* ============================================= */
/* NAVBAR SCROLLED                               */
/* ============================================= */
.nav-scrolled {
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.6);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
