:root {
    /* Color Palette - Vibrant Dark Mode Default */
    --bg-color: #0b0f19;
    --surface-color: #1a1f35;
    --surface-hover: #232a45;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #6366f1; /* Indigo */
    --accent-2: #a855f7; /* Purple */
    --accent-3: #ec4899; /* Pink */
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(26, 31, 53, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --surface-hover: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 20px 40px rgba(31, 38, 135, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-color), 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
    background: var(--glass-bg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-1);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-btn:hover {
    background: var(--surface-hover);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 5% 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, var(--accent-1) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(80px);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    color: var(--accent-1);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--surface-color);
    padding: 8px 8px 8px 24px;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 50px;
}

.search-bar i {
    color: var(--text-secondary);
    margin-right: 15px;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
}

.stats {
    display: flex;
    gap: 40px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.hero-image {
    flex: 1;
    position: relative;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, -20px); }
}

.floating-1 {
    position: absolute;
    top: 10%;
    left: 10%;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.floating-2 {
    position: absolute;
    bottom: 15%;
    right: 5%;
    z-index: 3;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.property-card {
    padding: 16px;
    width: 270px;
}

.property-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.property-card h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.property-card p {
    color: var(--accent-1);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.stars {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stars i {
    color: #fbbf24;
}

.comparison-card {
    padding: 24px;
    width: 320px;
}

.vs-header {
    font-weight: 800;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.bar-chart .bar {
    margin-bottom: 16px;
}

.bar-chart span {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.bar-chart b {
    font-weight: 700;
    font-size: 0.9rem;
}

.bar-chart .fill {
    height: 8px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.bar-chart .fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-1);
    width: inherit;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.bar-chart .highlight::after {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

/* Comparison Section */
.comparison-section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-primary);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-1);
    color: white;
    border-color: var(--accent-1);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.platform-card {
    background: var(--surface-color);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--accent-1);
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    opacity: 0;
    transition: var(--transition);
}

.platform-card:hover::before {
    opacity: 1;
}

.p-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.p-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: var(--surface-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-1);
}

.p-title h3 {
    font-size: 1.25rem;
}

.p-title .rating {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.p-title .rating i {
    color: #fbbf24;
}

.p-body {
    margin-bottom: 25px;
}

.p-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.p-row:last-child {
    border-bottom: none;
}

.p-row span:first-child {
    color: var(--text-secondary);
}

.p-row span.good { color: #10b981; }
.p-row span.warn { color: #f59e0b; }
.p-row span.bad { color: #ef4444; }

.platform-card .btn {
    width: 100%;
    background: var(--surface-hover);
    color: var(--text-primary);
}

.platform-card .btn:hover {
    background: var(--accent-1);
    color: white;
}

/* Features Section */
.features-section {
    padding: 100px 5%;
    background: var(--surface-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-1);
    transition: var(--transition);
}

.feature-card:hover .icon-wrapper {
    background: var(--accent-1);
    color: white;
    transform: rotate(10deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #06080d;
    padding: 80px 5% 30px;
    color: #94a3b8;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-1);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
}

.footer-notices {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 5%;
    margin-top: 30px;
}

.footer-notices p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 15px;
}

.footer-notices a {
    color: var(--accent-1);
    text-decoration: none;
    transition: var(--transition);
}

.footer-notices a:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

.footer-notices p:last-child {
    margin-bottom: 0;
}

/* Standard Subpages */
.page-header {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 25%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, var(--accent-2) 0%, transparent 60%);
    opacity: 0.1;
    filter: blur(80px);
    z-index: -1;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    z-index: 1;
}

.page-content {
    padding: 80px 10%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--surface-color);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 80px;
    border: 1px solid var(--border-color);
}

.page-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-content h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.page-content ul, .page-content ol {
    margin-left: 20px;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.page-content li {
    margin-bottom: 10px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        padding-top: 150px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        margin: 0 auto 30px;
    }
    
    .stats {
        justify-content: center;
    }
    
    .hero-image {
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .floating-1, .floating-2 {
        position: relative;
        inset: 0;
        margin: 10px auto;
    }
}
