* {
    box-sizing: border-box;
}

:root {
    --bg: #f7f8fa;
    --bg-elev: #ffffff;
    --border: #e1e4ea;
    --text: #14161a;
    --muted: #565d6b;
    --accent: #ff8a00;
    --badge-bg: #fff2e0;
    --badge-text: #a35a0a;
    --header-bg: rgba(247, 248, 250, 0.85);
}

[data-theme="dark"] {
    --bg: #0f1115;
    --bg-elev: #181b22;
    --border: #292e38;
    --text: #f5f5f5;
    --muted: #a7adb8;
    --accent: #ff8a00;
    --badge-bg: #2a2117;
    --badge-text: #ffb45c;
    --header-bg: rgba(15, 17, 21, 0.85);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f1115;
        --bg-elev: #181b22;
        --border: #292e38;
        --text: #f5f5f5;
        --muted: #a7adb8;
        --accent: #ff8a00;
        --badge-bg: #2a2117;
        --badge-text: #ffb45c;
        --header-bg: rgba(15, 17, 21, 0.85);
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease, color 0.2s ease;
}

main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0 0 16px;
    letter-spacing: -0.04em;
}

p {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.navbar .brand {
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    margin-left: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--text);
}

.theme-toggle {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.hero {
    margin-bottom: 60px;
}

.apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    display: block;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}
.card-container {
    display: flex;
    gap: 1rem;
}

@media (max-width: 600px) {
    .card-container {
        flex-direction: column;
    }
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card h2 {
    margin: 0 0 12px;
    font-size: 1.5rem;
}

.badge {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--badge-bg);
    color: var(--badge-text);
    font-size: 0.85rem;
}

.not-found {
    text-align: center;
    padding: 60px 0;
}

.not-found h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    margin-bottom: 8px;
}

.not-found p {
    margin: 0 auto 28px;
}

.button-link {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--accent);
    color: #14161a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.button-link:hover {
    opacity: 0.9;
}

footer {
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
