/* ==========================================================================
   VARIABLES & SETUP (Minimalist Tech/App Style)
   ========================================================================== */
:root {
    --color-primary: #2563EB; /* Trust Blue */
    --color-primary-hover: #1D4ED8;
    --color-secondary: #0F172A; /* Dark Slate */
    --color-accent: #F43F5E; /* Coral */
    
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --bg-dark: #0F172A;
    
    --text-main: #334155;
    --text-heading: #0F172A;
    --text-muted: #64748B;
    
    --border-color: #E2E8F0;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s ease;
}

/* ==========================================================================
   SYSTEM FIX: HIDE CITATIONS
   ========================================================================== */
.sys-hide {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-heading); line-height: 1.3; margin-bottom: 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -1px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.5px; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1.2rem; }

/* Utilities */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #FFF !important; }
.text-sm { font-size: 0.875rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.m-0 { margin: 0; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.opacity-80 { opacity: 0.8; }
.opacity-70 { opacity: 0.7; }
.opacity-50 { opacity: 0.5; }
.d-inline-block { display: inline-block; }

/* Colors & Backgrounds */
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }
.bg-white-transparent { background-color: rgba(255,255,255,0.05); }
.color-blue { color: var(--color-primary); }
.color-coral { color: var(--color-accent); }

/* Buttons */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem;
    padding: 12px 28px; border-radius: var(--radius-sm);
    text-decoration: none; cursor: pointer; transition: var(--transition);
    border: 2px solid transparent;
}
.btn-primary { background-color: var(--color-primary); color: #FFF; }
.btn-primary:hover { background-color: var(--color-primary-hover); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-secondary { background-color: var(--bg-light); color: var(--text-heading); border-color: var(--border-color); }
.btn-secondary:hover { background-color: var(--border-color); transform: translateY(-2px); }
.btn-outline { background-color: transparent; border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background-color: var(--color-primary); color: #FFF; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.app-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color); transition: var(--transition);
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.logo-img { height: 32px; display: block; }
.desktop-nav { display: flex; gap: 24px; }
.nav-item { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: var(--transition); }
.nav-item:hover, .nav-item.active { color: var(--color-primary); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 24px; height: 2px; background-color: var(--text-heading); transition: var(--transition); }
.mobile-menu { display: none; position: absolute; top: 76px; left: 0; width: 100%; background: #FFF; border-bottom: 1px solid var(--border-color); padding: 20px; flex-direction: column; gap: 15px; box-shadow: var(--shadow-soft); }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section { padding: 140px 0 80px; position: relative; overflow: hidden; }
.hero-section::before {
    content: ''; position: absolute; top: -10%; right: -5%; width: 40%; height: 60%;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%); z-index: -1;
}
.badge-trust { display: inline-block; padding: 6px 12px; background: var(--bg-light); color: var(--color-primary); font-size: 0.8rem; font-weight: 600; border-radius: 20px; margin-bottom: 16px; border: 1px solid var(--border-color); }
.hero-subtitle { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; }
.btn-group { display: flex; gap: 16px; }

/* Images & Cards */
.responsive-img { width: 100%; height: auto; display: block; border-radius: inherit; }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.radius-md { border-radius: var(--radius-md); }
.radius-lg { border-radius: var(--radius-lg); }
.radius-sm { border-radius: var(--radius-sm); }

.image-wrapper { position: relative; background: #FFF; padding: 8px; border: 1px solid var(--border-color); }

.card-white { background: #FFF; padding: 32px; border: 1px solid var(--border-color); }
.info-card { background: #FFF; padding: 24px; border-radius: var(--radius-md); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); transition: var(--transition); }
.info-card:hover { box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.icon-wrap { font-size: 2rem; margin-bottom: 16px; }

/* ==========================================================================
   SECTIONS & COMPONENTS
   ========================================================================== */
.section { padding: 90px 0; }

/* Lists */
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 16px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }

.numbered-list-modern { list-style: none; counter-reset: modern-counter; }
.numbered-list-modern li { position: relative; padding-left: 48px; margin-bottom: 20px; }
.numbered-list-modern li::before {
    counter-increment: modern-counter; content: counter(modern-counter);
    position: absolute; left: 0; top: -2px; width: 28px; height: 28px;
    background: var(--bg-light); border: 1px solid var(--border-color);
    color: var(--color-primary); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-family: var(--font-heading);
    font-weight: 700; font-size: 0.85rem;
}

/* Stepper */
.stepper-vertical { display: flex; flex-direction: column; gap: 24px; position: relative; }
.stepper-vertical::before { content: ''; position: absolute; left: 15px; top: 10px; bottom: 10px; width: 2px; background: var(--border-color); z-index: 0; }
.step-item { display: flex; gap: 24px; position: relative; z-index: 1; align-items: flex-start; }
.step-dot {
    width: 32px; height: 32px; flex-shrink: 0; background: var(--color-primary); color: #FFF;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 0 0 4px var(--bg-white);
}
.step-content { background: var(--bg-light); padding: 16px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border-color); width: 100%; }

/* Tables */
.table-responsive { overflow-x: auto; }
.clean-table { width: 100%; border-collapse: collapse; text-align: left; }
.clean-table th, .clean-table td { padding: 16px; border-bottom: 1px solid var(--border-color); }
.clean-table th { font-family: var(--font-heading); font-weight: 600; color: var(--text-heading); background-color: var(--bg-light); }
.table-dark th { background-color: rgba(0,0,0,0.2); color: #FFF; border-bottom-color: rgba(255,255,255,0.1); }
.table-dark td { border-bottom-color: rgba(255,255,255,0.1); }
.small-text th, .small-text td { font-size: 0.9rem; padding: 12px; }

/* Alerts */
.alert-box { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-sm); align-items: flex-start; }
.bg-blue-light { background-color: #EFF6FF; border: 1px solid #BFDBFE; }
.bg-coral-light { background-color: #FFF1F2; border: 1px solid #FECDD3; }
.alert-icon { font-size: 1.5rem; }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-card { background: #FFF; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; }
.accordion-header {
    padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    background: #FFF; transition: var(--transition);
}
.accordion-header h3 { margin: 0; font-size: 1.05rem; color: var(--text-heading); }
.toggle-icon { font-size: 1.5rem; color: var(--color-primary); transition: transform 0.3s ease; line-height: 1; }
.accordion-card.active .accordion-header { background: var(--bg-light); }
.accordion-card.active .toggle-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-body p { padding: 0 24px 24px; margin: 0; color: var(--text-muted); }

/* ==========================================================================
   FOOTER & COOKIE
   ========================================================================== */
.app-footer { background: var(--bg-dark); color: #FFF; padding: 64px 0 24px; }
.footer-logo { height: 28px; filter: brightness(0) invert(1); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #CBD5E1; text-decoration: none; transition: var(--transition); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-primary); }
.pb-4 { padding-bottom: 2rem; }
.border-bottom { border-bottom: 1px solid rgba(255,255,255,0.1); }
.badge-age, .badge-safe { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; border: 1px solid rgba(255,255,255,0.2); }
.badge-age { color: #F87171; border-color: #F87171; }

.cookie-popup {
    position: fixed; bottom: 24px; right: 24px; width: calc(100% - 48px); max-width: 400px;
    background: #FFF; border: 1px solid var(--border-color); border-radius: var(--radius-md);
    padding: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 16px;
    transform: translateY(150%); transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-popup.show { transform: translateY(0); }
.cookie-text strong { color: var(--text-heading); font-family: var(--font-heading); }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .btn-group { justify-content: center; }
    .grid-3 { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .stepper-vertical::before { left: 16px; }
}

@media (max-width: 768px) {
    .desktop-nav, .header-action { display: none; }
    .menu-toggle { display: flex; }
    .mobile-menu.active { display: flex; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn-group .btn { width: 100%; }
    .cookie-popup { right: 12px; bottom: 12px; width: calc(100% - 24px); }
    .table-responsive { border: 1px solid var(--border-color); border-radius: var(--radius-sm); }
}