/* Shared styles for inner pages */

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

:root {
    --primary: #818CF8;
    --primary-dark: #6366F1;
    --accent: #FB7185;
    --bg: #0B0F19;
    --bg-card: #131825;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* NAV */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav .container {
    max-width: 1100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-mark svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 2.5;
    fill: none;
}

.nav-cta {
    background: var(--primary-dark);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--accent);
}

/* MAIN */
main {
    padding: 60px 0 80px;
}

h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    line-height: 1.2;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 16px;
    color: var(--text);
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--primary);
}

h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text);
}

p {
    margin-bottom: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

ul, ol {
    margin: 0 0 14px 20px;
    color: var(--text-muted);
}

ul li, ol li {
    margin-bottom: 8px;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
    text-decoration: underline;
}

strong, b {
    color: var(--text);
    font-weight: 600;
}

code {
    background: var(--bg-card);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 16px;
    overflow-x: auto;
    margin: 16px 0;
}

pre code {
    background: none;
    padding: 0;
    color: var(--text-muted);
}

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 24px;
    margin: 20px 0;
}

.card:hover {
    border-color: rgba(129, 140, 248, 0.1);
}

.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.divider {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 32px 0;
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

footer p {
    margin-bottom: 8px;
    color: var(--text-muted);
}

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

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

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.6rem;
    }

    main {
        padding: 40px 0 60px;
    }

    nav .container {
        height: 56px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-mark {
        width: 28px;
        height: 28px;
    }

    .nav-cta {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}
