:root {
    --color-bg: #f8f9fa;
    --color-surface: #ffffff;
    --color-primary: #1a1a2e;
    --color-accent: #6c63ff;
    --color-text: #2d2d2d;
    --color-text-light: #6b7280;
    --color-border: #e5e7eb;
    --max-width: 720px;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background: var(--app-header-bg, var(--color-primary));
    color: var(--app-header-text, #fff);
    padding: 3rem 1.5rem;
    text-align: center;
}

.header--app {
    padding: 4rem 1.5rem 3rem;
}

.header__icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header__title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.header__subtitle {
    font-size: 1.1rem;
    opacity: 0.85;
    font-weight: 400;
    max-width: var(--max-width);
    margin: 0 auto;
}

.header__nav {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.header__nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s;
}

.header__nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Main content */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* Sections */
.section {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--app-header-bg, var(--color-primary));
}

.section p,
.section li {
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.section ul {
    padding-left: 1.25rem;
}

.section ul li {
    margin-bottom: 0.5rem;
}

.section a {
    color: var(--app-accent, var(--color-accent));
    text-decoration: none;
}

.section a:hover {
    text-decoration: underline;
}

.section h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text);
}

.section h3:first-of-type {
    margin-top: 0.5rem;
}

/* App cards (home page) */
.app-grid {
    display: grid;
    gap: 1.5rem;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.15s;
}

.app-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.app-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 22%;
    flex-shrink: 0;
}

.app-card__name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.app-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    color: var(--color-text-light);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Contact info */
.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-bg);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* Last updated */
.last-updated {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 480px) {
    .header__title {
        font-size: 1.5rem;
    }

    .section {
        padding: 1.5rem;
    }

    .header--app {
        padding: 3rem 1.5rem 2rem;
    }
}
