/* Font faces */
@font-face {
    font-family: 'Geist';
    src: url('https://vercel.com/font/geist-sans/Geist-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('https://vercel.com/font/geist-mono/GeistMono-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme variables */
    --text-color: #000000;
    --background: #ffffff;
    --border-color: #eaeaea;
    --hover-bg: #fafafa;
    --switch-bg: #eaeaea;
    --switch-active: #000000;
    --link-color: #000000;
}

[data-theme="dark"] {
    --text-color: #ffffff;
    --background: #000000;
    --border-color: #333333;
    --hover-bg: #111111;
    --switch-bg: #333333;
    --switch-active: #ffffff;
    --link-color: #ffffff;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* All hyperlinks use theme variable - override browser defaults */
body a:link,
body a:visited,
body a:hover,
body a:active,
body a:focus,
body a:any-link {
    color: var(--link-color);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scroll-down {
    transform: translateY(-100%);
}

header.scroll-up {
    transform: translateY(0);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 35px;
    width: 132px;
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 100%;
    width: 100%;
    color: var(--text-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--link-color);
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links .nav-login {
    font-weight: 500;
    display: none;
}

/* Navigation button style */
.btn-nav {
    padding: 0.25rem 0.5rem;
    border-radius: 0;
    border: 1px solid var(--border-color);
    background: transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.btn-nav:hover {
    background: var(--hover-bg);
    opacity: 1;
}

/* Toggle Switch in footer */
.theme-toggle-wrapper {
    display: flex;
    align-items: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--switch-bg);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: var(--background);
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--switch-active);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Remove old theme toggle button styles that were for the circular button */
.footer-right .theme-toggle-btn {
    display: none;
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.market-availability {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0.6;
    font-style: italic;
}

.market-availability a {
    color: var(--link-color);
    text-decoration: underline;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-buttons .btn.secondary {
    display: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn.secondary {
    border: 1px solid var(--border-color);
    color: var(--link-color);
}

.btn:hover {
    opacity: 0.8;
}

/* Features Section */
.features {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-number {
    font-family: 'Geist Mono', monospace;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-card p {
    opacity: 0.7;
    font-size: 0.9rem;
}

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

/* Documentation Section */
.documentation {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.docs-header {
    margin-bottom: 3rem;
}

.docs-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.docs-header p {
    opacity: 0.7;
}

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

.doc-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

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

.doc-content h3 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.doc-content p {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem; /* Add some space above the footer */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* Arrange left and right sides */
    justify-content: space-between; /* Push left/right to edges */
    align-items: center; /* Vertically align items */
    gap: 2rem; /* Add gap between left/right */
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-left .logo-svg {
    height: 25px; /* Slightly smaller logo in footer */
    width: auto;
}

.footer-left p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.footer-right .theme-toggle-btn {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.footer-right .theme-toggle-btn:hover {
    background: var(--hover-bg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    nav {
        padding: 0.75rem 1rem;
        position: relative;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        padding: 0;
        gap: 0;
        z-index: 999;
    }

    .nav-links.show {
        display: flex; /* Show when toggled */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a,
    .nav-links .theme-toggle-btn {
        padding: 1rem; /* Add padding to list items/button */
        display: block; /* Make links/button full width */
        width: 100%;
    }

    .mobile-menu-button {
        display: block;
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: auto;
        z-index: 1001;
    }
    
    .logo {
        margin-right: auto;
    }
    
    .theme-toggle-btn {
        display: none;
    }

    .feature-card p {
        font-size: 1rem; /* Slightly larger text on mobile */
    }

    /* Adjust footer for mobile */
    .footer-content {
        flex-direction: row; /* Keep side by side on mobile */
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap; /* Allow wrapping if needed */
    }

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-right .theme-toggle-btn {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.1rem;
    }

    /* Update mobile theme toggle display */
    .theme-toggle-btn {
        display: none;
    }
    
    /* Keep the switch visible on mobile */
    .theme-toggle-wrapper {
        display: flex;
        margin-left: 0;
    }
    
    /* Make the switch slightly smaller on mobile */
    .switch {
        width: 36px;
        height: 18px;
    }
    
    .slider:before {
        height: 14px;
        width: 14px;
    }
    
    input:checked + .slider:before {
        transform: translateX(18px);
    }
} 