:root {
    --bg-main: #050505;
    --bg-surface: rgba(255, 255, 255, 0.02);
    --border-light: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --primary: #3b82f6; 
    --primary-glow: rgba(59, 130, 246, 0.3);
    --success: #10b981; 
    --danger: #ef4444; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
}

/* Premium Mesh Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 100% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 0% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   NAVIGATION
========================================= */
.top-nav {
    border-bottom: 1px solid var(--border-light);
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark svg {
    width: 38px;
    height: 38px;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4));
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -1px;
}

.logo-accent {
    font-weight: 300;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 35px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* =========================================
   HEADER
========================================= */
.header-section {
    max-width: 1200px;
    margin: 70px auto 50px;
    padding: 0 20px;
    text-align: center;
}

.header-section h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-section p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =========================================
   COMPARISON ENGINE
========================================= */
.comparison-container {
    max-width: 1000px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

/* Glassmorphism Sticky Selectors */
.sticky-selectors {
    display: flex;
    align-items: stretch;
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 25px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    position: sticky;
    top: 90px;
    z-index: 90;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    margin-bottom: 40px;
}

.firm-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vs-divider {
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* Premium Dropdowns */
.fintech-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 18px 20px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.fintech-select:focus, .fintech-select:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.firm-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 5px;
}

.firm-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.05);
}

.firm-name-sub {
    font-size: 18px;
    font-weight: 600;
}

.firm-price {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

/* Glowing Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-left: auto;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* =========================================
   DATA SECTIONS (Glass Cards)
========================================= */
.data-group {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.data-group h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.data-row {
    display: flex;
    align-items: stretch;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.data-row:hover {
    background: rgba(255,255,255,0.015);
    border-radius: 8px;
}

.data-label {
    width: 220px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    font-weight: 500;
    padding-left: 10px;
}

.data-value {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.data-value:first-of-type {
    border-right: 1px solid var(--border-light);
}

.highlight-win {
    color: var(--success);
    font-weight: 600;
}

.highlight-loss {
    color: var(--danger);
}
