/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables - matching app/globals.css */
:root {
    /* Colors from app design system */
    --ui-background: 30 41 55;
    --ui-foreground: 240 240 255;
    --ui-card: 31 41 55;
    --ui-muted: 31 41 60;
    --ui-muted-foreground: 200 200 200;
    --ui-primary: 18 208 255;
    --ui-primary-foreground: 0 0 0;
    --ui-border: 200 200 200;
    
    /* Radius */
    --radius-card: 10px;
    --radius-button: 7px;
    
    /* Spacing */
    --spacing-page: 3rem;
    --spacing-section: 1.5rem;
    --spacing-card: 1.5rem;
    
    /* Typography */
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* Base Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background: rgb(var(--ui-background));
    color: rgb(var(--ui-foreground));
    font-family: var(--font-sans);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: rgb(var(--ui-card));
    border-bottom: 1px solid rgb(var(--ui-border) / 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    background: rgb(var(--ui-primary));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-letter {
    color: rgb(var(--ui-primary-foreground));
    font-weight: 700;
    font-size: 1rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(var(--ui-foreground));
    letter-spacing: -0.02em;
}

.footer-brand .logo {
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.2s;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    border-radius: var(--radius-button);
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    height: 2.5rem;
}

.btn-primary {
    background: rgb(var(--ui-primary));
    color: rgb(var(--ui-primary-foreground));
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgb(var(--ui-border) / 0.2);
    color: rgb(var(--ui-muted-foreground));
}

.btn-outline:hover {
    background: rgb(var(--ui-muted) / 0.4);
}

.btn-lg {
    height: 2.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--spacing-page) 0;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(135deg, rgb(var(--ui-foreground)), rgb(var(--ui-primary)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgb(var(--ui-muted-foreground));
    margin-bottom: 2rem;
}

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

/* Features Section */
.features {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: rgb(var(--ui-foreground));
}

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

.feature-card {
    background: rgb(var(--ui-card));
    border: 1px solid rgb(var(--ui-border) / 0.1);
    border-radius: var(--radius-card);
    padding: var(--spacing-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgb(var(--ui-primary) / 0.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: rgb(var(--ui-foreground));
}

.feature-card p {
    color: rgb(var(--ui-muted-foreground));
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: rgb(var(--ui-card));
    border-top: 1px solid rgb(var(--ui-border) / 0.1);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: 0.5rem;
}

.footer-description {
    color: rgb(var(--ui-muted-foreground));
    font-size: 0.9rem;
}

.footer-links h4 {
    color: rgb(var(--ui-foreground));
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

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

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: rgb(var(--ui-muted-foreground));
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9rem;
}

.footer-links ul li a:hover {
    color: rgb(var(--ui-primary));
}

.footer-bottom {
    border-top: 1px solid rgb(var(--ui-border) / 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgb(var(--ui-muted-foreground));
    font-size: 0.85rem;
}

/* Content Page Styles */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(var(--ui-foreground));
}

.content-page h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: rgb(var(--ui-foreground));
}

.content-page h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: rgb(var(--ui-foreground));
}

.content-page p {
    color: rgb(var(--ui-muted-foreground));
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page ul, .content-page ol {
    color: rgb(var(--ui-muted-foreground));
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content-page a {
    color: rgb(var(--ui-primary));
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

.last-updated {
    color: rgb(var(--ui-muted-foreground));
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.125rem;
    }
    
    .logo-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .logo-letter {
        font-size: 0.875rem;
    }
}
