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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: #f0f2f5;
    min-height: 100vh;
}

a { color: #667eea; text-decoration: none; transition: color 0.2s; }
a:hover { color: #4c5fd7; text-decoration: underline; }

/* ---- Hero ---- */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px 48px;
    text-align: center;
}

.hero-inner {
    max-width: 1040px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.hero .tagline {
    font-size: 1.3em;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 24px;
}

.hero .about {
    max-width: 720px;
    margin: 0 auto 24px;
    font-size: 1.05em;
    line-height: 1.7;
    opacity: 0.92;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.pill {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
}

.source-btn {
    display: inline-block;
    background: white;
    color: #667eea;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 0.95em;
    transition: transform 0.15s, box-shadow 0.15s;
}

.source-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #4c5fd7;
}

.hero-minimal {
    text-align: left;
}

.hero-minimal .source-box {
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 14px 20px;
    margin-top: 20px;
    font-size: 0.95em;
}

.hero-minimal .source-box a { color: white; text-decoration: underline; }

/* ---- Main content ---- */
.main {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* ---- Overview ---- */
.overview {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 28px 32px;
    margin: -28px 0 40px;
    position: relative;
    z-index: 1;
}

.overview h2 {
    font-size: 1.4em;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.overview p {
    color: #444;
    line-height: 1.7;
    margin-bottom: 8px;
}

.overview p:last-child {
    margin-bottom: 0;
    color: #888;
    font-size: 0.9em;
}

/* ---- Section headers ---- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.6em;
    font-weight: 700;
    color: #1a1a2e;
}

.see-all {
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- Q&A List ---- */
.section-qna {
    margin-bottom: 48px;
}

.qna-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qna-article {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.qna-article:last-child {
    border-bottom: none;
}

.qna-article h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.4;
}

.qna-article h3 a {
    color: inherit;
}

.qna-article h3 a:hover {
    color: #667eea;
}

.qna-article p {
    font-size: 0.92em;
    color: #555;
    line-height: 1.6;
}

.full-content-link {
    margin-top: 20px;
    padding: 14px 20px;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 0.9em;
    color: #444;
}

.full-content-link a {
    font-weight: 600;
}

/* ---- Runbooks ---- */
.section-runbooks {
    margin-bottom: 48px;
}

.section-runbooks p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 12px;
}

/* ---- Topics ---- */
.section-topics {
    margin-bottom: 48px;
}

.topic-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.topic-section:last-child {
    border-bottom: none;
}

.topic-section h3 {
    font-size: 1.1em;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.topic-section h3 a {
    color: inherit;
}

.topic-section h3 a:hover {
    color: #667eea;
}

.topic-desc {
    font-size: 0.92em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 8px;
}

.topic-badge {
    background: #f0f2f5;
    color: #667eea;
    font-size: 0.8em;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.topic-links {
    list-style: none;
    border-top: 1px solid #f0f2f5;
    padding-top: 10px;
}

.topic-links li {
    margin-bottom: 6px;
    font-size: 0.85em;
    line-height: 1.4;
    padding-left: 14px;
    position: relative;
}

.topic-links li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ccc;
}

.topic-links a {
    color: #555;
}

.topic-links a:hover {
    color: #667eea;
}

/* ---- Developer section ---- */
.section-dev {
    margin-bottom: 32px;
    background: white;
    border: 1px solid #e8e8ee;
    border-radius: 10px;
    padding: 24px;
}

.section-dev > h2 {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 16px;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 4px 24px 24px;
}

.dev-col h3 {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
    margin-bottom: 10px;
}

.dev-col ul { list-style: none; }

.dev-col li {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.file-desc {
    color: #999;
    font-size: 0.88em;
}

.file-desc::before { content: " — "; }

/* ---- Footer ---- */
.page-footer {
    text-align: center;
    padding: 24px;
    color: #999;
    font-size: 0.85em;
}

.page-footer a { color: #667eea; }

.updated {
    display: inline-block;
    background: #e7f3ff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82em;
    color: #4c7fcc;
    margin-bottom: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 800px) {
    .hero { padding: 40px 24px 36px; }
    .hero h1 { font-size: 2em; }
    .overview { margin: -20px 0 32px; padding: 20px 24px; }
    .dev-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .hero h1 { font-size: 1.6em; }
    .hero .tagline { font-size: 1.05em; }
    .overview { padding: 16px 20px; }
    .pills { gap: 6px; }
    .pill { font-size: 0.78em; padding: 4px 12px; }
}
