@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(0, 0%, 5%);
    --border: hsl(0, 0%, 90%);
    --card: hsl(0, 0%, 100%);
    --card-border: hsl(0, 0%, 88%);
    --primary: hsl(0, 0%, 9%);
    --primary-foreground: hsl(0, 0%, 98%);
    --secondary: hsl(0, 0%, 96%);
    --secondary-foreground: hsl(0, 0%, 9%);
    --muted: hsl(0, 0%, 96%);
    --muted-foreground: hsl(0, 0%, 45%);
    --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: Space Grotesk, sans-serif;
}

.dark {
    --background: hsl(0, 0%, 5%);
    --foreground: hsl(0, 0%, 98%);
    --border: hsl(0, 0%, 18%);
    --card: hsl(0, 0%, 7%);
    --card-border: hsl(0, 0%, 15%);
    --primary: hsl(0, 0%, 98%);
    --primary-foreground: hsl(0, 0%, 9%);
    --secondary: hsl(0, 0%, 14%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(0, 0%, 14%);
    --muted-foreground: hsl(0, 0%, 63%);
}

.dark .theme-icon-light {
    display: none;
}

.dark .theme-icon-dark {
    display: block !important;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
}

body {
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

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

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-ghost {
    background: transparent;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

.btn:hover {
    opacity: 0.9;
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.dark .card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    background: var(--secondary);
    color: var(--secondary-foreground);
    white-space: nowrap;
}

.input, .textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--foreground);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input:focus, .textarea:focus {
    outline: none;
    border-color: var(--foreground);
}

.textarea {
    resize: vertical;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.3s;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.dark header.scrolled {
    background: rgba(13, 13, 13, 0.8);
}

.nav-links a {
    text-decoration: none;
    color: var(--muted-foreground);
    font-weight: 500;
    transition: color 0.2s;
}

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

.section {
    padding: 5rem 0;
}

@media (min-width: 640px) {
    .nav-links {
        display: flex !important;
        gap: 2rem;
    }
}

@media (min-width: 768px) {
    .section {
        padding: 8rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}
