/* Core Reset and Variables - Light Theme */
:root {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.75);
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --violet: #6366f1;
    --violet-glow: rgba(99, 102, 241, 0.15);
    --cyan: #0ea5e9;
    --cyan-glow: rgba(14, 165, 233, 0.15);
    --magenta: #d946ef;
    --magenta-glow: rgba(217, 70, 239, 0.15);
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.15);
    --red: #dc2626;

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --panel-bg: #303030;
    --panel-header: #303030;
    --panel-input: #292929;
    --panel-border: #1d1d1d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Ambient Glows */
body::before, body::after {
    content: "";
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -2;
    opacity: 0.35;
    pointer-events: none;
}

body::before {
    top: -20vw;
    left: -20vw;
    background: radial-gradient(circle, #e0e7ff 0%, transparent 70%);
}

body::after {
    bottom: 10vw;
    right: -20vw;
    background: radial-gradient(circle, #ecfeff 0%, transparent 70%);
}

/* ============================================
   TOP NAVIGATION BAR (NEW)
   ============================================ */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--violet) 0%, var(--cyan) 50%, var(--magenta) 100%) 1;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    transition: box-shadow 0.3s ease;
}

.top-nav.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.nav-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 4px;
}

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

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.04);
}

/* Wrapper */
.wrapper {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 100px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.4;
}

.hero-bg-glow.violet {
    top: 10%;
    left: 20%;
    background-color: #e0f2fe;
    animation: pulse-glow 8s infinite alternate;
}

.hero-bg-glow.cyan {
    bottom: 10%;
    right: 20%;
    background-color: #cffafe;
    animation: pulse-glow 8s infinite alternate-reverse 2s;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 30px;
    color: var(--violet);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #0f172a 20%, #0284c7 60%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--violet) 0%, var(--cyan) 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ============================================
   GLASS CARD
   ============================================ */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.05), 0 1px 3px rgba(15, 23, 42, 0.02);
    transform: translateY(-3px);
}

/* Section Accent Top Borders */
#what-is-this.card { border-top: 4px solid var(--violet) !important; }
#audience.card { border-top: 4px solid var(--cyan) !important; }
#features.card { border-top: 4px solid var(--magenta) !important; }
#installation.card { border-top: 4px solid var(--amber) !important; }
#quickstart.card { border-top: 4px solid var(--violet) !important; }
#pipeline.card { border-top: 4px solid var(--cyan) !important; }
#simulator.card { border-top: 4px solid var(--magenta) !important; }

/* ============================================
   MAIN CONTENT
   ============================================ */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.doc-section {
    padding: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -12px;
    margin-bottom: 30px;
    font-weight: 400;
}

/* ============================================
   WHAT IS THIS? SECTION (NEW)
   ============================================ */
.what-is-this-box {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.04) 0%, rgba(13, 148, 136, 0.04) 100%);
    border: 1px solid rgba(2, 132, 199, 0.12);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.concept-steps {
    list-style: none;
    counter-reset: concept;
    padding-left: 0;
    margin-bottom: 16px;
}

.concept-steps li {
    counter-increment: concept;
    padding: 8px 0 8px 36px;
    position: relative;
    font-size: 1.02rem;
    color: var(--text-secondary);
}

.concept-steps li::before {
    content: counter(concept);
    position: absolute;
    left: 0;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   WHO IS THIS FOR? / AUDIENCE SECTION (NEW)
   ============================================ */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.audience-card {
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s ease;
}

.audience-card:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.audience-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.audience-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

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

/* ============================================
   IMAGE PLACEHOLDERS (NEW)
   ============================================ */
.image-placeholder {
    border: 2px dashed rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.02);
    padding: 32px 24px;
    text-align: center;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: rgba(2, 132, 199, 0.25);
    background: rgba(2, 132, 199, 0.03);
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.placeholder-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

.image-container {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
}

.doc-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.feature-card {
    background: rgba(15, 23, 42, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.15);
    transform: translateY(-4px);
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.text-violet { color: var(--violet); }
.text-cyan { color: var(--cyan); }
.text-magenta { color: var(--magenta); }
.text-amber { color: var(--amber); }

/* ============================================
   COMPATIBILITY NOTE (NEW)
   ============================================ */
.compat-note {
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* ============================================
   INSTALLATION STEPS
   ============================================ */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), #0369a1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

.step-text h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

code {
    font-family: var(--font-mono);
    background: rgba(15, 23, 42, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #c2185b;
}

/* ============================================
   QUICK START GUIDE (NEW)
   ============================================ */
.quickstart-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quickstart-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.quickstart-step:hover {
    background: rgba(15, 23, 42, 0.03);
    border-color: var(--border-hover);
}

.quickstart-step:last-child {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.04) 0%, rgba(13, 148, 136, 0.04) 100%);
    border-color: rgba(22, 163, 74, 0.15);
}

.quickstart-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 1rem;
}

.quickstart-step:last-child .quickstart-num {
    background: linear-gradient(135deg, #16a34a, #0d9488);
}

.quickstart-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.quickstart-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   3-STAGE PIPELINE DISPLAY
   ============================================ */
.pipeline-flow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
}

.pipeline-step {
    flex: 1;
    background: rgba(15, 23, 42, 0.01);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid transparent;
}

.pipeline-step.border-violet { border-color: rgba(99, 102, 241, 0.3); }
.pipeline-step.border-cyan { border-color: rgba(14, 165, 233, 0.3); }
.pipeline-step.border-magenta { border-color: rgba(217, 70, 239, 0.3); }

.pipeline-step-header {
    padding: 10px 16px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: white;
    text-align: center;
}

.pipeline-step-header.bg-violet { background-color: var(--violet); }
.pipeline-step-header.bg-cyan { background-color: var(--cyan); }
.pipeline-step-header.bg-magenta { background-color: var(--magenta); }

.pipeline-step-body {
    padding: 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pipeline-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* ============================================
   STAGE DETAIL SECTIONS (NEW)
   ============================================ */
.stage-detail {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.stage-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    padding-left: 14px;
    border-left: 4px solid;
}

.stage-heading.stage-violet { border-color: var(--violet); color: var(--violet); }
.stage-heading.stage-cyan { border-color: var(--cyan); color: var(--cyan); }
.stage-heading.stage-magenta { border-color: var(--magenta); color: var(--magenta); }

.stage-detail > p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
}

/* ============================================
   OPTION LISTS (for stage details) (NEW)
   ============================================ */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.option-item {
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.option-item:hover {
    border-color: var(--border-hover);
    background: rgba(15, 23, 42, 0.025);
}

.option-item.callout-option {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.03) 0%, rgba(13, 148, 136, 0.03) 100%);
    border-color: rgba(2, 132, 199, 0.12);
    margin-top: 8px;
}

.option-name {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.option-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.sub-options {
    margin-top: 8px;
    padding-left: 20px;
    list-style: disc;
}

.sub-options li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 2px 0;
}

/* ============================================
   FILTER LEVEL NOTE (NEW)
   ============================================ */
.filter-level-note {
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.15);
    border-left: 4px solid var(--amber);
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============================================
   SIMULATOR SECTION
   ============================================ */
.simulator-how {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.sim-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.sim-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.simulator-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    margin-top: 20px;
}

/* Mock Blender Panel (dark charcoal for authenticity) */
.mock-panel {
    background: var(--panel-bg);
    border: none;
    border-radius: 6px;
    color: #dddddd;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.panel-header {
    background: var(--panel-header);
    padding: 8px 12px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-header svg {
    color: #cccccc;
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.panel-dot.red { background-color: #ff5f56; }
.panel-dot.yellow { background-color: #ffbd2e; }
.panel-dot.green { background-color: #27c93f; }

.panel-title {
    font-weight: 400;
    margin-left: 4px;
    color: #e0e0e0;
    flex-grow: 1;
}

.panel-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-group {
    background: #2b2b2b;
    border: none;
    border-radius: 4px;
    padding: 8px;
}

.group-header {
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: normal;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.group-header svg {
    color: #aaaaaa;
}

.panel-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.panel-row-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.panel-row.align-center {
    justify-content: flex-start;
}

.panel-label {
    color: #cccccc;
}

.font-bold {
    font-weight: 600;
}

.preset-controls {
    display: flex;
    gap: 4px;
}

.panel-select, .panel-input, .panel-input-short {
    background: var(--panel-input);
    border: 1px solid var(--panel-border);
    color: #eee;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    outline: none;
}

.panel-select:focus, .panel-input:focus, .panel-input-short:focus {
    border-color: #555555;
    background: #222222;
}

.panel-select {
    cursor: pointer;
    width: 100%;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 12px;
}

.panel-input {
    width: 120px;
}

.panel-input-short {
    width: 55px;
    text-align: center;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.range-inputs span {
    font-size: 0.75rem;
    color: #888;
}

.panel-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background-color: #444444;
    border: 1px solid #1d1d1d;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.panel-checkbox:checked {
    background: #292929;
}

.panel-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #dddddd;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    margin-left: 6px;
    user-select: none;
    cursor: pointer;
}

.panel-btn {
    background: #292929;
    border: 1px solid #1d1d1d;
    color: #eee;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.panel-btn:hover {
    background: #3e3e3e;
}

.panel-btn.icon-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
}

.panel-btn.text-red:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--red);
}

.panel-color {
    border: none;
    background: none;
    width: 40px;
    height: 22px;
    cursor: pointer;
    border-radius: 2px;
}

.panel-execute-btn {
    background: #3e3e3e;
    color: #cccccc;
    border: 1px solid #1a1a1a;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.1s;
}

.panel-execute-btn:hover {
    background: #4d4d4d;
}

.panel-execute-btn:active {
    transform: scale(0.98);
}

.panel-row.border-bottom {
    border-bottom: none;
}

.pb-3 { padding-bottom: 8px; }
.flex-grow { flex-grow: 1; }

/* Documentation Panel Info Box */
.panel-info-box {
    background: transparent;
    border-left: none;
    padding: 4px 0 0 0;
    line-height: 1.4;
    transition: all 0.3s ease;
    color: #aaaaaa;
}

.mt-2 { margin-top: 8px; }
.text-sm { font-size: 0.75rem; }
.text-muted { color: #94a3b8; }

/* ============================================
   NODE EDITOR CANVAS
   ============================================ */
.node-editor-canvas {
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.canvas-header {
    background: #e2e8f0;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
}

.canvas-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-info {
    background: rgba(109, 40, 217, 0.08);
    border: 1px solid rgba(109, 40, 217, 0.2);
    color: var(--violet);
}

.bg-success {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.3);
    color: #16a34a;
    animation: pulse-border 1.5s infinite alternate;
}

.canvas-viewport {
    flex-grow: 1;
    position: relative;
    user-select: none;
    overflow: auto;
}

/* SVG Node Graphics */
.node-group-container {
    fill: #ffffff;
    stroke: #cbd5e1;
    stroke-width: 1.5;
    rx: 6;
    ry: 6;
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.05));
    transition: all 0.3s ease;
}

.node-group-container.active-target {
    stroke: #b45309;
    stroke-width: 2.5;
    filter: drop-shadow(0 0 10px rgba(217, 119, 6, 0.2));
}

.node-header-bg {
    height: 26px;
    rx: 5;
    ry: 5;
}

.bg-tex { fill: #d97706; }
.bg-shd { fill: #16a34a; }
.bg-out { fill: #dc2626; }
.bg-map { fill: #2563eb; }

.node-title {
    fill: #ffffff;
    font-size: 11px;
    font-weight: bold;
    font-family: var(--font-sans);
}

.node-text {
    fill: #1e293b;
    font-size: 10px;
    font-family: var(--font-sans);
}

.node-text.muted {
    fill: #94a3b8;
}

.node-socket {
    stroke-width: 1.5;
    r: 3.5;
    transition: fill 0.3s;
}

.sock-vec { fill: #eab308; stroke: #ca8a04; }
.sock-col { fill: #64748b; stroke: #475569; }
.sock-flt { fill: #94a3b8; stroke: #64748b; }
.sock-shd { fill: #22c55e; stroke: #16a34a; }

.connection-line {
    fill: none;
    stroke-width: 2;
    transition: stroke 0.3s;
}

.conn-vec { stroke: #ca8a04; }
.conn-flt { stroke: #64748b; }
.conn-shd { stroke: #16a34a; }
.conn-temp { stroke: var(--magenta); stroke-dasharray: 4; stroke-width: 2.5; }

/* ============================================
   OPERATIONS REFERENCE DETAIL CARDS (NEW)
   ============================================ */
.detail-card {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
}

.detail-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.detail-what,
.detail-params,
.detail-usecase {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.detail-params ul {
    margin-top: 6px;
    padding-left: 20px;
}

.detail-params li {
    padding: 3px 0;
    font-size: 0.92rem;
}

.detail-usecase {
    font-style: italic;
    color: var(--text-muted);
}

/* ============================================
   TECHNICAL / UNDER THE HOOD
   ============================================ */
.reference-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.ref-item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.ref-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ref-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.ref-item p {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.tech-card {
    background: rgba(15, 23, 42, 0.01);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
}

.tech-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.tech-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.tech-steps,
.tech-list {
    padding-left: 20px;
    margin-top: 8px;
}

.tech-steps li,
.tech-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 3px 0;
    line-height: 1.5;
}

/* ============================================
   SELECTED NODE INFO PANEL DETAILS (NEW)
   ============================================ */
.info-panel-details {
    margin: 16px 0;
}

.info-panel-details ul {
    list-style: none;
    padding: 0;
}

.info-panel-details li {
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ============================================
   FAQ SECTION (NEW)
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(15, 23, 42, 0.015);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: var(--border-hover);
    background: rgba(15, 23, 42, 0.025);
}

.faq-question {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-question::before {
    content: "Q";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--violet), var(--cyan));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-answer {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    padding-left: 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.animate-slide-down {
    animation: slide-down 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hidden {
    display: none !important;
}

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

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
    from { transform: scale(1); opacity: 0.3; }
    to { transform: scale(1.1); opacity: 0.45; }
}

@keyframes pulse-border {
    from { border-color: rgba(22, 163, 74, 0.3); box-shadow: 0 0 4px rgba(22, 163, 74, 0.1); }
    to { border-color: rgba(22, 163, 74, 0.8); box-shadow: 0 0 10px rgba(22, 163, 74, 0.3); }
}

/* SVG grid lines for light background */
#grid path {
    stroke: rgba(15, 23, 42, 0.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .content-container {
        gap: 24px;
        margin-bottom: 40px;
    }
    .doc-section {
        padding: 24px 20px;
    }
    .what-is-this-box {
        padding: 20px 24px;
        margin-bottom: 16px;
    }
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 16px;
    }
    .section-desc {
        margin-bottom: 20px;
    }
    .simulator-layout {
        grid-template-columns: 1fr;
    }
    .pipeline-flow {
        flex-direction: column;
    }
    .pipeline-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
    .top-nav {
        padding: 0 12px;
    }
    .nav-links {
        gap: 0;
    }
    .nav-links a {
        padding: 6px 8px;
        font-size: 0.78rem;
    }
    .audience-grid,
    .features-grid,
    .technical-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 16px;
    }
    .image-container {
        margin-top: 12px;
    }
    .feature-card .image-container {
        max-height: 180px;
    }
    .feature-card .doc-image {
        max-height: 180px;
        width: auto;
        margin: 0 auto;
        object-fit: contain;
    }
    .audience-card {
        padding: 20px;
    }
    .feature-card {
        padding: 18px;
    }
    .tech-card {
        padding: 18px;
    }
    .simulator-how {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .content-container {
        gap: 16px;
        margin-bottom: 24px;
    }
    .doc-section {
        padding: 16px 14px;
    }
    .what-is-this-box {
        padding: 12px 14px;
        margin-bottom: 12px;
    }
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
        gap: 8px;
    }
    .section-desc {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    .nav-links {
        display: none;
    }
    .hero {
        padding: 50px 0 30px;
    }
    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 16px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    .badge {
        padding: 4px 10px;
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .audience-grid,
    .features-grid,
    .technical-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .audience-card {
        padding: 16px;
    }
    .feature-card {
        padding: 14px;
    }
    .tech-card {
        padding: 14px;
    }
    .feature-card .image-container {
        max-height: 135px;
    }
    .feature-card .doc-image {
        max-height: 135px;
    }
    .quickstart-step {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }
    .step-item {
        flex-direction: column;
        gap: 12px;
    }
    .option-item {
        padding: 12px 16px;
    }
    .faq-item {
        padding: 14px 16px;
    }
    #node-svg {
        min-height: 400px !important;
    }
}
