:root {
    /* Light Mode Palette */
    --bg-color: #f8fafc;
    --bg-gradient: radial-gradient(at 0% 0%, hsla(253,16%,7%,0) 0, transparent 50%), 
                   radial-gradient(at 50% 0%, hsla(225,39%,30%,0.03) 0, transparent 50%), 
                   radial-gradient(at 100% 0%, hsla(339,49%,30%,0.03) 0, transparent 50%);
    --text-color: #475569;
    --heading-color: #0f172a;
    --accent-color: #4f46e5;
    --accent-hover: #4338ca;
    
    /* Card & UI Elements */
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(226, 232, 240, 0.8);
    --nav-bg: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 20px 40px -15px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    
    /* Effects */
    --blur: blur(16px);
    --radius-lg: 24px;
    --radius-md: 16px;
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Floating Navbar */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    margin: 1.5rem auto;
    width: 90%;
    max-width: 1100px;
    background: var(--nav-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 1.5rem;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--heading-color);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-img {
    height: 36px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 100px;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
    background-color: rgba(79, 70, 229, 0.08);
}

main {
    flex: 1;
    padding: 3rem 5%;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.full-width-main {
    max-width: 1100px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 5rem;
    animation: slideUp 0.6s ease-out;
}

.hero-expanded {
    padding: 4rem 0;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--heading-color);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #1e293b, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(79, 70, 229, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.23);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--heading-color);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
    animation: slideUp 0.7s ease-out;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Details Section */
.details-section {
    margin-bottom: 5rem;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    color: var(--heading-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-hover);
    border-color: rgba(79, 70, 229, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Glass/Modern Cards (for Legal Pages) */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-soft);
    margin-bottom: 3rem;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.glass-card h1, .glass-card h2, .glass-card h3 {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    letter-spacing: -0.02em;
}

.glass-card h1:first-child {
    margin-top: 0;
    font-size: 2.75rem;
    border-bottom: 2px solid rgba(226, 232, 240, 0.5);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
}

.glass-card p {
    margin-bottom: 1.25rem;
}

.glass-card ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.glass-card li {
    margin-bottom: 0.75rem;
}

/* Highlight Box */
.highlight-info {
    background: linear-gradient(to right, rgba(79, 70, 229, 0.05), transparent);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--heading-color);
    font-weight: 500;
}

/* Link Grid for Homepage */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card-link {
    display: block;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
}

.card-link:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-hover);
}

.card-link h3 {
    color: var(--heading-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Expanded Footer */
.expanded-footer {
    background: white;
    border-top: 1px solid var(--card-border);
    padding: 4rem 5% 2rem;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto 3rem;
}

.footer-col h3 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.footer-col a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 1.5rem;
        width: 95%;
        top: 1rem;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 1rem;
    }
    
    .glass-card {
        padding: 2rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        gap: 2rem;
    }
}
