/* ===========================
   Capsule Documentation CSS
   Premium Dark + Animated
   =========================== */

:root {
    --bg-main: #06080f;
    --bg-card: rgba(12, 18, 32, 0.75);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(99, 102, 241, 0.3);
    --glow-indigo: rgba(99, 102, 241, 0.18);
    --glow-purple: rgba(168, 85, 247, 0.18);
    --glow-pink: rgba(236, 72, 153, 0.18);
    
    --text-primary: #f0f2f8;
    --text-secondary: #8b92a8;
    --text-muted: #4b5268;
    
    --color-primary: #6366f1;
    --color-secondary: #a855f7;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    
    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-brand-subtle: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(139,92,246,0.12), rgba(236,72,153,0.12));
    
    --font-outfit: 'Outfit', sans-serif;
    --font-inter: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-inter);
    line-height: 1.65;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.07) transparent;
}

body {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ===========================
   BACKGROUND BLOBS
   =========================== */
.bg-decorations {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    pointer-events: none;
    animation: blobFloat 12s ease-in-out infinite alternate;
}

.blob-1 { top: -8%; right: -8%; width: 700px; height: 700px; background: #4f46e5; animation-delay: 0s; }
.blob-2 { top: 35%; left: -12%; width: 600px; height: 600px; background: #9333ea; animation-delay: -4s; }
.blob-3 { bottom: 5%; right: 8%; width: 500px; height: 500px; background: #db2777; animation-delay: -8s; }

@keyframes blobFloat {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.1) translate(30px, -20px); }
}

/* ===========================
   LAYOUT
   =========================== */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ===========================
   GLASS PANEL
   =========================== */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-outfit);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.55);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-glass);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-2px);
}

.btn-icon { gap: 8px; }

.icon-svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ===========================
   HEADER
   =========================== */
#main-header {
    position: sticky;
    top: 14px;
    margin: 14px auto;
    width: calc(100% - 32px);
    max-width: 1180px;
    z-index: 100;
    animation: slideDown 0.6s var(--ease-out) both;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 62px;
    padding: 0 24px;
}

.logo-area { display: flex; align-items: center; gap: 10px; }
.header-logo { height: 30px; width: auto; }
.footer-logo { height: 26px; width: auto; }

.logo-text {
    font-family: var(--font-outfit);
    font-weight: 800;
    font-size: 20px;
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

/* ===========================
   REVEAL ANIMATION
   =========================== */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===========================
   HERO
   =========================== */
#hero {
    padding: 80px 0 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-content { animation: heroFadeIn 0.9s var(--ease-out) 0.2s both; }

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-outfit);
    margin-bottom: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    animation: fadeIn 0.6s var(--ease-out) 0.4s both;
}

.badge-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #818cf8;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
    font-family: var(--font-outfit);
    font-size: 60px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 22px;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.75;
    max-width: 500px;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: heroFadeInRight 0.9s var(--ease-out) 0.35s both;
}

@keyframes heroFadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===========================
   COMPILER SIMULATOR
   =========================== */
.compiler-simulator {
    overflow: hidden;
}

.simulator-header {
    background: rgba(255,255,255,0.025);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.red   { background: #ff5f57; }
.yellow{ background: #febc2e; }
.green { background: #28c840; }

.simulator-title {
    margin: 0 auto;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.simulator-body {
    padding: 28px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Nodes */
.sim-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.node-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.4s var(--ease-out);
}

.source-node .node-icon {
    color: #818cf8;
    border-color: rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.07);
}

.node-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Target nodes */
.target-nodes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.target-node .node-icon {
    font-size: 10px;
    width: 48px; height: 42px;
}

.target-node.active .node-icon {
    color: #a5b4fc;
    border-color: rgba(99,102,241,0.5);
    background: rgba(99,102,241,0.12);
    box-shadow: 0 0 16px rgba(99,102,241,0.2);
}

/* Connector lines */
.sim-connector {
    flex: 1;
    display: flex;
    align-items: center;
}

.pulse-line {
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.pulse {
    display: block;
    position: absolute;
    top: -3px;
    width: 28px; height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
    animation: pulseMoveH 2s ease-in-out infinite;
}

@keyframes pulseMoveH {
    from { left: -40px; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    to   { left: 100%; opacity: 0; }
}

/* Split lines */
.sim-split-connectors {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 110px;
    flex: 0.6;
    gap: 0;
}

.split-line {
    height: 2px;
    background: rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.split-line .pulse {
    animation-delay: 0s;
}

.split-line:nth-child(2) .pulse { animation-delay: 0.35s; }
.split-line:nth-child(3) .pulse { animation-delay: 0.7s; }

/* Spinning Engine */
.sim-engine {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.engine-core {
    position: relative;
    width: 72px; height: 72px;
    display: flex; align-items: center; justify-content: center;
}

.spinner-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    animation: spin 2.5s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.engine-logo-box {
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}

.engine-logo {
    width: 32px; height: 32px;
    object-fit: contain;
}

/* Code Preview Box */
.code-preview-box {
    overflow: hidden;
}

.preview-header {
    background: rgba(255,255,255,0.025);
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-lang {
    font-family: var(--font-mono);
    font-size: 11px;
    color: #a5b4fc;
    font-weight: 500;
}

.code-preview-box pre {
    padding: 18px 20px;
    font-size: 12px;
    line-height: 1.75;
    color: #a8b3cf;
    overflow: hidden;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    animation: codeReveal 0.4s var(--ease-out);
}

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

.code-preview-box pre code { color: #c3cde8; }

/* ===========================
   CONCEPT STEPS
   =========================== */
#concept-steps {
    padding: 0 0 80px;
}

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

.step-card {
    padding: 32px 28px;
    position: relative;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, var(--glow-color, transparent) 0%, transparent 65%);
    pointer-events: none;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.card-glow-indigo { --glow-color: var(--glow-indigo); }
.card-glow-purple { --glow-color: var(--glow-purple); }
.card-glow-pink   { --glow-color: var(--glow-pink); }

.step-num {
    font-size: 36px;
    font-weight: 700;
    color: rgba(255,255,255,0.06);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 16px;
}

.step-card h3 {
    font-family: var(--font-outfit);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===========================
   FEATURES SECTION
   =========================== */
#features { padding: 80px 0; }

.section-title {
    font-family: var(--font-outfit);
    font-size: 42px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 580px;
    margin: 0 auto 56px;
    line-height: 1.7;
}

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

.feature-card {
    padding: 36px 28px;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, var(--glow-color, transparent) 0%, transparent 60%);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.feature-icon {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px;
    color: var(--color-primary);
    transition: all 0.3s var(--ease-out);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(139,92,246,0.3);
    transform: scale(1.1) rotate(-3deg);
}

.feature-card .icon-svg { width: 22px; height: 22px; }

.feature-card h3 {
    font-family: var(--font-outfit);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.feature-card code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #a5b4fc;
}

/* ===========================
   COMPATIBILITY SECTION
   =========================== */
#compatibility { padding: 80px 0; }

.compat-grid {
    overflow: hidden;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    background: rgba(2, 4, 12, 0.28);
}

.compat-row {
    display: grid;
    grid-template-columns: 220px 160px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.045);
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.55;
}

.compat-row:last-child { border-bottom: none; }

.compat-head {
    background: rgba(255,255,255,0.025);
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-outfit);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.compat-target {
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--font-outfit);
}

.compat-row code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: #a5b4fc;
}

.status-ok { color: var(--color-success); }
.status-partial { color: var(--color-warning); }
.status-planned { color: #93c5fd; }

/* ===========================
   YAML SPEC EXPLORER
   =========================== */
#spec-explorer { padding: 80px 0; }

.explorer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.code-container {
    overflow: hidden;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
}

.code-title {
    background: rgba(255,255,255,0.025);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 12px;
    color: var(--text-secondary);
}

.yaml-code {
    padding: 20px;
    font-size: 12.5px;
    line-height: 1.9;
    background: rgba(4, 6, 14, 0.5);
    overflow-x: auto;
}

.yaml-key { color: #f87171; font-weight: 500; }

.yaml-key.clickable {
    cursor: pointer;
    border-bottom: 1px dashed rgba(248,113,113,0.35);
    display: inline-block;
    padding: 0 3px;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.yaml-key.clickable:hover {
    background: rgba(248,113,113,0.12);
    color: #fca5a5;
}

.yaml-key.clickable.active {
    background: rgba(248,113,113,0.22);
    color: #fff;
    border-bottom: 1px solid #f87171;
    box-shadow: 0 0 14px rgba(248,113,113,0.25);
}

.yaml-val { color: #34d399; }

/* Spec Info Panel */
.info-container {
    padding: 32px;
    min-height: 460px;
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
}

.info-header {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    align-items: center;
}

.info-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(99,102,241,0.12);
    color: #818cf8;
    padding: 4px 10px;
    border-radius: 4px;
}

.info-requirement {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(245,158,11,0.12);
    color: #fbbf24;
    padding: 4px 10px;
    border-radius: 4px;
}

.info-requirement.optional {
    background: rgba(107,114,128,0.12);
    color: #9ca3af;
}

.info-container h3 {
    font-family: var(--font-outfit);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.info-desc {
    color: var(--text-secondary);
    font-size: 14.5px;
    margin-bottom: 24px;
    line-height: 1.65;
}

.info-section { margin-bottom: 20px; }

.info-section h4 {
    font-family: var(--font-outfit);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.validation-list { list-style: none; }

.validation-list li {
    font-size: 13.5px;
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.validation-list li::before {
    content: "›";
    color: var(--color-primary);
    position: absolute;
    left: 2px;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.2;
}

.impact-text { font-size: 13.5px; color: var(--text-primary); line-height: 1.6; }

.tip-box {
    margin-top: auto;
    background: rgba(251,191,36,0.04);
    border: 1px solid rgba(251,191,36,0.12);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tip-title { font-size: 11px; font-weight: 700; color: #fbbf24; }

#spec-tip {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ===========================
   SECURITY RUNTIME SECTION
   =========================== */
#security-runtime { padding: 80px 0; }

/* Terminal Mockup */
.terminal-mockup {
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
}

.terminal-header {
    background: rgba(255,255,255,0.02);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-glass);
}

.terminal-title {
    margin: 0 auto;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 24px 28px;
    font-size: 13px;
    height: 320px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: rgba(3, 6, 14, 0.5);
}

.font-mono { font-family: var(--font-mono); }

.terminal-body .line {
    margin-bottom: 10px;
    white-space: pre-wrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.terminal-body .line.typed {
    opacity: 1;
    transform: translateX(0);
}

.cmd-prompt { color: var(--color-primary); font-weight: bold; margin-right: 8px; }
.terminal-body .info   { color: var(--text-secondary); }
.terminal-body .warn   { color: var(--color-warning); }
.terminal-body .prompt { color: #a5b4fc; font-weight: 600; }
.terminal-body .success{ color: var(--color-success); }
.terminal-body .output { color: #60a5fa; }

/* ===========================
   QUICKSTART TABS
   =========================== */
#quickstart { padding: 80px 0; }

.quickstart-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 300px;
    border: 1px solid var(--border-glass);
}

.qs-tabs {
    background: rgba(0,0,0,0.25);
    border-right: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
}

.tab-btn {
    padding: 18px 22px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.025);
    color: var(--text-secondary);
    font-family: var(--font-outfit);
    font-weight: 500;
    font-size: 13.5px;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

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

.tab-btn.active {
    color: #fff;
    background: rgba(99,102,241,0.09);
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.qs-content { padding: 28px 32px; background: rgba(2, 4, 12, 0.3); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 10px;
}

.lang-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.copy-btn {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 4px 10px;
    font-size: 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-inter);
}

.copy-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }

.qs-content pre { overflow-x: auto; font-size: 13px; line-height: 1.8; }
.qs-content .comment { color: var(--text-muted); }

/* ===========================
   FOOTER
   =========================== */
#main-footer {
    background: rgba(3, 5, 10, 0.9);
    border-top: 1px solid var(--border-glass);
    padding: 56px 0 28px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    gap: 40px;
}

.footer-brand { max-width: 420px; }

.footer-brand p {
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-outfit);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.star-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.25s var(--ease-out);
}

.star-history-btn:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.star-icon { width: 13px; height: 13px; fill: #fbbf24; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.03);
    padding-top: 22px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
    .hero-title { font-size: 46px; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-content { text-align: center; }
    .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .compat-row { grid-template-columns: 1fr; gap: 8px; }
    .explorer-grid { grid-template-columns: 1fr; }
    .quickstart-layout { grid-template-columns: 1fr; }
    .qs-tabs { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border-glass); }
    .tab-btn { flex-shrink: 0; padding: 14px 16px; font-size: 12.5px; }
    .tab-btn.active { box-shadow: inset 0 -2px 0 var(--color-primary); }
    .footer-container { flex-direction: column; gap: 24px; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 36px; }
    .section-title { font-size: 30px; }
    #main-header { top: 10px; margin: 10px auto; }
}

/* ===========================
   UTILS
   =========================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
