/* assets/css/style.css */

/* ===== CSS VARIABLES ===== */
:root {
    /* Color Scheme: Navy + Electric Blue + Subtle Gold + Charcoal (ORIGINAL COLORS RESTORED) */
    --primary: #1a365d;               /* Navy */
    --primary-light: #2563eb;         /* Electric Blue */
    --primary-dark: #0f172a;          /* Darker Navy */
    --accent: #d4af37;                /* Subtle Gold */
    --accent-light: #f1c40f;          /* Brighter Gold */
    --accent-dark: #b8961f;           /* Darker Gold */
    
    /* Text Colors */
    --text-primary: #374151;          /* Charcoal */
    --text-secondary: #6b7280;        /* Medium Gray */
    --text-light: #9ca3af;            /* Light Gray */
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Header (ORIGINAL DARK HEADER RESTORED) */
    --header-bg: rgba(15, 23, 42, 0.95);  /* Dark Navy with transparency */
    --header-text: #ffffff;
    --header-border: rgba(212, 175, 55, 0.1);
    
    /* Border & Shadows */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --section-padding-mobile: 3rem 0;
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section {
    padding: var(--section-padding);
}

.section__title {
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.section__description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.7;
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scroll-header {
    background: var(--header-bg); /* Keep the same dark navy background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    min-height: 70px;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    color: var(--header-text);
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.nav__brand:hover {
    transform: scale(1.02);
}

.nav__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform var(--transition-normal);
    flex-shrink: 0;
}

.nav__brand-text {
    color: var(--header-text);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.025em;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.75rem 0;
}

.nav__link:hover,
.nav__link.active {
    color: var(--accent);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-normal);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle,
.nav__close {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    color: var(--header-text);
}

.hamburger,
.close-icon {
    width: 24px;
    height: 2px;
    background: var(--header-text);
    position: relative;
    transition: all var(--transition-normal);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--header-text);
    transition: all var(--transition-normal);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-weight-medium);
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    background: none;
    font-family: inherit;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.btn--primary {
    background: var(--primary);
    color: var(--text-white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn--secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--secondary:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: transparent;
}

.btn--ghost:hover {
    background: var(--accent);
    color: var(--text-white);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
}

.btn--full {
    width: 100%;
}

.btn-icon {
    transition: transform var(--transition-fast);
    font-size: 0.875em;
}

.btn:hover .btn-icon {
    transform: translateX(2px);
}

.btn--demo {
    background: #ffffff;
    color: #d4af37;
    border: 2px solid #d4af37;
    font-weight: var(--font-weight-semibold);
}

.btn--demo:hover {
    background: #d4af37;
    color: #ffffff;
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Sign In Button - Gold border with gold text */
.btn--signin {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    font-weight: var(--font-weight-semibold);
}

.btn--signin:hover {
    background: #d4af37;
    color: #ffffff;
    border-color: #d4af37;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 97, 255, 0.02) 0%, rgba(245, 158, 11, 0.03) 100%);
    z-index: 0;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: clamp(2.75rem, 5vw, 4rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero__title--accent {
    color: var(--primary);
    position: relative;
}

.hero__title--accent::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    border-radius: 2px;
}

.hero__description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
    letter-spacing: -0.025em;
}

.hero__stat-label {
    font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

.hero__actions {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero__social-proof {
    border-top: 1px solid var(--border-light);
    padding-top: 2rem;
}

.hero__proof-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
    text-align: center;
}

.hero__badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.badge:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    font-size: 1rem;
}

/* ===== FORM ENHANCEMENTS ===== */
.form__title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.form__description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
}

.form__link {
    color: var(--primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
}

.form__link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===== CONTACT SECTION ENHANCEMENTS ===== */
.contact__cta {
    margin-top: 2rem;
    text-align: center;
}

.contact__guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.guarantee-icon {
    font-size: 1rem;
    color: var(--accent);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav {
        padding: 0.75rem 1rem;
    }
    
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right var(--transition-normal);
        z-index: 1001;
        border-left: 1px solid var(--border-light);
        box-shadow: var(--shadow-xl);
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-bottom: 2rem;
    }

    .nav__link {
        font-size: 1.125rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-light);
        width: 100%;
        color: var(--text-primary);
    }

    .nav__link:hover,
    .nav__link.active {
        color: var(--accent);
    }

    .nav__toggle,
    .nav__close {
        display: flex;
    }

    .nav__close {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
    }

    .nav__actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .nav__logo {
        width: 32px;
        height: 32px;
    }

    .nav__brand {
        font-size: 1.375rem;
    }

    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }

    .hero__content {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section {
        padding: var(--section-padding-mobile);
    }
}

@media (max-width: 480px) {
    .nav__brand {
        font-size: 1.25rem;
    }

    .nav__logo {
        width: 28px;
        height: 28px;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn--large {
        padding: 1rem 1.75rem;
        font-size: 1rem;
    }

    .hero__stats {
        padding: 1.25rem;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-light: #666666;
        --border-medium: #333333;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav__toggle,
    .nav__close,
    .hero__actions,
    .btn {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .hero__title,
    .section__title {
        color: black !important;
    }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
.btn:focus,
.nav__link:focus,
.form__input:focus,
.form__select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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