/* ============================================
   RANK BOOSTER INFOTECH - MAIN STYLESHEET
   Version: 1.0 | Design: 2026 UI
   Dark + Light Mode Support
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */

:root {
    /* Brand Colors */
    --brand-purple:     #6C63FF;
    --brand-cyan:       #00D4FF;
    --brand-green:      #00FF88;
    --brand-pink:       #FF6B9D;
    --brand-orange:     #FF9F43;

    /* Gradients */
    --grad-primary:     linear-gradient(135deg, #6C63FF 0%, #00D4FF 100%);
    --grad-secondary:   linear-gradient(135deg, #FF6B9D 0%, #6C63FF 100%);
    --grad-green:       linear-gradient(135deg, #00FF88 0%, #00D4FF 100%);
    --grad-warm:        linear-gradient(135deg, #FF9F43 0%, #FF6B9D 100%);
    --grad-dark:        linear-gradient(135deg, #0A0A0F 0%, #12121A 100%);

    /* Typography */
    --font-primary:     'Plus Jakarta Sans', sans-serif;
    --font-body:        'Inter', sans-serif;
    --font-mono:        'JetBrains Mono', monospace;

    /* Font Sizes - Fluid */
    --text-xs:          clamp(0.7rem,  1vw,   0.75rem);
    --text-sm:          clamp(0.8rem,  1.2vw, 0.875rem);
    --text-base:        clamp(0.9rem,  1.5vw, 1rem);
    --text-lg:          clamp(1rem,    1.8vw, 1.125rem);
    --text-xl:          clamp(1.1rem,  2vw,   1.25rem);
    --text-2xl:         clamp(1.3rem,  2.5vw, 1.5rem);
    --text-3xl:         clamp(1.5rem,  3vw,   1.875rem);
    --text-4xl:         clamp(1.8rem,  4vw,   2.25rem);
    --text-5xl:         clamp(2rem,    5vw,   3rem);
    --text-6xl:         clamp(2.5rem,  6vw,   3.75rem);
    --text-7xl:         clamp(3rem,    7vw,   4.5rem);

    /* Font Weights */
    --fw-light:         300;
    --fw-regular:       400;
    --fw-medium:        500;
    --fw-semibold:      600;
    --fw-bold:          700;
    --fw-extrabold:     800;

    /* Spacing */
    --space-1:          0.25rem;
    --space-2:          0.5rem;
    --space-3:          0.75rem;
    --space-4:          1rem;
    --space-5:          1.25rem;
    --space-6:          1.5rem;
    --space-8:          2rem;
    --space-10:         2.5rem;
    --space-12:         3rem;
    --space-16:         4rem;
    --space-20:         5rem;
    --space-24:         6rem;
    --space-32:         8rem;

    /* Border Radius */
    --radius-sm:        0.375rem;
    --radius-md:        0.5rem;
    --radius-lg:        0.75rem;
    --radius-xl:        1rem;
    --radius-2xl:       1.5rem;
    --radius-3xl:       2rem;
    --radius-full:      9999px;

    /* Shadows */
    --shadow-sm:        0 1px 3px rgba(0,0,0,0.12);
    --shadow-md:        0 4px 20px rgba(0,0,0,0.15);
    --shadow-lg:        0 10px 40px rgba(0,0,0,0.2);
    --shadow-xl:        0 20px 60px rgba(0,0,0,0.3);
    --shadow-glow:      0 0 30px rgba(108, 99, 255, 0.3);
    --shadow-glow-cyan: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-glow-green:0 0 30px rgba(0, 255, 136, 0.3);

    /* Transitions */
    --transition-fast:  0.15s ease;
    --transition-base:  0.3s ease;
    --transition-slow:  0.5s ease;
    --transition-bounce:0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Z-Index Scale */
    --z-base:           1;
    --z-dropdown:       100;
    --z-sticky:         200;
    --z-overlay:        300;
    --z-modal:          400;
    --z-toast:          500;
    --z-preloader:      9999;

    /* Container */
    --container-sm:     640px;
    --container-md:     768px;
    --container-lg:     1024px;
    --container-xl:     1280px;
    --container-2xl:    1440px;
}

/* ============================================
   DARK THEME (DEFAULT)
   ============================================ */

[data-theme="dark"] {
    --bg-primary:       #0A0A0F;
    --bg-secondary:     #0D0D14;
    --bg-tertiary:      #12121A;
    --bg-card:          #13131C;
    --bg-card-hover:    #1A1A28;
    --bg-input:         #1A1A28;
    --bg-nav:           rgba(10, 10, 15, 0.95);
    --footer-bg:        #080810;

    --text-primary:     #F0F0F8;
    --text-secondary:   #A0A0C0;
    --text-muted:       #606080;
    --text-inverse:     #0A0A0F;

    --border-color:     rgba(108, 99, 255, 0.15);
    --border-hover:     rgba(108, 99, 255, 0.4);
    --border-input:     rgba(255, 255, 255, 0.1);

    --glass-bg:         rgba(255, 255, 255, 0.03);
    --glass-border:     rgba(255, 255, 255, 0.08);
    --glass-hover:      rgba(255, 255, 255, 0.06);

    --overlay:          rgba(0, 0, 0, 0.7);

    --announcement-bg:  linear-gradient(135deg, #6C63FF, #00D4FF);
    --announcement-text:#ffffff;

    color-scheme: dark;
}

/* ============================================
   LIGHT THEME
   ============================================ */

[data-theme="light"] {
    --bg-primary:       #FAFAFA;
    --bg-secondary:     #F5F5FF;
    --bg-tertiary:      #EFEFFF;
    --bg-card:          #FFFFFF;
    --bg-card-hover:    #F8F8FF;
    --bg-input:         #FFFFFF;
    --bg-nav:           rgba(250, 250, 250, 0.95);
    --footer-bg:        #1A1A2E;

    --text-primary:     #0A0A1A;
    --text-secondary:   #404060;
    --text-muted:       #8080A0;
    --text-inverse:     #FFFFFF;

    --border-color:     rgba(108, 99, 255, 0.15);
    --border-hover:     rgba(108, 99, 255, 0.4);
    --border-input:     rgba(0, 0, 0, 0.1);

    --glass-bg:         rgba(108, 99, 255, 0.03);
    --glass-border:     rgba(108, 99, 255, 0.1);
    --glass-hover:      rgba(108, 99, 255, 0.06);

    --overlay:          rgba(0, 0, 0, 0.5);

    --shadow-sm:        0 1px 3px rgba(108, 99, 255, 0.08);
    --shadow-md:        0 4px 20px rgba(108, 99, 255, 0.1);
    --shadow-lg:        0 10px 40px rgba(108, 99, 255, 0.12);

    --announcement-bg:  linear-gradient(135deg, #6C63FF, #00D4FF);
    --announcement-text:#ffffff;

    color-scheme: light;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition-slow),
                color var(--transition-slow);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

p:last-child { margin-bottom: 0; }

a {
    color: var(--brand-purple);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--brand-cyan); }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol { list-style: none; }

/* Gradient Text */
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-warm {
    background: var(--grad-warm);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: var(--grad-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm  { max-width: var(--container-sm); }
.container-lg  { max-width: var(--container-lg); }
.container-2xl { max-width: var(--container-2xl); }

.section {
    padding: var(--space-24) 0;
}

.section-sm {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-purple);
    background: rgba(108, 99, 255, 0.1);
    border: 1px solid rgba(108, 99, 255, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flex Helpers */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-2        { gap: var(--space-2); }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-bounce);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Primary Button */
.btn-primary {
    background: var(--grad-primary);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
    color: #ffffff;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

/* Outline Button */
.btn-outline {
    background: transparent;
    color: var(--brand-purple);
    border: 2px solid var(--brand-purple);
}

.btn-outline:hover {
    background: var(--brand-purple);
    color: white;
    transform: translateY(-2px);
}

/* Ghost Button */
.btn-ghost {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--glass-hover);
    border-color: var(--brand-purple);
    color: var(--brand-purple);
    transform: translateY(-2px);
}

/* Button Sizes */
.btn-sm  { padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn-lg  { padding: 1rem 2rem; font-size: var(--text-lg); }
.btn-xl  { padding: 1.25rem 2.5rem; font-size: var(--text-xl); }
.btn-full { width: 100%; }

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--grad-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
    opacity: 1;
}

/* Glass Card */
.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-8);
    transition: all var(--transition-base);
}

.card-glass:hover {
    background: var(--glass-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

/* ============================================
   ANNOUNCEMENT BAR
   ============================================ */

.announcement-bar {
    background: var(--announcement-bg);
    color: var(--announcement-text);
    text-align: center;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    position: relative;
    z-index: var(--z-sticky);
}

.announcement-bar p {
    color: white;
    margin: 0;
}

.announcement-bar a {
    color: white;
    font-weight: var(--fw-bold);
    text-decoration: underline;
    margin: 0 var(--space-2);
}

.announcement-close {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background var(--transition-fast);
}

.announcement-close:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--border-hover);
}

.navbar.announcement-visible {
    top: 36px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: var(--space-6);
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon { flex-shrink: 0; }

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
}

.logo-sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: var(--fw-medium);
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--brand-purple);
    background: rgba(108, 99, 255, 0.08);
}

.chevron {
    transition: transform var(--transition-fast);
}

.nav-item:hover .chevron,
.nav-item.active .chevron {
    transform: rotate(180deg);
}

/* Nav Badge */
.nav-badge {
    font-size: 9px;
    font-weight: var(--fw-bold);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse 2s infinite;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    backdrop-filter: blur(20px);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-inner {
    padding: var(--space-3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(108, 99, 255, 0.08);
    color: var(--brand-purple);
    transform: translateX(4px);
}

.dropdown-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--glass-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--brand-purple);
    background: rgba(108, 99, 255, 0.1);
    transform: rotate(20deg);
}

.theme-icon { 
    position: absolute; 
    transition: all var(--transition-base);
}

[data-theme="dark"] .dark-icon  { opacity: 1; transform: scale(1); }
[data-theme="dark"] .light-icon { opacity: 0; transform: scale(0); }
[data-theme="light"] .dark-icon  { opacity: 0; transform: scale(0); }
[data-theme="light"] .light-icon { opacity: 1; transform: scale(1); }

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: calc(var(--z-overlay) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(380px, 90vw);
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: var(--z-overlay);
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.mobile-close {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.mobile-close:hover {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.3);
    color: #FF3B30;
}

.mobile-nav-list {
    flex: 1;
    padding: var(--space-4) var(--space-4);
    overflow-y: auto;
}

.mobile-nav-item { margin-bottom: var(--space-1); }

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
    font-size: var(--text-base);
}

.mobile-nav-link:hover {
    background: rgba(108, 99, 255, 0.08);
    color: var(--brand-purple);
}

.mobile-sub-menu {
    padding-left: var(--space-4);
    margin-top: var(--space-1);
}

.mobile-sub-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.mobile-sub-link:hover {
    color: var(--brand-purple);
    background: rgba(108, 99, 255, 0.05);
}

.mobile-menu-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ============================================
   PRELOADER
   ============================================ */

.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-preloader);
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.preloader-bar {
    width: 200px;
    height: 3px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.preloader-progress {
    height: 100%;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    animation: preloaderAnim 1.5s ease-in-out infinite;
}

@keyframes preloaderAnim {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ============================================
   SKIP LINK (ACCESSIBILITY)
   ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-6);
    background: var(--brand-purple);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    font-weight: var(--fw-semibold);
    z-index: var(--z-preloader);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
    color: white;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */

.flash-message {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    font-weight: var(--fw-medium);
    max-width: 400px;
    animation: slideInRight 0.4s ease;
    backdrop-filter: blur(20px);
}

.flash-success {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #00FF88;
}

.flash-error {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
}

.flash-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--brand-cyan);
}

.flash-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    opacity: 0.7;
    font-size: 1rem;
    line-height: 1;
}

.flash-close:hover { opacity: 1; }

/* ============================================
   FOOTER STYLES
   ============================================ */

.footer {
    background: var(--footer-bg);
    color: #A0A0C0;
    position: relative;
    margin-top: auto;
}

[data-theme="light"] .footer {
    color: rgba(255,255,255,0.7);
}

.footer-wave {
    margin-bottom: -1px;
    line-height: 0;
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

[data-theme="light"] .footer-wave path {
    fill: #1A1A2E;
}

.footer-main {
    padding: var(--space-20) 0 var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    margin-bottom: var(--space-5);
}

.footer-logo .logo-main {
    color: white;
    font-size: var(--text-lg);
}

.footer-logo .logo-sub {
    color: rgba(255,255,255,0.5);
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

/* Social Links */
.social-links {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-3px);
    color: white;
}

.social-linkedin:hover  { background: #0077B5; border-color: #0077B5; }
.social-instagram:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); border-color: transparent; }
.social-facebook:hover  { background: #1877F2; border-color: #1877F2; }
.social-twitter:hover   { background: #000; border-color: #555; }
.social-youtube:hover   { background: #FF0000; border-color: #FF0000; }

/* Footer Headings */
.footer-heading {
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: var(--space-5);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a:hover {
    color: var(--brand-purple);
    transform: translateX(4px);
}

/* Footer Contact */
.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.contact-icon {
    font-size: 1.1rem;
    width: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-item strong {
    display: block;
    color: white;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.footer-contact-item p,
.footer-contact-item a {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    text-decoration: none;
    margin: 0;
}

.footer-contact-item a:hover {
    color: var(--brand-purple);
}

/* Newsletter */
.footer-newsletter {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.footer-newsletter h4 {
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    margin-bottom: var(--space-1);
}

.footer-newsletter p {
    color: rgba(255,255,255,0.5);
    font-size: var(--text-xs);
    margin-bottom: var(--space-4);
}

.newsletter-input-group {
    display: flex;
    gap: var(--space-2);
}

.newsletter-input-group input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    color: white;
    font-size: var(--text-sm);
    outline: none;
    transition: border-color var(--transition-fast);
}

.newsletter-input-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.newsletter-input-group input:focus {
    border-color: var(--brand-purple);
}

/* Cert Badges */
.footer-certs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.cert-badge {
    font-size: var(--text-xs);
    padding: 4px 10px;
    background: rgba(108, 99, 255, 0.15);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: var(--radius-full);
    color: var(--brand-purple);
    font-weight: var(--fw-medium);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--space-6) 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.copyright {
    color: rgba(255,255,255,0.4);
    font-size: var(--text-sm);
    margin: 0;
}

.copyright a {
    color: rgba(255,255,255,0.6);
}

.copyright a:hover {
    color: var(--brand-purple);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-6);
}

.footer-bottom-links a {
    color: rgba(255,255,255,0.4);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--brand-purple);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: var(--space-8);
    left: var(--space-8);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-modal);
    transition: all var(--transition-bounce);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.2);
    animation: whatsappPulse 2s infinite;
}

.whatsapp-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    background: #25D366;
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    pointer-events: none;
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: #25D366;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */

.scroll-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 48px;
    height: 48px;
    background: var(--grad-primary);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: var(--z-modal);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-bounce);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--fw-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-label span {
    color: #FF3B30;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-base);
    font-family: var(--font-body);
    transition: all var(--transition-fast);
    outline: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.error {
    border-color: #FF3B30;
}

textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C63FF' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-error {
    font-size: var(--text-xs);
    color: #FF3B30;
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ============================================
   BADGES & TAGS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
}

.badge-purple {
    background: rgba(108, 99, 255, 0.15);
    color: var(--brand-purple);
    border: 1px solid rgba(108, 99, 255, 0.2);
}

.badge-cyan {
    background: rgba(0, 212, 255, 0.1);
    color: var(--brand-cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.badge-green {
    background: rgba(0, 255, 136, 0.1);
    color: var(--brand-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.badge-orange {
    background: rgba(255, 159, 67, 0.1);
    color: var(--brand-orange);
    border: 1px solid rgba(255, 159, 67, 0.2);
}

/* ============================================
   STAR RATING
   ============================================ */

.star-rating {
    display: flex;
    gap: 2px;
}

.star { color: var(--text-muted); font-size: 1rem; }
.star.filled { color: #FFB800; }

/* ============================================
   SECTION DIVIDER
   ============================================ */

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--grad-primary);
    border-radius: var(--radius-full);
    margin: var(--space-4) auto;
}

/* ============================================
   BACKGROUND PATTERNS
   ============================================ */

.bg-grid {
    background-image: linear-gradient(
        rgba(108, 99, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 99, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-dots {
    background-image: radial-gradient(
        rgba(108, 99, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-radial-purple {
    background: radial-gradient(
        ellipse at center,
        rgba(108, 99, 255, 0.15) 0%,
        transparent 70%);
}

.bg-radial-cyan {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 212, 255, 0.1) 0%,
        transparent 70%);
}

/* ============================================
   GLOW EFFECTS
   ============================================ */

.glow-purple { box-shadow: var(--shadow-glow); }
.glow-cyan   { box-shadow: var(--shadow-glow-cyan); }
.glow-green  { box-shadow: var(--shadow-glow-green); }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-purple    { color: var(--brand-purple); }
.text-cyan      { color: var(--brand-cyan); }
.text-green     { color: var(--brand-green); }

.fw-light    { font-weight: var(--fw-light); }
.fw-regular  { font-weight: var(--fw-regular); }
.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.hidden   { display: none; }
.visible  { visibility: visible; }
.invisible { visibility: hidden; }

.w-full   { width: 100%; }
.h-full   { height: 100%; }

.overflow-hidden { overflow: hidden; }
.relative        { position: relative; }
.absolute        { position: absolute; }

/* ============================================
   ANIMATIONS (KEYFRAMES)
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes whatsappPulse {
    0%   { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Animation Utilities */
.animate-fade-in     { animation: fadeIn 0.6s ease forwards; }
.animate-fade-in-up  { animation: fadeInUp 0.6s ease forwards; }
.animate-fade-in-left { animation: fadeInLeft 0.6s ease forwards; }
.animate-float       { animation: float 4s ease-in-out infinite; }
.animate-pulse       { animation: pulse 2s infinite; }
.animate-rotate      { animation: rotate 8s linear infinite; }

/* Delay Utilities */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* ============================================
   SCROLL REVEAL (JS CONTROLLED)
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}