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

:root {
  --card: #ffffff;
  --ring: #3b82f6;
  --input: #e5e7eb;
  --muted: #f9fafb;
  --accent: #e0f2fe;
  --border: #e5e7eb;
  --radius: 0.375rem;
  --chart-1: #3b82f6;
  --chart-2: #2563eb;
  --chart-3: #1d4ed8;
  --chart-4: #1e40af;
  --chart-5: #1e3a8a;
  --popover: #ffffff;
  --primary: #3b82f6;
  --sidebar: #f9fafb;
  --font-mono: JetBrains Mono, monospace;
  --font-sans: Inter, sans-serif;
  --secondary: #f3f4f6;
  --background: #ffffff;
  --font-serif: Source Serif 4, serif;
  --foreground: #333333;
  --destructive: #ef4444;
  --sidebar-ring: #3b82f6;
  --sidebar-accent: #e0f2fe;
  --sidebar-border: #e5e7eb;
  --card-foreground: #333333;
  --sidebar-primary: #3b82f6;
  --muted-foreground: #6b7280;
  --accent-foreground: #1e3a8a;
  --popover-foreground: #333333;
  --primary-foreground: #ffffff;
  --sidebar-foreground: #333333;
  --secondary-foreground: #4b5563;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #1e3a8a;
  --sidebar-primary-foreground: #ffffff;
  --transition: all 0.2s ease-in-out;
}

.dark {
  --card: #262626;
  --ring: #3b82f6;
  --input: #404040;
  --muted: #1f1f1f;
  --accent: #1e3a8a;
  --border: #404040;
  --radius: 0.375rem;
  --chart-1: #60a5fa;
  --chart-2: #3b82f6;
  --chart-3: #2563eb;
  --chart-4: #1d4ed8;
  --chart-5: #1e40af;
  --popover: #262626;
  --primary: #3b82f6;
  --sidebar: #171717;
  --secondary: #262626;
  --background: #171717;
  --foreground: #e5e5e5;
  --destructive: #ef4444;
  --sidebar-ring: #3b82f6;
  --sidebar-accent: #1e3a8a;
  --sidebar-border: #404040;
  --card-foreground: #e5e5e5;
  --sidebar-primary: #3b82f6;
  --muted-foreground: #a3a3a3;
  --accent-foreground: #bfdbfe;
  --popover-foreground: #e5e5e5;
  --primary-foreground: #ffffff;
  --sidebar-foreground: #e5e5e5;
  --secondary-foreground: #e5e5e5;
  --destructive-foreground: #ffffff;
  --sidebar-accent-foreground: #bfdbfe;
  --sidebar-primary-foreground: #ffffff;
}

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

body {
    font-family: var(--font-sans, 'Inter', sans-serif);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header & Navigation */
header {
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    text-decoration: none;
    letter-spacing: -0.025em;
    flex: 1;
}

.logo span {
    color: var(--muted-foreground);
}

.nav-pill-wrapper {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    align-items: center;
    background-color: var(--background);
    border: 1px solid var(--foreground);
    border-radius: 9999px;
    padding: 0.35rem 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-links a {
    display: inline-block;
    color: var(--foreground);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s ease-in-out;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
}

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

.header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

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

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

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

.btn-outline:hover {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

/* Main Content Area */
main {
    flex: 1;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem;
    text-align: center;
    background: var(--background);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: -0.05em;
    color: var(--foreground);
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

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

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

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    letter-spacing: -0.025em;
}

/* Grid & Cards (Minimalist) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
    color: var(--card-foreground);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
    letter-spacing: -0.025em;
}

.card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.card-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
}

.card-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--foreground);
}

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

.dark .form-group input,
.dark .form-group textarea {
    background-color: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 1px var(--ring);
}

/* Footer */
footer {
    background-color: var(--background);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-brand h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.footer-brand p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.75rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    color: var(--foreground);
    transition: var(--transition);
    background-color: transparent;
}

.social-btn:hover {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--secondary);
    color: var(--foreground);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}
