:root {
    --bg: #0f1c2c;
    --bg-elevated: #18253a;
    --text: #f4f6fb;
    --text-muted: #a8b3c4;
    --accent: #5de0e3;
    --accent-soft: #5de0e333;
    --border: #2a3a52;
    --max-width: 720px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #0f1c2c 0%, #182d43 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
}

header.brand {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.brand a.logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

header.brand a.logo img {
    width: 32px;
    height: 32px;
    display: block;
}

header.brand a.logo span {
    color: var(--accent);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--accent);
}

h1 {
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.75rem 0 0.5rem;
    color: var(--text);
}

p {
    color: var(--text-muted);
    margin: 0.75rem 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

ul {
    color: var(--text-muted);
    padding-left: 1.25rem;
}

li {
    margin: 0.4rem 0;
}

.lead {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin: 1rem 0;
}

.card h3 {
    margin-top: 0;
}

.button {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
}

.button:hover {
    text-decoration: none;
    opacity: 0.9;
}

.button.outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.app-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.app-row {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.app-row:hover {
    border-color: var(--accent);
    text-decoration: none;
}

.app-row .meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.app-row .arrow {
    color: var(--accent);
    font-size: 1.25rem;
}

footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

footer a {
    color: var(--text-muted);
    margin-right: 1.25rem;
}

footer a:hover {
    color: var(--accent);
}

code {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.92em;
    color: var(--accent);
}

.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 540px) {
    h1 { font-size: 2rem; }
    main { padding: 3rem 1.25rem 5rem; }
    nav a { margin-left: 1rem; font-size: 0.9rem; }
}
