*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow: hidden; height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100%;
    scrollbar-color: #444 #1a1a2e;
    scrollbar-width: thin;
}
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #1a1a2e; }
body::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; border: 2px solid #1a1a2e; }
body::-webkit-scrollbar-thumb:hover { background: #555; }
a { color: #FF6C00; text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: #fff; }
h1 { font-size: 2rem; color: #FF6C00; margin-bottom: 0.5rem; }
h2 { font-size: 1.3rem; color: #fff; margin-top: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.05rem; color: #ccc; margin-top: 1.5rem; margin-bottom: 0.4rem; }
[id] { scroll-margin-top: 72px; }
p { margin-bottom: 0.8rem; }
ul, ol { margin-left: 1.5rem; margin-bottom: 0.8rem; }
li { margin-bottom: 0.3rem; }
code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Navigation */
.site-nav {
    background: #16213e;
    border-bottom: 2px solid #FF6C00;
    padding: 0 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
}
.site-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    color: #FF6C00;
    flex-shrink: 0;
}
.site-nav-brand:hover { text-decoration: none; }
.site-nav-brand img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.site-nav-badge {
    background: #3d2800;
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #FF6C00;
}
.site-nav-links {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
}
.site-nav-links a {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: color 0.2s, background 0.2s;
}
.site-nav-links a:hover {
    color: #FF6C00;
    background: rgba(255, 108, 0, 0.08);
    text-decoration: none;
}
.site-nav-links a.active {
    color: #FF6C00;
    background: rgba(255, 108, 0, 0.12);
}

/* Mobile nav toggle */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #ccc;
    height: 2px;
    width: 24px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }
.nav-toggle:checked + .nav-toggle-label span { background: transparent; }
.nav-toggle:checked + .nav-toggle-label span::before {
    top: 0; transform: rotate(45deg);
}
.nav-toggle:checked + .nav-toggle-label span::after {
    top: 0; transform: rotate(-45deg);
}

@media (max-width: 640px) {
    .nav-toggle-label { display: block; }
    .site-nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #16213e;
        border-bottom: 2px solid #FF6C00;
        padding: 0.5rem 1rem 1rem;
        gap: 0;
    }
    .site-nav-links a {
        display: block;
        padding: 0.75rem;
        border-radius: 0;
    }
    .nav-toggle:checked ~ .site-nav-links { display: flex; }
}

/* Main content */
.site-main {
    flex: 1;
    width: 100%;
}
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.container-narrow {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #FF6C00; color: #fff; }
.btn-primary:hover { background: #e66000; color: #fff; }
.btn-secondary {
    background: transparent;
    color: #FF6C00;
    border: 1px solid #FF6C00;
}
.btn-secondary:hover { background: rgba(255, 108, 0, 0.1); color: #FF6C00; }

/* Cards */
.card {
    background: #16213e;
    border: 1px solid rgba(255, 108, 0, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
}
.card h3 {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
}
.card p {
    color: #a0a0b0;
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
}
.card p:last-child {
    margin-bottom: 0;
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Full-width section bands */
.band { padding: 0; }
.band-alt { background: rgba(255, 255, 255, 0.025); }

/* Section spacing */
.section {
    padding: 3rem 0;
}
.section + .section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.section-title {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    color: #888;
    font-size: 1rem;
    margin-bottom: 2rem;
}
.text-center { text-align: center; }
.text-muted { color: #888; }
.text-small { font-size: 0.85rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* Accent highlight box */
.highlight-box {
    background: rgba(255, 108, 0, 0.08);
    border: 1px solid rgba(255, 108, 0, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

/* Screenshots */
.screenshot {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    max-width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 200;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.screenshot-phone {
    max-width: 260px;
    margin: 0 auto;
}
.screenshot-desktop {
    max-width: 100%;
}
.screenshot-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}
.screenshot-row .screenshot-phone {
    max-width: 200px;
}
@media (max-width: 640px) {
    .screenshot-row .screenshot-phone {
        max-width: 160px;
    }
}

/* Footer */
.site-footer {
    background: #0f1525;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2.5rem 1rem 1.5rem;
    font-size: 0.85rem;
    color: #888;
}
.site-footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.site-footer h4 {
    color: #ccc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}
.site-footer ul {
    list-style: none;
    margin: 0;
}
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: #888; font-size: 0.85rem; }
.site-footer a:hover { color: #FF6C00; }
.site-footer-bottom {
    max-width: 960px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.8rem;
}
@media (max-width: 640px) {
    .site-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
