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

:root {
    --color-bg: #f8fafc;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-primary: #0071e3;
    --color-primary-hover: #0060c0;
    --color-border: #e2e8f0;
    --radius: 12px;
    --max-width: 960px;
}

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;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---- Nav ---- */
header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 10;
}

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

nav .logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

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

nav a:hover,
nav a.active {
    color: var(--color-primary);
}

/* ---- Main ---- */
main {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 3rem 0 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
}

/* ---- Apps ---- */
.apps {
    padding: 2rem 0;
}

.apps h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.app-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    flex-shrink: 0;
}

.app-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.35rem;
}

.app-info p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.app-store-badge img {
    height: 40px;
}

/* ---- Content Pages ---- */
.page-content {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-top: 1rem;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.page-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p,
.page-content li {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.page-content ul {
    padding-left: 1.5rem;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.page-content a:hover {
    text-decoration: underline;
}

/* ---- Contact Form ---- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
}

.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--color-bg);
    color: var(--color-text);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form button {
    align-self: flex-start;
    padding: 0.75rem 2rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-form button:hover {
    background: var(--color-primary-hover);
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--color-border);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

footer ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

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

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

/* ---- Responsive ---- */
@media (max-width: 600px) {
    .app-card {
        flex-direction: column;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    nav {
        flex-direction: column;
        gap: 0.75rem;
    }
}
