:root {
    --primary: #0070f3;
    --primary-hover: #0051bb;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --text: #111111;
    --text-muted: #666666;
    --border: #eaeaea;
    --max-width: 1100px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    z-index: 1000;
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 110px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
    transition: height 0.3s ease;
}

.mobile-menu-btn {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--text);
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: #fafafa;
    border-color: var(--text);
    box-shadow: none;
}

.btn-hero {
    padding: 1rem 2rem;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-wrap: balance;
}

/* Features */
.features {
    padding: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* CTA Section */
.cta-card {
    padding: 6rem 1.5rem;
    text-align: center;
    background: var(--bg-alt);
    border-radius: 20px;
    margin: 4rem auto 0;
    border: 1px solid var(--border);
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.cta-card h2,
.cta-card p {
    text-align: center;
    width: 100%;
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.cta-card p {
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    nav {
        height: 80px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block !important;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 1001;
        width: 44px;
        height: 44px;
        position: relative;
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text) !important;
        margin: 5px auto;
        transition: 0.3s;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .logo img {
        height: 50px;
    }

    @media (max-width: 480px) {
        .logo img {
            height: 40px;
        }

        .btn-outline {
            padding: 0.5rem 0.8rem;
            font-size: 0.85rem;
        }

        nav {
            gap: 0.5rem;
        }
    }
}

/* Improve Touch Targets */
.btn,
.nav-links a,
.footer-content a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* Dark Mode Variables Preview (Placeholder for system preference) */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-alt: #0a0a0a;
        --text: #ffffff;
        --text-muted: #a0a0a0;
        --border: #333333;
    }

    header {
        background: rgba(0, 0, 0, 0.8);
    }

    .btn-outline:hover {
        background: #111111;
        border-color: #ffffff;
    }

    .feature-card {
        background: #0a0a0a;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1,
.hero p,
.hero-btns,
.feature-card {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.feature-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}