/* =========================================================
   Ravonte — Indigo Slate template (unified)
   Cool white base, dark-slate bands, indigo accent, Manrope
   Covers homepage + inner-page class systems
   ========================================================= */

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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #1e2233;
    --accent-color: #6366f1;
    --highlight-color: #6366f1;
    --bg-color: #f5f6fb;
    --surface: #ffffff;
    --card-bg: #ffffff;
    --text-color: #1b2030;
    --text-muted: #5b6473;
    --border-color: #e5e8f0;
    --border-strong: rgba(99, 102, 241, 0.4);
    --font-primary: 'Manrope', system-ui, sans-serif;
    --font-secondary: 'Inter', system-ui, sans-serif;
    --max-width: 1180px;
    --section-padding: 66px 0;
    --card-padding: 26px;
    --radius: 14px;
    --radius-sm: 10px;
    --transition: all 0.25s ease;
    --grad: linear-gradient(120deg, #818cf8 0%, #6366f1 100%);
    --shadow: 0 22px 46px -24px rgba(30, 34, 51, 0.28);
    --shadow-sm: 0 10px 26px -16px rgba(30, 34, 51, 0.22);
    --nav-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body, body.dark-theme {
    font-family: var(--font-secondary);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-primary); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--text-color); }
a { color: var(--primary-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-color); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(99,102,241,0.22); color: var(--secondary-color); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #e7e9f2; }
::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 20px; border: 3px solid #e7e9f2; }

/* =========================================================
   HEADER
   ========================================================= */
header, .sticky-header {
    position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(245, 246, 251, 0.86);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}
header .container, .sticky-header .container, .header-container {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
    max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-icon { height: 36px; width: auto; }
.logo-text { font-family: var(--font-primary); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--secondary-color); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; background: var(--secondary-color); color: #fff; text-align: center; padding: 74px 0 66px; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -130px; left: 50%; transform: translateX(-50%); width: 660px; height: 360px; background: radial-gradient(circle, rgba(99,102,241,0.4), transparent 65%); filter: blur(20px); }
.hero .container { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); color: #fff; margin-bottom: 20px; }
.hero h1::after { content: ""; display: block; width: 88px; height: 4px; margin: 20px auto 0; background: var(--grad); border-radius: 4px; }
.hero p { color: #c3c7db; font-size: clamp(1rem, 1.6vw, 1.16rem); max-width: 720px; margin: 0 auto; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary, .btn, .btn-secondary, .btn-highlight {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-primary); font-weight: 700; font-size: 0.95rem;
    padding: 13px 26px; border-radius: 999px; cursor: pointer; border: 1px solid transparent; transition: var(--transition); text-align: center;
}
.btn-primary, .btn.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -12px rgba(99,102,241,0.7); }
.btn-primary:hover, .btn.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(99,102,241,0.85); }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-highlight { background: var(--grad); color: #fff; }
.btn-highlight:hover { transform: translateY(-2px); color: #fff; }

/* =========================================================
   RANKING (homepage)
   ========================================================= */
.ranking { padding: 60px 0 40px; }
.ranking > h3 { text-align: center; font-size: 1.9rem !important; margin-bottom: 34px !important; color: var(--text-color); }
.ranking .container { display: flex; flex-direction: column; gap: 22px; }

.ranking-card {
    position: relative; display: grid; grid-template-columns: 60px 150px 1fr auto; align-items: center; gap: 28px;
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 26px 30px;
    box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.ranking-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(99,102,241,0.4); }
.ranking-card.featured { border-color: var(--primary-color); box-shadow: 0 0 0 1px var(--primary-color) inset, var(--shadow-sm); }
.rank-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; font-family: var(--font-primary); font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--grad); }
.ranking-card:not(.featured) .rank-badge { background: rgba(99,102,241,0.12); color: var(--primary-dark); }
.card-logo img { max-width: 130px; max-height: 66px; width: auto; object-fit: contain; }
.card-info { min-width: 0; }
.card-info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.description { color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }
.rating-bar-container { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; max-width: 340px; }
.rating-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-dark); background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.3); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.rating-bar { flex: 1; height: 8px; background: #e7e9f2; border-radius: 999px; overflow: hidden; }
.rating-fill { height: 100%; background: var(--grad); border-radius: 999px; transition: width 1.1s var(--ease); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-tags li { font-size: 0.78rem; color: var(--text-muted); background: #eef0f8; border: 1px solid var(--border-color); padding: 5px 12px; border-radius: 999px; }
.card-cta { display: flex; }
.card-cta .btn-primary { white-space: nowrap; }

/* =========================================================
   REGULATION (homepage)
   ========================================================= */
.regulation { padding: var(--section-padding); }
.regulation .container { max-width: 900px; }
.regulation h2 { text-align: center; font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 26px; }
.regulation-content { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.regulation-content p { color: var(--text-muted); margin-bottom: 15px; }
.regulation-content ul { margin: 8px 0 18px; }
.regulation-content li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text-muted); }
.regulation-content li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: rgba(99,102,241,0.14); color: var(--primary-dark); font-size: 0.72rem; font-weight: 700; }

/* =========================================================
   FAQ / ACCORDION (homepage)
   ========================================================= */
.faq { padding: var(--section-padding); }
.faq .container { max-width: 860px; }
.faq h2 { text-align: center; font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 34px; }
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s; }
.accordion-item.active { border-color: var(--primary-color); box-shadow: var(--shadow-sm); }
.accordion-header {
    width: 100%; text-align: left; background: none; border: none; cursor: pointer;
    font-family: var(--font-primary); font-weight: 700; font-size: 1rem; color: var(--text-color);
    padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.accordion-header .icon { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(99,102,241,0.12); color: var(--primary-dark); font-weight: 700; font-size: 1.1rem; }
.accordion-item.active .accordion-header .icon { background: var(--grad); color: #fff; }
.accordion-body { display: none; padding: 0 24px 22px; }
.accordion-body p { color: var(--text-muted); }
.accordion > p { margin-top: 22px; font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; }
.accordion > p a { color: var(--primary-dark) !important; }

/* =========================================================
   CARDS (inner pages) + generic
   ========================================================= */
.card {
    background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: var(--card-padding);
    box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { color: var(--text-color); }
.card p { color: var(--text-muted); }
.card a.btn { margin-top: auto; }
section p a, .container p a { color: var(--primary-dark); }

/* =========================================================
   FOOTER (shared, dark slate)
   ========================================================= */
.main-footer { background: var(--secondary-color); color: #b8bed2; padding: 52px 0 30px; margin-top: 60px; }
.main-footer .container { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer-row { width: 100%; display: flex; justify-content: center; }
.footer-row.row-1 h3 { color: #fff; font-size: 1.3rem; }
.footer-row.row-1 h3 a { color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; align-items: center; }
.footer-nav a { color: #c6cbdd; font-size: 0.92rem; }
.footer-nav a:hover { color: #a5b0ff; }
.footer-nav span { color: rgba(255,255,255,0.2); }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; }
.trust-logos img { height: 46px; width: auto; opacity: 0.85; filter: grayscale(0.2) brightness(1.1); transition: var(--transition); }
.trust-logos img:hover { opacity: 1; filter: none; }
.trustpilot { color: #c6cbdd; font-weight: 600; }
.trustpilot .star, .trustpilot .stars { color: #a5b0ff; letter-spacing: 2px; }
.disclaimer { color: #7f88a2; font-size: 0.8rem; max-width: 900px; margin: 0 auto; line-height: 1.7; }

/* =========================================================
   POPUPS (age) — JS toggles display:flex
   ========================================================= */
.popup-overlay { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(30, 34, 51, 0.55); backdrop-filter: blur(5px); }
.popup-content { width: 100%; max-width: 420px; background: var(--surface); border-radius: var(--radius); padding: 34px; text-align: center; box-shadow: var(--shadow); }
.popup-content h2 { font-size: 1.5rem; margin-bottom: 12px; }
.popup-content p { color: var(--text-muted); margin-bottom: 22px; }
.popup-buttons { display: flex; flex-direction: column; gap: 12px; }
.popup-buttons .btn-secondary { color: var(--text-muted); border-color: var(--border-color); }
.popup-buttons .btn-secondary:hover { background: #f1f2f8; color: var(--text-color); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
    .ranking-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 14px; padding: 30px 22px; }
    .rating-bar-container { max-width: 100%; width: 100%; justify-content: center; }
    .feature-tags { justify-content: center; }
    .card-cta, .card-cta .btn-primary { width: 100%; }
}
@media (max-width: 768px) {
    .footer-nav { gap: 8px 14px; }
    .footer-nav span { display: none; }
    .regulation-content { padding: 28px 20px; }
    .hero { padding: 54px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
