/* ============================================================
   DO IT FAST IT — Premium Design System v2.0
   ============================================================ */

/* ── 1. DESIGN TOKENS ─────────────────────────────────────── */
:root {
    --primary: #6366F1;
    --primary-hover: #4F46E5;
    --primary-rgb: 99, 102, 241;
    --secondary: #10B981;
    --secondary-rgb: 16, 185, 129;
    --accent: #0EA5E9;
    --accent-rgb: 14, 165, 233;
    --purple: #A855F7;
    --purple-rgb: 168, 85, 247;

    --gradient-primary: linear-gradient(135deg, #6366F1, #0EA5E9);
    --gradient-hero: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #0EA5E9 100%);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    --r-sm: 0.5rem;
    --r-md: 0.75rem;
    --r-lg: 1rem;
    --r-xl: 1.5rem;
    --r-2xl: 2rem;
    --r-3xl: 3rem;

    --ease-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── 2. LIGHT THEME ──────────────────────────────────────── */
[data-theme="light"] {
    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --text: #0F172A;
    --text-muted: #64748B;
    --text-faint: #94A3B8;
    --card-bg: #FFFFFF;
    --card-alt: #F8FAFC;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --header-bg: rgba(248, 250, 252, 0.88);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.10);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.12);
    --shadow-glow-hover: 0 0 60px rgba(99, 102, 241, 0.22);
}

/* ── 3. DARK THEME ───────────────────────────────────────── */
[data-theme="dark"] {
    --bg: #030712;
    --bg-alt: #0F172A;
    --text: #F8FAFC;
    --text-muted: #94A3B8;
    --text-faint: #475569;
    --card-bg: #0F172A;
    --card-alt: #1E293B;
    --border: #1E293B;
    --border-strong: #334155;
    --header-bg: rgba(3, 7, 18, 0.90);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.30);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.40);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.50);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.20);
    --shadow-glow-hover: 0 0 60px rgba(99, 102, 241, 0.35);
}

/* ── 4. BASE RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    transition: background-color var(--ease-slow), color var(--ease-slow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    line-height: 1.6;
}

[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(99,102,241,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(14,165,233,0.05) 0%, transparent 55%);
}

[data-theme="light"] body {
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(99,102,241,0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(14,165,233,0.03) 0%, transparent 55%);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── 5. UTILITIES ────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 0.375rem 1rem;
    border-radius: 2rem;
}

.section-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: pulse-dot 2s infinite;
}

/* ── 6. GLASS / HEADER ───────────────────────────────────── */
.glass {
    background: var(--header-bg) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

/* ── 7. LOGO & BRANDING ──────────────────────────────────── */
.logo-box {
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0,0,0,0.04);
    padding: 6px;
    transition: all var(--ease-spring);
    flex-shrink: 0;
}

[data-theme="dark"] .logo-box {
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3), 0 0 0 1px rgba(var(--primary-rgb), 0.15);
}

.logo-link:hover .logo-box {
    transform: scale(1.07) rotate(-3deg);
    box-shadow: var(--shadow-glow-hover);
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--text);
    white-space: nowrap;
}

/* ── 8. NAV LINKS ────────────────────────────────────────── */
.nav-link {
    position: relative;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--ease-base);
    font-size: 0.9375rem;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width var(--ease-base);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--primary); }
.nav-link.active::after { width: 100%; }

/* ── 9. THEME TOGGLE ─────────────────────────────────────── */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--card-bg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--ease-base);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(20deg) scale(1.05);
}

/* ── 10. BUTTONS ─────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--ease-spring);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(var(--primary-rgb), 0.45);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1.5px solid var(--border);
    transition: all var(--ease-base);
    cursor: pointer;
    white-space: nowrap;
    justify-content: center;
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
}

/* ── 11. CARDS ───────────────────────────────────────────── */
.premium-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    transition: all var(--ease-base);
    position: relative;
}

.premium-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 1.5rem 2rem;
    text-align: center;
    transition: all var(--ease-base);
}

.stat-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.375rem;
    display: block;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 2rem;
    transition: all var(--ease-base);
}

.testimonial-card:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ── 12. FORMS ───────────────────────────────────────────── */
.form-input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 0.875rem 1rem;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: all var(--ease-base);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-input::placeholder { color: var(--text-faint); }

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* ── 13. HERO ────────────────────────────────────────────── */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.14) 0%, transparent 70%);
    top: -250px;
    left: -250px;
    animation: float 10s ease-in-out infinite;
}

.hero-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.10) 0%, transparent 70%);
    bottom: -200px;
    right: -200px;
    animation: float 12s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--purple-rgb), 0.10) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
    animation-delay: -3s;
}

/* ── 14. STEP (HOW IT WORKS) ─────────────────────────────── */
.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-weight: 900;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.4);
}

/* ── 15. COOKIE CONSENT ──────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    z-index: 9999;
    width: calc(100% - 2rem);
    max-width: 680px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(var(--primary-rgb), 0.08);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
}

.cookie-banner.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.cookie-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-btn-reject {
    padding: 0.5rem 1rem;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    transition: all var(--ease-base);
}

.cookie-btn-reject:hover {
    border-color: var(--border-strong);
    color: var(--text);
}

.cookie-btn-accept {
    padding: 0.5rem 1.25rem;
    border-radius: var(--r-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: var(--primary);
    color: white;
    transition: all var(--ease-base);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.35);
}

.cookie-btn-accept:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.45);
}

/* ── 16. TOAST ───────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    padding: 0.875rem 1.25rem;
    border-radius: var(--r-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    animation: slideInRight 0.4s var(--ease-spring) forwards;
    max-width: 360px;
}

.toast-success { background: var(--secondary); }
.toast-error { background: #EF4444; }
.toast-info { background: var(--primary); }

/* ── 17. SOCIAL LINKS ────────────────────────────────────── */
.social-link {
    transition: all var(--ease-base);
}

.social-link i, .social-link svg {
    transition: transform var(--ease-base);
}

.social-link:hover i, .social-link:hover svg {
    transform: scale(1.15);
}

.social-link.instagram:hover { background: #E1306C; border-color: #E1306C; color: white; }
.social-link.facebook:hover  { background: #1877F2; border-color: #1877F2; color: white; }
.social-link.x-twitter:hover { background: #000; border-color: #333; color: white; }
.social-link.linkedin:hover  { background: #0077B5; border-color: #0077B5; color: white; }
.social-link.youtube:hover   { background: #FF0000; border-color: #FF0000; color: white; }
.social-link.tiktok:hover    { background: #000; border-color: #333; color: white; }
.social-link.threads:hover   { background: #000; border-color: #333; color: white; }

/* ── 18. SCROLL REVEAL ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-slow), transform 0.7s var(--ease-slow);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── 19. ANIMATIONS ──────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-24px) scale(1.03); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

.animate-fade-in {
    animation: fadeInUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── 20. SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── 21. SELECTION ───────────────────────────────────────── */
::selection {
    background: rgba(var(--primary-rgb), 0.25);
    color: var(--text);
}

/* ── 22. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-orb-1 { width: 380px; height: 380px; top: -150px; left: -150px; }
    .hero-orb-2 { width: 300px; height: 300px; bottom: -100px; right: -100px; }
    .hero-orb-3 { display: none; }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: 0.75rem;
        padding: 1.25rem;
    }
    .cookie-actions { width: 100%; justify-content: flex-end; }

    .brand-text { font-size: 1rem; }
    .logo-box { width: 40px; height: 40px; }

    .stat-number { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .btn-primary, .btn-secondary { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
    .premium-card { padding: 1.5rem; }
}

/* ── 23. LEGAL PAGE PROSE ────────────────────────────────── */
.prose-legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.prose-legal p, .prose-legal li {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.prose-legal ul { padding-left: 1.25rem; }
.prose-legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* ── 24. FOCUS ACCESSIBILITY ─────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}
