@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0a0a0f;
    color: #e0e0e8;
    line-height: 1.75;
    padding: 0;
}

.wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px 80px;
}

/* Navigation back */
.back-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 14px 24px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #2a2a3a;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-nav a {
    color: #6c63ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.back-nav a:hover { color: #00d4aa; }

.back-nav .brand {
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #6c63ff, #00d4aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Headings */
h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 80px 0 16px;
    color: #fff;
}

h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 48px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #6c63ff;
}

h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e0e0e8;
    margin: 32px 0 12px;
}

h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #c0c0d0;
    margin: 24px 0 8px;
}

/* Text */
p { margin-bottom: 14px; color: #c8c8d8; }
strong { color: #fff; font-weight: 700; }
em { color: #b0b0c8; }
a { color: #6c63ff; text-decoration: none; }
a:hover { color: #00d4aa; }

/* Lists */
ul, ol { margin: 12px 0 12px 24px; color: #c8c8d8; }
li { margin-bottom: 6px; }

/* Blockquotes */
blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid #6c63ff;
    background: rgba(108, 99, 255, 0.08);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #d0d0e0;
}

blockquote p { margin-bottom: 6px; color: #d0d0e0; }
blockquote strong { font-style: normal; }

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

thead tr { background: #1a1a2e; }

th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    border-bottom: 2px solid #6c63ff;
}

td {
    padding: 10px 14px;
    border-bottom: 1px solid #1e1e30;
    color: #c8c8d8;
    vertical-align: top;
}

tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
tbody tr:hover { background: rgba(108, 99, 255, 0.06); }

/* Code */
code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85em;
    background: rgba(108, 99, 255, 0.12);
    padding: 2px 6px;
    border-radius: 4px;
    color: #a09cff;
}

pre {
    background: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    padding: 18px;
    overflow-x: auto;
    margin: 20px 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    color: #c8c8d8;
}

/* Horizontal rules */
hr {
    border: none;
    border-top: 1px solid #2a2a3a;
    margin: 40px 0;
}

/* PDF download banner */
.pdf-banner {
    margin: 80px 0 0;
    padding: 20px 24px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    text-align: center;
}

.pdf-banner a {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #6c63ff, #00d4aa);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 8px;
}

.pdf-banner a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
    color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
    .wrapper { padding: 60px 16px 60px; }
    table { font-size: 0.8rem; }
    th, td { padding: 8px 10px; }
}
