:root {
    --bg: #09090b;
    --surface: #16161a;
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --muted: #71717a;
    --line: rgba(255, 255, 255, 0.06);
    --accent: #a78bfa;
    --accent-dim: rgba(167, 139, 250, 0.08);
    --focus: #fbbf24;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg);
    background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(167, 139, 250, 0.07), transparent);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: min(860px, 90vw);
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.name {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text-secondary);
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10;
    background: var(--accent);
    color: var(--bg);
    padding: 0.6rem 0.9rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

h1,
h2 {
    font-family: "Manrope", sans-serif;
    letter-spacing: -0.03em;
}

h1 {
    margin: 0 0 2rem;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 2rem;
    line-height: 1.5;
}

.cards {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    max-width: 480px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    border-color: rgba(167, 139, 250, 0.2);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.06), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.card h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.card-desc {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}

.card p {
    margin: 0.6rem 0;
    color: var(--text-secondary);
}

.card a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.app-icon {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    border: 1px solid var(--line);
    flex-shrink: 0;
    margin-bottom: 0.75rem;
}

.link-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.link-stack a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.link-stack a:hover {
    color: var(--accent);
    border-color: rgba(167, 139, 250, 0.3);
    background: var(--accent-dim);
}

.link-stack a svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .link-stack {
          flex-direction: column;
    }
    .link-stack a {
          justify-content: center;
    }
}
