:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #18181b;
    --bg-elevated: #1f1f23;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --border: #27272a;
    --border-light: #3f3f46;
    --success: #22c55e;
    --gradient-start: #6366f1;
    --gradient-end: #a855f7;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Gradient background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent);
    pointer-events: none;
    z-index: -1;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 64px;
}

.header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.header-badge svg {
    width: 16px;
    height: 16px;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Content card */
.content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: clamp(32px, 5vw, 56px);
}

/* Section styling */
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 48px 0 20px;
    letter-spacing: -0.01em;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

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

p {
    margin-bottom: 16px;
}

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

em {
    color: var(--text-muted);
    font-style: italic;
}

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

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

/* Lists */
ul, ol {
    margin: 16px 0 24px;
    padding-left: 0;
    list-style: none;
}

li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Summary box */
.summary-box {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
}

.summary-box p {
    margin: 0;
    color: var(--text-secondary);
}

/* Table of Contents */
.toc {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 24px 0;
}

.toc a {
    display: flex;
    align-items: center;
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.toc a:last-child {
    border-bottom: none;
}

.toc a:hover {
    color: var(--accent);
    padding-left: 8px;
}

.toc a::before {
    content: '';
    display: none;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 12px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th, td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-elevated);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

td {
    background: var(--bg-card);
}

tr:last-child td {
    border-bottom: none;
}

td:last-child {
    text-align: center;
    font-weight: 500;
}

.yes {
    color: var(--success);
}

.no {
    color: var(--text-muted);
}

/* In Short blocks */
.in-short {
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
}

.in-short p {
    margin: 0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-brand {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Scroll indicator for anchors */
:target {
    scroll-margin-top: 24px;
}

:target h2,
:target h3 {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0%, 50% {
        color: var(--accent);
    }
    100% {
        color: var(--text-primary);
    }
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 48px 16px;
    }

    .content {
        padding: 24px;
        border-radius: 20px;
    }

    h2 {
        font-size: 1.25rem;
    }

    .table-wrapper {
        font-size: 0.8rem;
    }

    th, td {
        padding: 10px 12px;
    }
}
