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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #f4f5f7;
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #111827;
    color: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.logo-mark {
    background: #2563eb;
    color: #f9fafb;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.logo-text {
    font-size: 15px;
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

nav a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.18s ease, color 0.18s ease;
}

nav a:hover {
    background: rgba(249, 250, 251, 0.12);
}

nav a.active {
    background: #f9fafb;
    color: #111827;
}

main {
    max-width: 1040px;
    width: 100%;
    margin: 32px auto;
    padding: 0 16px 32px;
    flex: 1;
}

.hero {
    text-align: center;
    margin-bottom: 32px;
}

.hero h1 {
    font-size: 26px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: #4b5563;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.tile {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, box-shadow 0.16s ease, translate 0.16s ease;
}

.tile h2 {
    font-size: 18px;
    margin-bottom: 6px;
}

.tile p {
    font-size: 14px;
    color: #6b7280;
}

.tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

/* Inner pages */

.page-header {
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 22px;
    margin-bottom: 6px;
}

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

.app-card,
.setting-card,
.info-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.app-card h2,
.setting-card h2,
.info-box h2 {
    font-size: 17px;
    margin-bottom: 6px;
}

.app-card p,
.setting-card p,
.info-box p {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 10px;
}

.app-card button {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: #e5e7eb;
    color: #6b7280;
}

.info-box ol {
    margin-left: 18px;
    margin-top: 8px;
    color: #4b5563;
    font-size: 14px;
}

.info-box li {
    margin-bottom: 4px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

footer {
    border-top: 1px solid #e5e7eb;
    padding: 12px 18px;
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    header {
        flex-wrap: wrap;
        gap: 8px;
    }

    nav {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 22px;
    }
}
