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

/* ── Accessibility ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #111;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 1000;
    text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

:focus-visible {
    outline: 2px solid #ff6b35;
    outline-offset: 3px;
    border-radius: 3px;
}

/* ── Base ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafafa;
    color: #444;
    -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #ebebeb;
    z-index: 100;
}

.nav-logo {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    border-radius: 7px;
    flex-shrink: 0;
}

.nav-links { display: flex; gap: 0.25rem; }

.top-nav a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    letter-spacing: 0.01em;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.top-nav a:hover { background: #f0f0f0; color: #111; }
.top-nav a.active { background: #efefef; color: #111; }

/* ── Hamburger ── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #222; border-radius: 2px; }

/* ── Mobile menu overlay ── */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 250, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 200;
    flex-direction: column;
    padding: 1.5rem 2rem 2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.8rem;
    color: #aaa;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.mobile-menu-close:hover { color: #333; }
.mobile-nav-links { display: flex; flex-direction: column; }
.mobile-nav-links a {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    letter-spacing: -0.02em;
    padding: 0.9rem 0;
    border-bottom: 1px solid #efefef;
    transition: color 0.15s;
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a.active { color: #ff6b35; }

@media (max-width: 660px) {
    .top-nav { padding: 0.75rem 1rem; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
}

/* ── Common page layout (subpages) ── */
.page {
    max-width: 560px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.back {
    font-size: 0.85rem;
    color: #999;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}
.back:hover { color: #111; }

.logo-mark {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    border-radius: 10px;
    margin-bottom: 2rem;
}

h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.02em;
}

.platform {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #bbb;
    margin-bottom: 0.4rem;
}

.divider {
    width: 40px;
    height: 1px;
    background: #ddd;
    margin: 2.5rem 0;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin-bottom: 0.75rem;
}

footer {
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 3rem;
    padding-bottom: 2rem;
}
footer a { color: #bbb; text-decoration: none; }
