:root {
    --bg: #ffffff;
    --text: #000000;
    --nav-border: #929292;
    --blue: #0066cc;
    --green: #009a61;
}

[data-theme="dark"] {
    --bg: #0c0c0c;
    --text: #ffffff;
    --nav-border: #646363;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease;
}

/* The fix for the stretching scale */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    border-bottom: 1px solid var(--nav-border);
    padding: 12px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.hide {
    display: none !important;
}

.btn-logout {
    color: #ef4444;
    border: 1.5px solid #ef4444;
    border-radius: 8px;
    padding: 6px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}


.hero {
    text-align: center;
    /* Reduced top padding from 100px to 5vh to save space */
    padding: 5vh 0 30px;
}

/* 2. Make the Hero Headline more responsive */
.hero h1 {
    /* Using clamp so it shrinks on smaller vertical screens */
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

/* 3. Reduce subtitle margin */
.hero p {
    padding: 20px;
    color: #6b7280;
    font-size: 16px; /* Slightly smaller for better fit */
    font-weight: 600;
    margin-bottom: 24px;
    max-width: 560px;
    margin-inline: auto;
}


.text-blue {
    color: var(--blue);
}

.btn-primary {
    text-decoration: none !important;
    background: var(--blue);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
}

/* Features Grid - Fixed 3-Column Scaling */
.features-grid {
    padding-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    padding: 40px 24px;
    border-radius: 24px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
}

.card p {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 0.9;
}

.card-blue {
    background: #0084ff;
    color: white;
}

.card-white {
    background: var(--bg);
    border: 1px solid var(--nav-border);
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.card-green {
    background: var(--green);
    color: white;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--nav-border);
    margin-bottom: 24px;
}

/* Mobile logic */
@media (max-width: 850px) {
    .features-grid {
        grid-template-columns: 6fr;
    }

    .brand-name {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }
}