/* ==========================================================================
   #GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    /* Color System - Light Theme (default) */
    --background-color: #ffffff;
    --background-alt: #f9fafb;
    --background-dark: #020617;
    --text-color: #0f172a;
    --text-muted: #6b7280;
    --primary-color: #4a6cf7;
    --primary-dark: #3a5bd9;
    --primary-light: #eef2ff;
    --secondary-color: #6c757d;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --black: #000000;
    
    /* Grayscale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
    
    /* 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;
    
    --mobile-padding: 1rem;
    --header-height: 4.5rem;
    --footer-height: 4rem;
    --nav-height: 4.5rem;
    --transition-speed: 0.3s;
    --transition-fast: 0.15s;
    --transition-slow: 0.5s;
    
    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Fira Code', 'Monaco', 'Cascadia Code', 'Segoe UI Mono', monospace;
    
    /* Breakpoints */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}

/* Dark theme overrides */
[data-theme="dark"] {
    --background-color: #111827;
    --background-alt: #1f2937;
    --background-dark: #0f172a;
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-padding-top: var(--nav-height);
    color-scheme: light dark;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: color 0.3s ease, background-color 0.3s ease;
    
    /* Base font size for mobile */
    font-size: 15px;
}

/* Responsive font scaling */
@media (min-width: 480px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 15.5px;
    }
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }
}

@media (min-width: 1200px) {
    html {
        font-size: 16.5px;
    }
}

@media (min-width: 1400px) {
    html {
        font-size: 17px;
    }
}

body {
    font-family: var(--font-sans);
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Main content padding for fixed header */
main#main-content {
    padding-top: 0;
    margin-top: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--mobile-padding);
    position: relative;
}

/* Responsive container padding */
@media (min-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s ease;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   #NAVIGATION
   ========================================================================== */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: var(--nav-height);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    z-index: 1002;
    padding: 0.5rem 0;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(10deg);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(74, 108, 247, 0.03);
}

.nav-link:hover::after {
    width: 60%;
    opacity: 1;
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(74, 108, 247, 0.08);
}

.nav-link.active::after {
    width: 60%;
    opacity: 1;
    background: var(--primary-color);
}

/* CTA Button */
.nav-cta .button {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 0.75rem;
    border-radius: var(--radius);
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.nav-cta .button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
    border-radius: var(--radius);
}

.nav-cta .button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.3);
    color: inherit; /* Keep original text color */
}

.nav-cta .button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 108, 247, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.mobile-menu-toggle .hamburger {
    position: relative;
    width: 24px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.mobile-menu-toggle .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform, opacity;
    transform-origin: center;
}

/* Menu open state */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        z-index: 1002;
        width: 44px;
        height: 44px;
        background: rgba(74, 108, 247, 0.08);
        border: none;
        cursor: pointer;
        padding: 0;
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(74, 108, 247, 0.15);
        transform: scale(1.05);
    }
    
    .mobile-menu-toggle:active {
        transform: scale(0.95);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 380px;
        height: 100vh;
        background: var(--background-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, visibility 0.3s ease;
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        z-index: 1001;
        margin: 0;
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        overflow-y: auto;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .nav-links[data-visible="true"] {
        right: 0;
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1.2rem 1.5rem;
        margin: 0.25rem 0;
        border-radius: 12px;
        font-size: 1.05rem;
        font-weight: 500;
        transition: all 0.2s ease;
        position: relative;
        overflow: hidden;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(74, 108, 247, 0.1), transparent);
        transition: left 0.5s ease;
    }
    
    .nav-link:hover::before {
        left: 100%;
    }
    
    .nav-link:hover {
        background: rgba(74, 108, 247, 0.08);
        transform: translateX(5px);
    }
    
    .nav-link.active {
        background: rgba(74, 108, 247, 0.12);
        color: var(--primary-color);
        font-weight: 600;
    }
    
    .nav-cta {
        width: 100%;
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .nav-cta .button {
        width: 100%;
        margin: 0;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(74, 108, 247, 0.25);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-cta .button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(74, 108, 247, 0.35);
    }
    
    /* Add overlay for mobile menu */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    body.menu-open::after {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================================================
   #TYPOGRAPHY
   ========================================================================== */
h1, .h1 {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h2, .h2 {
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

h3, .h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4, .h4 {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    h1, .h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    h2, .h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    h3, .h3 {
        font-size: 1.375rem;
        margin-bottom: 0.875rem;
    }
    
    h4, .h4 {
        font-size: 1.125rem;
        margin-bottom: 0.625rem;
    }
    
    p {
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   #BUTTONS
   ========================================================================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
}

.button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.3);
}

.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button variants */
.button--primary {
    background: linear-gradient(135deg, #4a6cf7, #3a5bd9);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(74, 108, 247, 0.25);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.button--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a5bd9, #4a6cf7);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 108, 247, 0.3);
    color: white;
}

.button--primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(74, 108, 247, 0.2);
}

.button--outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button--outline:hover:not(:disabled) {
    background-color: rgba(74, 108, 247, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Button sizes */
.button--sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.button--lg {
    padding: 0.95rem 2.4rem;
    font-size: 1rem;
}

.button--xl {
    padding: 1.1rem 2.85rem;
    font-size: 1.05rem;
    border-radius: 55px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0;
    }
}

.button--pulse {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.button--pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    animation: pulse 2s infinite;
    pointer-events: none;
    opacity: 0;
}

/* Button with icon */
.button .button-icon {
    display: inline-flex;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.button:hover .button-icon {
    transform: translateX(2px);
    color: inherit; /* Keep original icon color */
}

/* Button group */
.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
        width: 100%;
    }
    
    .button-group .button {
        width: 100%;
    }
}

/* ==========================================================================
   #SECTIONS
   ========================================================================== */
.section {
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }
}

/* Section variants */
.section--light {
    background: var(--background-color);
}

.section--alt {
    background: var(--background-alt);
}

.section--dark {
    background: var(--background-dark);
    color: #fff;
}

/* Section header */
.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto var(--space-8);
    padding: 0 var(--space-4);
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--text-color);
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: var(--space-2);
    position: relative;
    padding-left: 1.5rem;
}

.section-subtitle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 2px;
    background: var(--primary-color);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   #HERO SECTION
   ========================================================================== */
.hero {
    padding: 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .hero {
        padding: 5rem 0 3rem;
        min-height: 80vh;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(74, 108, 247, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(74, 108, 247, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 1px solid rgba(74, 108, 247, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.hero-badge__status {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    padding-left: 0.75rem;
    position: relative;
    font-weight: 500;
    color: var(--text-muted);
}

.hero-badge__status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #0f172a 0%, #1f2937 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.hero-copy {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-metrics__item {
    text-align: center;
    min-width: 120px;
}

.hero-metrics__value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.hero-metrics__label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   #FEATURES SECTION
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 2.25rem 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    text-align: left;
    display: grid;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(37, 99, 235, 0.1);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.feature-card h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--primary-color);
}

.feature-card p {
    margin: 0;
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.7);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.15);
}

.feature-card--narratives .feature-card__icon {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.feature-card--liquidity .feature-card__icon {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.feature-card--compliance .feature-card__icon {
    background: rgba(251, 191, 36, 0.12);
    color: #d97706;
}

@media (max-width: 768px) {
    .feature-card {
        padding: 1.75rem 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 540px) {
    .features-grid {
        gap: 1.5rem;
    }
}

/* ==========================================================================
   #CONTACT SECTION
   ========================================================================== */
.contact-section {
    background: var(--background-color);
}

.contact-layout {
    display: grid;
    gap: 2rem;
}

.contact-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: 1.5rem;
}

.contact-card__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.contact-card__summary {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.contact-quicklinks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.contact-quicklinks__label {
    font-weight: 600;
    margin-right: 0.5rem;
    color: #1f2937;
}

.contact-quicklinks a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-card__resources h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.contact-card__resources ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.contact-card__resources a {
    color: var(--primary-color);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.contact-card--form {
    position: relative;
    overflow: hidden;
    gap: 2rem;
}

.contact-card--form::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), transparent 60%);
    pointer-events: none;
}

.contact-card--form form {
    position: relative;
    z-index: 1;
}

.contact-card--form .form-group {
    display: grid;
    gap: 0.6rem;
}

.contact-card--form .form-label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.contact-card--form .form-control {
    padding: 1.1rem 1.25rem;
    font-size: 1.05rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-card--form .form-control:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.18);
}

.contact-card--form textarea.form-control {
    min-height: 220px;
    resize: vertical;
}

.contact-card--form .form-actions {
    margin-top: 0.5rem;
}

.contact-card--support {
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.form-message {
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: minmax(240px, 1fr) minmax(0, 1.5fr);
        align-items: start;
    }

    .contact-card--support {
        position: sticky;
        top: calc(var(--nav-height) + 2rem);
    }

    .contact-card--form .form-group:nth-child(2) textarea {
        min-height: 200px;
    }
}

@media (max-width: 767px) {
    .contact-card {
        padding: 1.75rem;
    }

    .contact-card--support {
        order: 2;
    }

    .contact-card--form {
        order: 1;
    }

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

    .form-actions .button {
        width: 100%;
    }
}

/* ==========================================================================
   #CTA SECTION
   ========================================================================== */
.cta {
    position: relative;
    background: linear-gradient(135deg, var(--primary-light) 0%, #e0e6ff 100%);
    overflow: hidden;
    z-index: 1;
    padding: var(--space-16) 0;
    border-radius: var(--radius-xl);
    margin: var(--space-8) 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(74, 108, 247, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(74, 108, 247, 0.1);
}

.cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 108, 247, 0.15);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.cta h2 {
    color: transparent;
    margin-bottom: 1.5rem;
    font-size: 2.75rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, var(--primary-color), #6c5ce7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin: 0 auto 2.5rem;
    max-width: 700px;
    line-height: 1.7;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 1.5rem;
    max-width: 90%;
}

.cta .button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta .button--white {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta .button--white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.3);
    background: white;
}

.cta .button--outline-white {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta .button--outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 108, 247, 0.2);
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .button {
        width: 100%;
    }
}

/* ==========================================================================
   #TRUST & DISCLAIMER
   ========================================================================== */
.trust-disclaimer {
    background: var(--bg-light-alt);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 0 auto;
    max-width: 100%;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(249, 250, 251, 0.6);
    backdrop-filter: blur(4px);
}

.trust-disclaimer--compact {
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    text-align: center;
}

.trust-disclaimer--compact .trust-disclaimer__content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-disclaimer--compact .trust-disclaimer__logos {
    gap: 1rem 1.5rem;
    margin: 0;
}

.trust-disclaimer--compact .trust-disclaimer__logo {
    font-size: 0.9rem;
}

.trust-disclaimer--compact .trust-disclaimer__disclaimer {
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.trust-disclaimer--compact .trust-disclaimer__divider {
    display: none;
}

.trust-disclaimer__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.trust-disclaimer__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2.5rem;
    margin: 0.5rem 0;
}

.trust-disclaimer__logo {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.trust-disclaimer__logo:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-color);
    margin-left: 1.25rem;
}

.trust-disclaimer__disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
    font-style: italic;
}

.trust-disclaimer__disclaimer strong {
    color: var(--text-secondary);
    font-weight: 500;
    font-style: normal;
}

/* ==========================================================================
   #FOOTER
   ========================================================================== */
.footer {
    background-color: #1a202c;
    color: #e2e8f0;
    padding: 5rem 0 2rem;
    margin-top: 6rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1.75rem, 3vw, 2.75rem);
    margin-bottom: 3rem;
    position: relative;
}

.footer-column--brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.footer-link {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .footer-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-column--brand {
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

/* ==========================================================================
   #BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.back-to-top:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.25);
}

@media (max-width: 767px) {
    .back-to-top {
        width: 2.5rem;
        height: 2.5rem;
        bottom: 1rem;
        right: 1rem;
        font-size: 0.875rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.75rem 1.5rem;
    }
}

/* ==========================================================================
   #ANIMATIONS
   ========================================================================== */
/* Page load animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-on-scroll {
    opacity: 1;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animated {
    opacity: 1;
}

.animate-on-scroll.slide-up {
    transform: translateY(0);
}

.animate-on-scroll.slide-up.animated {
    transform: translateY(0);
}

.animate-on-scroll.slide-left {
    transform: translateX(0);
}

.animate-on-scroll.slide-left.animated {
    transform: translateX(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(0);
}

.animate-on-scroll.slide-right.animated {
    transform: translateX(0);
}

.animate-on-scroll.scale-in {
    transform: scale(1);
}

.animate-on-scroll.scale-in.animated {
    transform: scale(1);
}

/* Staggered animations */
.stagger-animation > * {
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stagger-animation.animated > * {
    opacity: 1;
}

.stagger-animation.animated > *:nth-child(1) { transition-delay: 0.1s; transform: translateY(0); }
.stagger-animation.animated > *:nth-child(2) { transition-delay: 0.2s; transform: translateY(0); }
.stagger-animation.animated > *:nth-child(3) { transition-delay: 0.3s; transform: translateY(0); }
.stagger-animation.animated > *:nth-child(4) { transition-delay: 0.4s; transform: translateY(0); }
.stagger-animation.animated > *:nth-child(5) { transition-delay: 0.5s; transform: translateY(0); }

.stagger-animation > *:nth-child(1) { transform: translateY(0); }
.stagger-animation > *:nth-child(2) { transform: translateY(0); }
.stagger-animation > *:nth-child(3) { transform: translateY(0); }
.stagger-animation > *:nth-child(4) { transform: translateY(0); }
.stagger-animation > *:nth-child(5) { transform: translateY(0); }

/* ==========================================================================
   #UTILITY CLASSES
   ========================================================================== */
/* Text utilities */
.text-center {
    text-align: center;
}

/* Spacing utilities */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   #FORMS
   ========================================================================== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

.form-message {
    display: none;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-message--success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: block;
}

.form-message--error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* ==========================================================================
   #ACCESSIBILITY
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

/* ==========================================================================
   #PAGE SPECIFIC STYLES
   ========================================================================== */
.page-header {
    padding: clamp(4.5rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2.25rem);
    background: var(--background-alt);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.page-header h1 {
    color: var(--primary-color);
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.legal-updated {
    text-align: center;
    margin-top: 0.85rem;
    font-size: 0.95rem;
    color: rgba(71, 85, 105, 0.85);
}

.page-content {
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Legal Pages */
.legal-content {
    background: #ffffff;
    padding: clamp(2rem, 4vw, 2.75rem);
    border-radius: 1.25rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.25);
    display: grid;
    gap: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(30, 41, 59, 0.88);
}

.legal-content h2 {
    color: #0f172a;
    font-size: clamp(1.75rem, 3vw, 2.1rem);
    margin: clamp(1.5rem, 3vw, 2.25rem) 0 0.75rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.legal-content h2:first-child {
    margin-top: 0.25rem;
}

.legal-content h3 {
    font-size: clamp(1.3rem, 2.4vw, 1.5rem);
    margin: 1.25rem 0 0.65rem;
    color: var(--primary-color);
    font-weight: 600;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
    margin-bottom: 1.15rem;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.75rem;
    display: grid;
    gap: 0.5rem;
}

.legal-content li + li {
    margin-top: 0;
}

.legal-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.legal-content a:hover,
.legal-content a:focus {
    text-decoration: underline;
}

.legal-content strong {
    color: #0f172a;
}

.legal-content em {
    color: rgba(71, 85, 105, 0.9);
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.75rem;
        border-radius: 1rem;
        font-size: 1rem;
        line-height: 1.7;
    }

    .page-header {
        padding: 4rem 0 1.75rem;
    }
}

/* ==========================================================================
   #PRICING SECTION
   ========================================================================== */
.pricing-teaser {
    text-align: center;
    padding: 3rem 0;
}

.pricing-teaser__text {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* ==========================================================================
   #RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 767px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-copy {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1.1rem;
    }
}
