:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --bg-base: #0a0a0f;
    --bg-surface: #14141c;
    --bg-surface-hover: #1c1c26;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(129, 140, 248, 0.4);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --gradient-from: #818cf8;
    --gradient-to: #a78bfa;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(129, 140, 248, 0.3);
}

[data-theme="light"] {
    --bg-base: #fafafa;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f8fafc;
    --border-color: #e2e8f0;
    --border-color-hover: rgba(99, 102, 241, 0.4);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.1);
    --gradient-from: #4f46e5;
    --gradient-to: #7c3aed;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 10px 25px -5px rgba(79, 70, 229, 0.15), 0 0 0 1px rgba(79, 70, 229, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 5%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 75% 95%, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}


.header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.theme-toggle:hover {
    color: var(--text-main);
    border-color: var(--border-color-hover);
    background: var(--bg-surface);
}

[data-theme="dark"] .icon-sun {
    display: block;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

[data-theme="light"] .icon-sun {
    display: none;
}

[data-theme="light"] .icon-moon {
    display: block;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero {
    text-align: center;
    margin: 0 0 3rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}


.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
    border-color: var(--border-color-hover);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.card-icon-wrapper svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.card-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .card-badge {
    background: rgba(100, 116, 139, 0.08);
}

.card-content {
    flex: 1;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
    color: var(--text-main);
}

.card-description {
    font-size: 0.825rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.875rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.card-action svg {
    transform: translateX(0);
    transition: transform 0.15s ease;
}

.card:hover .card-action svg {
    transform: translateX(4px);
}

.footer {
    text-align: center;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-title {
        font-size: 2rem;
    }
    .container {
        padding: 2rem 1rem 3rem;
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.75rem;
    }
    .header {
        padding: 0.875rem 1rem;
    }
    .container {
        padding: 1.5rem 1rem 2.5rem;
    }
}
