/* Root variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0d1520;
    --bg-tertiary: #1a2a40;
    --bg-panel: rgba(20, 20, 30, 0.9);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-orange: #da7756;
    --accent-warm: #e8956e;
    --accent-amber: #d4956b;
    --accent-rust: #c4603e;
    --gradient-bg: linear-gradient(180deg, #0a0a0f 0%, #0d1520 25%, #1a2a40 50%, #3a2520 75%, #5a3828 100%);
    --success-color: #10b981;
    --error-color: #ef4444;
}

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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #da7756, #e8956e, #c4603e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.version-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(218, 119, 86, 0.2);
    color: var(--accent-warm);
    border-radius: 0.375rem;
    border: 1px solid rgba(232, 149, 110, 0.3);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active {
    color: var(--accent-warm);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-warm);
}

.nav-link-primary {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
    color: white;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-link-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(218, 119, 86, 0.4);
    color: white;
}

/* GitHub star count badge */
.github-star-count {
    display: inline-block;
    min-width: 1.5em;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
    text-align: center;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    padding-top: 3.5rem;
}

/* Planner single-column layout */
.planner-main {
    display: flex;
    justify-content: center;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 4.5rem);
}

.planner-main .wizard-container {
    width: 100%;
    max-width: 640px;
    padding: 2rem 2rem 4rem;
}

.planner-title {
    text-align: left;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.planner-disclaimer {
    text-align: left;
    color: var(--accent-orange);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* (Panel and example-item styles removed — replaced by reference modal) */

/* Wizard container */
.wizard-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: rgba(10, 10, 15, 0.5);
}

/* Planner text breadcrumb stepper */
.planner-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    font-size: 13px;
    font-weight: 500;
}

.planner-step {
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.2s ease;
    cursor: default;
}

.planner-step.active {
    color: var(--text-primary);
    opacity: 1;
    font-weight: 600;
}

.planner-step.step-completed {
    color: var(--accent-warm);
    opacity: 0.8;
}

.planner-step-sep {
    color: var(--text-secondary);
    opacity: 0.3;
    font-size: 12px;
}

/* Wizard content */
.wizard-step {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step.hidden {
    display: none;
}

.wizard-step h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    text-align: left;
}

.step-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 1.25rem;
    line-height: 1.5;
    text-align: left;
}

/* Input container */
.input-container {
    margin-bottom: 2rem;
}

/* Textareas and inputs */
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(20, 20, 30, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    resize: vertical;
    transition: all 0.2s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(218, 119, 86, 0.1);
}

textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Chat messages */
.chat-messages {
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.chat-message {
    margin-bottom: 0.625rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 13px;
    line-height: 1.45;
    animation: fadeIn 0.3s ease;
}

.chat-message-loading {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 0.5rem 0.75rem;
}

.chat-message-loading .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-warm);
    opacity: 0.3;
    animation: dotPulse 1.4s ease-in-out infinite;
}

.chat-message-loading .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-message-loading .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.2); }
}

@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-message-user {
    background: rgba(218, 119, 86, 0.2);
    color: var(--text-primary);
    margin-left: 2rem;
    border: 1px solid rgba(218, 119, 86, 0.3);
}

.chat-message-assistant {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    margin-right: 2rem;
    border: 1px solid var(--border-color);
}

.chat-message-system {
    background: rgba(232, 149, 110, 0.1);
    color: var(--accent-warm);
    text-align: center;
    font-size: 0.875rem;
}

.chat-message-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Chat input container */
.chat-input-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.chat-input-container textarea {
    flex: 1;
    min-height: 80px;
}

.chat-input-container .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
    align-self: flex-end;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
}

.btn-primary:hover {
    background: #c4603e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(218, 119, 86, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-orange);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Specification output */
.spec-output {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    color: var(--text-primary);
}

.spec-output .landmark-keyword {
    color: var(--accent-warm);
    font-weight: 700;
    display: block;
    margin-top: 1rem;
}

.spec-output .bullet {
    color: var(--accent-amber);
}

.spec-output.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
    animation: softPulse 2s ease-in-out infinite;
}

.spec-output.error {
    text-align: center;
    color: #fca5a5;
    padding: 3rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        padding: 1rem 1rem 5rem;
    }

    .wizard-step h2 {
        font-size: 16px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .chat-input-container {
        flex-direction: column;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.8125rem;
    }

    .ref-trigger {
        bottom: 16px;
        right: 16px;
    }

    .ref-modal {
        width: 95%;
        max-height: 85vh;
    }
}

/* ========== HOMEPAGE STYLES ========== */

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(232, 149, 110, 0.15);
    border: 1px solid rgba(232, 149, 110, 0.3);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-new {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #da7756, #e8956e, #c4603e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero section with padding for fixed nav */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: transparent;
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-line {
    display: block;
    margin-bottom: 0.5rem;
}

.static-text {
    display: inline-block;
    width: 5em;
}

.rotating-text-wrapper {
    display: inline-block;
    width: 8em;
}

.rotating-text {
    display: inline-block;
    background: linear-gradient(135deg, #da7756, #e8956e, #c4603e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.rotating-text::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0.8em;
    background: #da7756;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.8125rem;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(232, 149, 110, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-warm);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Sections */
.section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Pillar grid */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.pillar-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pillar-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(232, 149, 110, 0.2);
    transform: translateY(-2px);
}

.pillar-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.pillar-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Code examples */
.code-example {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 2.5rem 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.code-language {
    font-size: 0.75rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    color: var(--accent-warm);
    font-weight: 600;
}

.copy-btn {
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

.code-example pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-example code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Get started steps */
.get-started-steps {
    margin-top: 3rem;
}

.step-item {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.step-item:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-link {
    color: var(--accent-warm);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.btn-link:hover {
    color: var(--accent-amber);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 2rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.25rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--accent-warm);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

/* ========== ARTICLE-STYLE HOMEPAGE ========== */

.article-home {
    max-width: 900px;
    margin: 0 auto;
}

.article-hero {
    text-align: left;
    margin-bottom: 3rem;
}

.article-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-subtitle {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-home .hero-actions {
    justify-content: flex-start;
    margin-bottom: 0;
}

/* Article section titles */
.article-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
}

.section-icon svg {
    width: 16px;
    height: 16px;
}

/* Article doc text */
.doc-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

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

.doc-text em {
    font-style: italic;
}

.doc-text code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 4px;
    color: var(--accent-warm);
}

/* Divider */
.doc-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 48px 0;
}

/* Article-style doc sections */
.article-home .article-doc-section {
    margin-bottom: 0;
}

/* Article-style pillar cards */
.article-pillar-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.article-pillar-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.pillar-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 14px;
}

.pillar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}

.pillar-icon svg {
    width: 18px;
    height: 18px;
}

.pillar-header-text {
    flex: 1;
}

.pillar-number {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 2px;
}

.pillar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.pillar-card-body {
    padding: 20px 24px;
}

.pillar-card-body .doc-text {
    font-size: 14px;
    margin-bottom: 12px;
}

.pillar-card-body .doc-text:last-child {
    margin-bottom: 0;
}

/* Compact landmark cards (quickstart page) */
.landmark-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landmark-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.2s;
}

.landmark-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.landmark-card .pillar-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex-shrink: 0;
}

.landmark-card .pillar-icon svg {
    width: 15px;
    height: 15px;
}

.landmark-card-text {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.landmark-card-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.landmark-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Reading list */
.reading-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reading-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.reading-item:hover {
    border-color: rgba(232, 149, 110, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.reading-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
    background: rgba(218, 119, 86, 0.15);
}

.reading-item-icon svg {
    width: 16px;
    height: 16px;
    color: var(--accent-warm);
}

.reading-item-text h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.reading-item-text p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* Article homepage responsive */
@media (max-width: 600px) {
    .article-hero .hero-title {
        font-size: 2.25rem;
    }

    .article-subtitle {
        font-size: 15px;
    }

    .article-section-title {
        font-size: 19px;
    }

    .pillar-card-header {
        padding: 16px 20px;
    }

    .pillar-card-body {
        padding: 16px 20px;
    }
}

/* ========== DOCUMENTATION PAGES ========== */

.doc-content {
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
}

.doc-container {
    max-width: 900px;
    margin: 0 auto;
}

.doc-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.doc-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.doc-section {
    margin-bottom: 4rem;
    scroll-margin-top: 5rem;
}

.doc-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.doc-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.doc-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.doc-section ul,
.doc-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.doc-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.doc-list {
    list-style: none;
    padding: 0;
}

.doc-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
}

.doc-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-warm);
    font-weight: 700;
}

.doc-list li strong {
    color: var(--text-primary);
}

/* Landmark detail boxes */
.landmark-detail {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.landmark-key {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    background: rgba(218, 119, 86, 0.2);
    color: var(--accent-warm);
    border-radius: 0.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.landmark-detail p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.landmark-detail pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

.landmark-detail pre:last-child {
    margin-bottom: 0;
}

.landmark-detail code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Next steps */
.next-steps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Examples grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.example-full-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.example-full-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 149, 110, 0.3);
}

.example-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.example-card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.example-full-card > p {
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.example-full-card details {
    border-top: 1px solid var(--border-color);
}

.example-full-card summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    color: var(--accent-warm);
    font-weight: 600;
    transition: background 0.2s ease;
}

.example-full-card summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.example-full-card .code-example {
    margin: 0;
    border: none;
    border-radius: 0;
}

.example-full-card .code-example code {
    font-size: 0.75rem;
    line-height: 1.7;
}

.example-full-card .code-example pre {
    max-width: 100%;
    overflow-x: auto;
}

/* Step by step */
.step-by-step {
    margin-top: 1.25rem;
}

.step-by-step .step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
}

.step-by-step .step-item:last-child {
    border-bottom: none;
}

.step-by-step .step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
    color: white;
    font-weight: 700;
    font-size: 0.8125rem;
}

.step-by-step .step-content {
    flex: 1;
}

.step-by-step .step-content h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.step-by-step .step-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.step-by-step pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.step-by-step code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Action box */
.action-box {
    text-align: center;
    margin-top: 2rem;
}

/* Table of contents */
.spec-toc {
    margin: 1rem 0 3.5rem;
}

.spec-toc strong {
    display: inline;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-orange);
}

.spec-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline;
}

.spec-toc li {
    display: inline;
}

.spec-toc li:not(:last-child)::after {
    content: " \00b7  ";
    color: var(--text-secondary);
}

.spec-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.spec-toc a:hover {
    color: var(--accent-warm);
}

/* ========== PLANNER: TYPE TOGGLE ========== */

.type-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 1.25rem;
}

.type-toggle-option {
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.type-toggle-option:hover {
    color: var(--text-primary);
}

.type-toggle-option.active {
    background: rgba(218, 119, 86, 0.15);
    color: var(--accent-warm);
    font-weight: 600;
}

/* ========== PLANNER: EXAMPLE PILLS ========== */

.example-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.example-pills-label {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
}

.example-pill {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.example-pill:hover {
    color: var(--accent-warm);
    border-color: rgba(232, 149, 110, 0.3);
}

/* ========== PLANNER: SKIP LINK ========== */

.skip-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.skip-link:hover {
    color: var(--accent-warm);
}

/* ========== PLANNER: BUTTON OVERRIDES ========== */

.planner-main .btn {
    padding: 8px 20px;
    font-size: 13px;
    border-radius: 6px;
}

.planner-main .action-buttons .btn-secondary {
    padding: 6px 14px;
    font-size: 12px;
    background: transparent;
}

/* ========== PLANNER: REFERENCE MODAL ========== */

.ref-trigger {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 100;
}

.ref-trigger:hover {
    color: var(--accent-warm);
    border-color: rgba(232, 149, 110, 0.3);
}

.ref-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.ref-modal-overlay.hidden {
    display: none;
}

.ref-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.ref-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.ref-modal-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 3px;
}

.ref-tab {
    padding: 5px 16px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ref-tab:hover {
    color: var(--text-primary);
}

.ref-tab.active {
    background: rgba(218, 119, 86, 0.15);
    color: var(--accent-warm);
    font-weight: 600;
}

.ref-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.ref-modal-close:hover {
    color: var(--text-primary);
}

.ref-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.ref-tab-content {
    display: none;
}

.ref-tab-content.active {
    display: block;
}

.ref-section-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 8px;
    margin-top: 16px;
}

.ref-section-label:first-child {
    margin-top: 0;
}

.ref-example {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ref-example:hover {
    border-color: rgba(232, 149, 110, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.ref-example-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ref-example-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.ref-example-tag {
    display: inline-block;
    margin-top: 6px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(212, 149, 107, 0.15);
    color: var(--accent-amber);
    border-radius: 4px;
}

/* ========== PLANNER: LINT RESULTS ========== */

.lint-results {
    margin-top: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.lint-results summary {
    cursor: pointer;
    list-style: none;
}

.lint-results summary::-webkit-details-marker {
    display: none;
}

.lint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
}

.lint-results[open] .lint-header {
    border-bottom: 1px solid var(--border-color);
}

.lint-header-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.lint-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.lint-badge-pass {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.lint-badge-fail {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.lint-badge-warn {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.lint-items {
    padding: 0.75rem 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.lint-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.lint-item:last-child {
    border-bottom: none;
}

.lint-code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-weight: 600;
    flex-shrink: 0;
    min-width: 3.5rem;
}

.lint-code-error {
    color: var(--error-color);
}

.lint-code-warning {
    color: #fbbf24;
}

.lint-message {
    color: var(--text-secondary);
}

.lint-location {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Animation classes */
.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero {
        padding: 7rem 1rem 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .doc-content {
        padding: 7rem 1rem 2rem;
    }

    .doc-title {
        font-size: 2rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .next-steps {
        flex-direction: column;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}
