/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Outfit:wght@400;700;900&display=swap');

:root {
    /* Typography */
    --pico-font-family-sans-serif: 'Inter', system-ui, -apple-system, sans-serif;
    --header-font-family: 'Outfit', sans-serif;

    /* Light Theme (Default) */
    --pico-background-color: #f8fafc;
    /* Slate 50 */
    --pico-color: #0f172a;
    /* Slate 900 */
    --pico-text-selection-color: rgba(99, 102, 241, 0.25);

    --pico-muted-color: #64748b;
    /* Slate 500 */
    --pico-muted-border-color: #cbd5e1;
    /* Slate 300 */

    --pico-primary: #4f46e5;
    /* Indigo 600 */
    --pico-primary-background: #4f46e5;
    --pico-primary-hover: #4338ca;
    /* Indigo 700 */
    --pico-primary-underline: rgba(79, 70, 229, 0.5);

    --pico-card-background-color: rgba(255, 255, 255, 0.8);
    --pico-card-border-color: rgba(226, 232, 240, 0.8);
    --pico-card-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);

    --nav-background-color: rgba(255, 255, 255, 0.8);
    /* Light mode nav */

    --premium-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --hero-text-gradient: linear-gradient(to right, #1e293b 20%, #475569 100%);
}

[data-theme="dark"],
:root:not([data-theme="light"]) {
    /* Dark Theme Overrides */
    --pico-background-color: #0f172a;
    /* Slate 900 */
    --pico-color: #e2e8f0;
    /* Slate 200 */

    --pico-muted-color: #94a3b8;
    /* Slate 400 */
    --pico-muted-border-color: #334155;
    /* Slate 700 */

    --pico-primary: #6366f1;
    /* Indigo 500 */
    --pico-primary-background: #6366f1;
    --pico-primary-hover: #818cf8;
    /* Indigo 400 */

    --pico-card-background-color: rgba(30, 41, 59, 0.6);
    --pico-card-border-color: rgba(148, 163, 184, 0.1);
    --pico-card-box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --nav-background-color: rgba(15, 23, 42, 0.8);
    /* Dark mode nav */

    --premium-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --hero-text-gradient: linear-gradient(to right, #f8fafc 20%, #94a3b8 100%);
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5,
h6,
hgroup h2 {
    font-family: var(--header-font-family);
    letter-spacing: -0.025em;
    color: var(--pico-color);
}

h1 {
    font-weight: 900;
}

/* Global Styles */
body {
    background-color: var(--pico-background-color);
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Navbar */
body>header,
nav.container-fluid,
nav.container {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--nav-background-color);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    padding-left: 2rem;
    padding-right: 2rem;
}

nav strong {
    font-family: var(--header-font-family);
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--premium-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    margin-bottom: 1rem;
    background: var(--hero-text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--pico-muted-color);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Cards & Glassmorphism */
article,
.card {
    background: var(--pico-card-background-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--pico-card-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

article:hover,
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
}

article header {
    font-family: var(--header-font-family);
    font-weight: 700;
    color: var(--pico-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--pico-card-border-color);
}

/* Buttons */
button,
[role="button"] {
    background: var(--pico-primary);
    border: none;
    font-family: var(--header-font-family);
    font-weight: 600;
    transition: all 0.2s ease;
}

button:hover,
[role="button"]:hover {
    background: var(--pico-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

button.outline,
[role="button"].outline {
    background: transparent;
    border: 1px solid var(--pico-primary);
    color: var(--pico-primary);
}

button.outline:hover,
[role="button"].outline:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--pico-primary-hover);
}

/* Utils */
.text-gradient {
    background: var(--premium-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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