/* ========================================
   LevelReady.ai v0.1.7 Styles
   Clean, calm, beginner-friendly
   ======================================== */

:root {
    --bg: #f6f7f9;
    --bg-light: #ffffff;
    --bg-accent: #eef2ff;
    --bg-emergency: #fff5f5;
    --text: #1a1d23;
    --text-secondary: #5a6270;
    --text-muted: #8a929f;
    --border: #e2e5eb;
    --border-strong: #d1d5db;

    --primary: #4f46e5;
    --primary-light: #e0e7ff;
    --primary-dark: #3730a3;

    --safe: #10b981;
    --safe-bg: #d1fae5;
    --low: #3b82f6;
    --low-bg: #dbeafe;
    --caution: #f59e0b;
    --caution-bg: #fef3c7;
    --danger: #ef4444;
    --danger-bg: #fee2e2;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-hover: 0 4px 6px rgba(0,0,0,0.08), 0 10px 24px rgba(0,0,0,0.06);

    --max-width: 1100px;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

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

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

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

code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    background: var(--bg-accent);
    color: var(--primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    word-break: break-word;
}

/* ========================================
   Layout
   ======================================== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-accent {
    background: var(--bg-accent);
}

.section-emergency {
    background: var(--bg-emergency);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--nav-height);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo:hover {
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    font-size: 1.4rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    display: block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    text-decoration: none;
}

.nav-links a:hover {
    background: var(--bg-accent);
    color: var(--primary);
    text-decoration: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========================================
   Hero
   ======================================== */

.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.hero-title {
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-problem {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.hero-problem p {
    margin: 0;
    color: var(--text-secondary);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    background: var(--bg);
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary-light);
}

.btn-ghost:hover {
    background: var(--primary-light);
    text-decoration: none;
}

/* ========================================
   Cards
   ======================================== */

.cards-grid {
    display: grid;
    gap: 20px;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.card h3 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ========================================
   Stack Grid
   ======================================== */

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stack-emoji {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stack-info {
    display: flex;
    flex-direction: column;
}

.stack-info strong {
    font-weight: 700;
    color: var(--text);
    font-size: 0.95rem;
}

.stack-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========================================
   Start Here
   ======================================== */

.start-content {
    max-width: 720px;
    margin: 0 auto;
}

.start-intro .lead {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 12px;
}

.reading-order {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.reading-order h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.order-list {
    list-style: none;
    counter-reset: step;
}

.order-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.order-list li:last-child {
    border-bottom: none;
}

.order-list li::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.order-list a {
    font-weight: 600;
}

.reassurance-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--safe-bg);
    border: 1px solid var(--safe);
    border-radius: var(--radius);
    margin-top: 24px;
}

.reassurance-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

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

/* ========================================
   Office Map
   ======================================== */

.office-map {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.map-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

.map-node {
    background: var(--bg-light);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 20px 28px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.map-emoji {
    font-size: 2rem;
    margin-bottom: 4px;
}

.map-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.map-real {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.map-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
    padding: 4px 0;
}

.map-agents {
    border-color: var(--primary);
    background: var(--primary-light);
}

.map-agents-list {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.agent-badge {
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.map-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    max-width: 240px;
    line-height: 1.4;
}

.map-support {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}

.map-support-item {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

/* ========================================
   Glossary
   ======================================== */

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}


/* ========================================
   Office Map — Agent Cards (Fix 1)
   ======================================== */

.map-agent-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.map-agent-card {
    background: var(--bg-light);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.map-agent-card .agent-badge {
    background: var(--primary);
    color: white;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
}

.map-agent-card .agent-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ========================================
   Reset Implementation Warning (Fix 3)
   ======================================== */

.reset-impl-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: var(--caution-bg);
    border: 1px solid var(--caution);
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 28px;
}

.reset-impl-warning .warning-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.reset-impl-warning p {
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.reset-impl-warning code {
    background: rgba(245, 158, 11, 0.15);
    color: #92400e;
}

/* ========================================
   Guide Warning Banners (Fix 5)
   ======================================== */

.guide-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid var(--caution);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.guide-banner .banner-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.guide-banner p {
    margin: 0;
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========================================
   Enhanced Glossary Cards (Fix 4)
   ======================================== */

.glossary-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    transition: all 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glossary-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.glossary-card-header {
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-light) 100%);
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.glossary-office {
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 6px;
}

.glossary-real {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 3px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.glossary-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.glossary-def {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.55;
}

.glossary-why {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    margin-top: auto;
}

.glossary-why strong {
    color: var(--text-secondary);
}
.guide-block {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-light) 100%);
    border-bottom: 1px solid var(--border);
}

.guide-emoji {
    font-size: 2.2rem;
}

.guide-sub {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.guide-content {
    padding: 28px;
}

.guide-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.guide-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.guide-card {
    background: var(--bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.guide-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.guide-card p {
    margin: 0;
    font-size: 0.9rem;
}

/* ========================================
   Warning & Tip Boxes
   ======================================== */

.warning-box {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin-bottom: 24px;
}

.warning-box h4 {
    color: var(--danger);
    margin-bottom: 12px;
    font-size: 1rem;
}

.warning-box ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
}

.warning-box li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.warning-box li:last-child {
    margin-bottom: 0;
}

.tip-box {
    background: var(--low-bg);
    border: 1px solid var(--low);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   Safety Tags
   ======================================== */

.safety-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.safety-tag.safe {
    background: var(--safe-bg);
    color: #065f46;
}

.safety-tag.low {
    background: var(--low-bg);
    color: #1e40af;
}

.safety-tag.caution {
    background: var(--caution-bg);
    color: #92400e;
}

.safety-tag.danger {
    background: var(--danger-bg);
    color: #991b1b;
}

.safety-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ========================================
   Command Lists
   ======================================== */

.command-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.command-item code {
    font-size: 1rem;
    min-width: 120px;
}

.command-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex: 1;
}

/* ========================================
   Checklists & Lists
   ======================================== */

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

.checklist li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    content: "☐";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.issue-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.issue-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    line-height: 1.5;
}

.issue-list li:last-child {
    border-bottom: none;
}

/* ========================================
   Troubleshooting
   ======================================== */

.trouble-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.trouble-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.trouble-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.trouble-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.trouble-card h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.trouble-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

.trouble-step {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
    flex: 1;
}

.trouble-link {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: auto;
}

/* ========================================
   Reset Guide
   ======================================== */

.reset-content {
    max-width: 800px;
    margin: 0 auto;
}

.concept-box {
    text-align: center;
    padding: 32px;
    background: var(--bg-light);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    margin-bottom: 32px;
}

.concept-emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
}

.concept-box h3 {
    margin-bottom: 8px;
}

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

.limits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.limit-can, .limit-cannot {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}

.limit-can {
    border-left: 4px solid var(--safe);
}

.limit-cannot {
    border-left: 4px solid var(--danger);
}

.limit-can h5 {
    color: var(--safe);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.limit-cannot h5 {
    color: var(--danger);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.limit-can ul, .limit-cannot ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.limit-can li, .limit-cannot li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.reset-safety {
    margin-bottom: 32px;
}

.reset-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.safety-rules {
    list-style: none;
    padding: 0;
}

.safety-rules li {
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ========================================
   Emergency Steps
   ======================================== */

.emergency-steps {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.emergency-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.emergency-step:hover {
    box-shadow: var(--shadow);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--danger);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ========================================
   Support
   ======================================== */

.support-content {
    max-width: 800px;
    margin: 0 auto;
}

.support-questions {
    margin-bottom: 32px;
}

.support-questions h3 {
    margin-bottom: 16px;
}

.security-rules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.security-card {
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid;
}

.security-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.security-card p {
    margin: 0;
    font-size: 0.85rem;
}

.danger-card {
    background: var(--danger-bg);
    border-color: var(--danger);
}

.danger-card strong {
    color: var(--danger);
}

.caution-card {
    background: var(--caution-bg);
    border-color: var(--caution);
}

.caution-card strong {
    color: #92400e;
}

.support-template h3 {
    margin-bottom: 16px;
}

.template-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.template-box p {
    margin-bottom: 8px;
}

.template-box p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--text);
    color: var(--text-muted);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-brand .logo-icon {
    font-size: 1.5rem;
}

.footer-brand .logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--bg-light);
}

.footer-brand p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    max-width: 400px;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--bg-light);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
}

.footer-note {
    margin-top: 8px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
    .three-col,
    .glossary-grid,
    .trouble-grid,
    .guide-cards,
    .stack-grid,
    .limits-grid,
    .security-rules {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 10px 16px;
        width: 100%;
        text-align: left;
    }

    .mobile-toggle {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        padding: 60px 0 50px;
    }
}

@media (max-width: 600px) {
    .three-col,
    .glossary-grid,
    .trouble-grid,
    .guide-cards,
    .stack-grid,
    .limits-grid,
    .security-rules,
    .map-support {
        grid-template-columns: 1fr;
    }

    .command-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .command-item code {
        min-width: auto;
    }

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

    .btn {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .emergency-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .map-node {
        min-width: auto;
        width: 100%;
    }
    .map-agent-cards {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Utilities
   ======================================== */

::selection {
    background: var(--primary-light);
    color: var(--primary-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ========================================
   v0.1.6 Beginner Clarity Sections
   ======================================== */
.simple-version-section {
    padding-top: 64px;
}

.simple-version-card,
.understanding-card,
.comparison-card {
    max-width: 820px;
    margin: 0 auto;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
}

.simple-version-card p,
.understanding-card p,
.comparison-card p {
    font-size: 1.08rem;
}

.simple-list,
.understanding-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.simple-list li,
.understanding-list li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text);
}

.simple-closing {
    margin-bottom: 0;
    color: var(--text);
}

.simple-learning-goal {
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
}

.comparison-card {
    margin-top: 28px;
}

.comparison-card h3 {
    color: var(--primary-dark);
}

.comparison-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.comparison-columns ul {
    margin: 0;
    padding-left: 1.2rem;
}

.comparison-columns li {
    margin-bottom: 0.55rem;
    color: var(--text);
}

.map-small-note {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.term-format-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.term-format-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.term-format-card h3 {
    color: var(--primary-dark);
}

.term-format-card p {
    margin-bottom: 0.65rem;
}

.glossary-warning {
    background: var(--caution-bg);
    border: 1px solid #f7d777;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    color: #7c4a03;
}

@media (max-width: 768px) {
    .term-format-grid {
        grid-template-columns: 1fr;
    }

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

    .simple-version-card,
    .understanding-card,
    .comparison-card {
        padding: 24px;
    }
}

.exact-simple-version {
    margin-top: 20px;
    padding: 18px;
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.exact-simple-version p {
    margin-bottom: 0;
    color: var(--text);
}


/* v0.1 review refinements */
.map-agent-cards {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    align-items: stretch;
}

.map-agent-card {
    min-height: 112px;
    justify-content: center;
}

.map-small-note {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

@media (max-width: 520px) {
    .map-agent-cards {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .map-agent-card {
        padding: 10px;
    }
}


/* ========================================
   Cleanup Pass — v0.1.2 Office Map Cards
   ======================================== */

.simple-copy-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.simple-copy-list li {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.office-map.office-map-cards {
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    text-align: left;
}

.map-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.map-card-wide {
    grid-column: 1 / -1;
}

.map-card .map-emoji {
    margin-bottom: 2px;
}

.map-card .map-name {
    font-size: 1.05rem;
}

.map-card .map-real,
.map-card .map-small-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.map-card .map-example,
.guide-example {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: var(--text);
}

.office-map-cards .map-agent-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.office-map-cards .map-agent-card {
    align-items: flex-start;
    text-align: left;
}

@media (max-width: 640px) {
    .office-map.office-map-cards {
        grid-template-columns: 1fr;
    }

    .office-map-cards .map-agent-cards {
        grid-template-columns: 1fr;
    }
}


/* Final cleanup: clearer spacing inside the Agents / Workers card */
.office-map-cards .map-agents {
    gap: 14px;
}

.office-map-cards .map-agent-cards {
    gap: 16px;
    margin-top: 4px;
}

.office-map-cards .map-agent-card {
    min-height: 116px;
    justify-content: flex-start;
}


/* ========================================
   v0.1.6 Blueprint Visual Update
   ======================================== */
.blueprint-section {
    scroll-margin-top: 84px;
}

.blueprint-actions {
    display: flex;
    justify-content: center;
    margin: 0 0 20px;
}

.blueprint-note {
    max-width: 820px;
    margin: 0 auto 28px;
    background: var(--bg);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text);
}

.blueprint-note p {
    margin: 0;
}

.blueprint-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.blueprint-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.blueprint-card img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--bg);
}

.blueprint-card-body {
    padding: 18px;
}

.blueprint-card-body h3 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.blueprint-card-body p {
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .blueprint-gallery {
        grid-template-columns: 1fr;
    }

    .blueprint-card-body {
        padding: 16px;
    }
}


/* ========================================
   v0.1.6 Navigation Cleanup Base
   ======================================== */
.hero-brand-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.four-col { grid-template-columns: repeat(4, 1fr); }
.path-card { text-decoration: none; color: inherit; display: block; }
.path-card span { display: inline-block; margin-top: 16px; color: var(--primary); font-weight: 700; }
.path-card:hover { text-decoration: none; color: inherit; }

.nav-dropdown { position: relative; }
.dropdown-toggle {
    display: block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.dropdown-toggle::after { content: " ▾"; font-size: 0.75rem; }
.dropdown-toggle:hover,
.nav-dropdown:focus-within .dropdown-toggle,
.nav-dropdown:hover .dropdown-toggle { background: var(--bg-accent); color: var(--primary); }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 8px;
    z-index: 1001;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { white-space: nowrap; }

.example-flow {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.flow-node {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    font-weight: 700;
    color: var(--text);
}
.flow-arrow { color: var(--primary); font-size: 1.7rem; line-height: 1.7; }
.flow-agents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: var(--primary-light);
}
.flow-agents span {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
}
.flow-note { max-width: 560px; margin: 12px auto 0; }
.flow-side-by-side { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

@media (max-width: 1000px) {
    .four-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .nav-links { align-items: stretch; }
    .nav-dropdown { width: 100%; }
    .dropdown-toggle { width: 100%; text-align: left; padding: 10px 16px; }
    .dropdown-menu { display: block; position: static; min-width: 0; box-shadow: none; border: 0; padding: 0 0 6px 14px; background: transparent; }
    .dropdown-menu a { white-space: normal; padding: 8px 16px; }
}

@media (max-width: 600px) {
    .four-col, .flow-agents, .flow-side-by-side { grid-template-columns: 1fr; }
}


/* v0.1.6 Starter Kit Buildout */
.flow-agents-block {
    background: var(--primary-light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.flow-agents-block h3 {
    margin-bottom: 14px;
    font-size: 1.05rem;
}
.agent-worker-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.agent-worker-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.agent-worker-card strong {
    color: var(--text);
    font-size: 1.05rem;
}
.agent-worker-card span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.launch-intro {
    max-width: 780px;
    margin: 0 auto;
}
.launch-card-grid .card h3 {
    min-height: 2.8em;
}
.launch-list-box {
    max-width: 820px;
    margin: 0 auto;
}
.launch-list-box ul {
    margin-left: 1.2rem;
    color: var(--text-secondary);
}
.launch-list-box li {
    margin-bottom: 10px;
}
.coming-soon-notice {
    max-width: 820px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .agent-worker-cards { grid-template-columns: 1fr; }
}


/* v0.1.7 Agent Capabilities Update */
.expectation-card {
    max-width: 780px;
    margin: 22px auto 0;
    border-left: 4px solid var(--primary);
}
.capability-card-grid .card h3 {
    min-height: 2.4em;
}
.section-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
.capability-lead {
    max-width: 820px;
    margin: 0 auto;
}
.capability-lead h3 {
    margin-bottom: 10px;
}
.launch-clarification {
    max-width: 860px;
    margin: 28px auto 0;
}
