:root {
    /* Semantic Palette */
    --bg-main: #050505;
    --bg-subtle: rgba(255, 255, 255, 0.03);
    --bg-card: rgba(20, 20, 20, 0.6);

    --text-main: #ffffff;
    --text-sub: #a1a1aa;
    --text-muted: #52525b;
    --text-on-accent: #050505;

    --primary: #3b82f6;
    --accent: #0ea5e9;
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;

    --nav-bg: rgba(0, 0, 0, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.05);

    --gradient-primary: linear-gradient(135deg, #eee 0%, #999 100%);
    --bg-ambient: radial-gradient(circle at 50% 0%, #111 0%, #050505 60%);

    /* Mobile nav specific */
    --nav-mobile-bg: rgba(5, 5, 5, 0.95);
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-main: #ffffff;
        --bg-subtle: rgba(0, 0, 0, 0.03);
        --bg-card: rgba(255, 255, 255, 0.8);

        --text-main: #111827;
        --text-sub: #4b5563;
        --text-muted: #9ca3af;
        --text-on-accent: #ffffff;

        --nav-bg: rgba(255, 255, 255, 0.8);
        --border-subtle: rgba(0, 0, 0, 0.1);

        --gradient-primary: linear-gradient(135deg, #111827 0%, #374151 100%);
        --bg-ambient: radial-gradient(circle at 50% 0%, #f3f4f6 0%, #ffffff 60%);

        --nav-mobile-bg: rgba(255, 255, 255, 0.95);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Simple Dark Background */
.dark-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-ambient);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    transition: all 0.3s;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.01em;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.btn-nav {
    background: var(--text-main) !important;
    color: var(--bg-main) !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: all 0.2s !important;
}

.btn-nav:hover {
    background: var(--text-muted) !important;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero - Centered & Clean */
.hero {
    min-height: 90vh;
    /* Slightly shorter */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    max-width: 1000px;
    /* Narrower focus */
    margin: 0 auto;
    text-align: center;
}

.hero-content.centered-hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-sub);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-sub);
    max-width: 540px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-main);
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-sub);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Only SVGs now */
.browser-icons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.browser-icons-row:hover {
    opacity: 0.8;
}

.browser-icon {
    width: 28px;
    height: 28px;
    color: currentColor;
    transition: transform 0.2s;
}

.browser-icon:hover {
    transform: scale(1.2);
    color: var(--text-main);
}

/* Sections */
section {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-sub);
    font-size: 1.125rem;
}

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

.feature-card {
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.2s;
}

.feature-card:hover {
    background: var(--bg-subtle);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    margin-bottom: 1.5rem;
    transition: all 0.2s;
}

.feature-card:hover .feature-icon {
    background: var(--text-main);
    color: var(--bg-main);
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-sub);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* How It Works */
.scoring-visual {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.score-range {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.score-range.safe {
    border-top: 3px solid var(--success);
}

.score-range.suspicious {
    border-top: 3px solid var(--warning);
}

.score-range.blocked {
    border-top: 3px solid var(--danger);
}

.score-label {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.score-status {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.safe .score-status {
    color: var(--success);
}

.suspicious .score-status {
    color: var(--warning);
}

.blocked .score-status {
    color: var(--danger);
}

/* Mobile Section - Redesigned as Rows */
.mobile-row-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.mobile-row {
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}

.mobile-row:hover {
    background: var(--border-subtle);
    border-color: var(--text-sub);
}

.mobile-info {
    flex: 1;
}

.mobile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.mobile-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
}

.mobile-header svg {
    color: var(--text-main);
}

.mobile-info p {
    color: var(--text-sub);
    font-size: 0.9rem;
    margin-left: 3rem;
    /* Align with text start */
}

.mobile-action {
    margin-left: 2rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Download Section */
.download-card {
    text-align: center;
    padding: 4rem 2rem;
    background: radial-gradient(circle at center, var(--bg-subtle) 0%, transparent 70%);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
}

.download-note {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-sub);
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--text-main);
}

.footer-logo img {
    width: 24px;
    height: 24px;
}

.footer-links a {
    color: var(--text-muted);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--nav-mobile-bg);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-links.active {
        transform: translateY(0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 0.5rem;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding-top: 8rem;
        padding-bottom: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .mobile-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mobile-action {
        margin-left: 0;
        width: 100%;
    }

    .mobile-action .btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-info p {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-logo {
        filter: grayscale(0);
        opacity: 0.9;
        margin-bottom: 0.5rem;
    }

    .footer-logo img {
        width: 48px;
        height: 48px;
    }
}