/* ==========================================================================
   CDX Agent Dock v2.0 — Enterprise SaaS & API Gateway Product Stylesheet
   Zero-Layout-Shift Dual Workbench · Keep-All Typography · 7-Section Layout
   ========================================================================== */
.section-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3.2rem 2rem;
    box-sizing: border-box;
}
.section-header,
.hero-title,
.section-title,
.section-desc,
.dock-chapter-card,
.dock-module-card,
.pricing-card-clean,
.faq-item {
    word-break: keep-all;
    overflow-wrap: break-word;
}
.hero-title {
    font-size: clamp(2.05rem, 3.2vw, 2.75rem) !important;
    line-height: 1.32 !important;
    letter-spacing: -0.025em !important;
    font-weight: 800 !important;
}
.section-title {
    font-size: clamp(1.7rem, 2.5vw, 2.15rem) !important;
    line-height: 1.34 !important;
    letter-spacing: -0.02em !important;
    font-weight: 800 !important;
}
.section-desc {
    font-size: 1.02rem !important;
    line-height: 1.74 !important;
    color: #334155 !important;
}
.dock-chapter-card {
    padding: 2.5rem 2.5rem;
    margin-top: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}
.dock-chapter-card > h2 {
    font-family: 'Outfit', 'Pretendard', sans-serif;
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-top: 0.4rem;
    margin-bottom: 0.75rem;
}
.dock-chapter-card > p {
    font-size: 1.0rem !important;
    line-height: 1.74 !important;
    color: #334155 !important;
    margin-bottom: 1.5rem;
}
h2 code, h3 code {
    font-family: 'Fira Code', 'Outfit', monospace;
    font-weight: 700;
    font-size: 0.9em;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 6px;
}
p code, li code, td code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85em;
    font-weight: 600;
    background: #F1F5F9;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
}

/* Install Command Bar */
.dock-install-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 1.8rem auto 0.5rem;
}
.dock-install-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0F172A;
    color: #F8FAFC;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 102, 241, 0.45);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}
.dock-install-pill:hover {
    transform: translateY(-2px);
    border-color: #6366F1;
}

/* Comparison & Architecture Tables */
.dock-compare-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
    word-break: keep-all;
}
.dock-compare-table th {
    background: #0F172A;
    color: #F8FAFC;
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.88rem;
    border-bottom: 2px solid #334155;
    white-space: nowrap;
}
.dock-compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: #1E293B;
    line-height: 1.66;
    vertical-align: top;
}
.dock-compare-table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.015);
}

/* 7-Module Bento Architecture Grid (Base 4 Core + 3 Add-ons) */
.dock-module-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.8rem 0 1rem 0;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #E2E8F0;
}
.dock-module-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.dock-module-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.dock-module-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem 1.6rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 215px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dock-module-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.dock-module-badge {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 0.65rem;
    letter-spacing: 0.03em;
}
.dock-module-title {
    font-family: 'Outfit', 'Pretendard', sans-serif;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.6rem 0;
    line-height: 1.38;
}
.dock-module-list {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.66;
    padding-left: 1.15rem;
    margin: 0;
}
.dock-module-list li {
    margin-bottom: 0.4rem;
}
.dock-module-footer-meta {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #E2E8F0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 6px 16px;
    font-size: 0.79rem;
    color: #64748B;
    font-family: 'Fira Code', monospace;
}
.dock-module-footer-meta span {
    white-space: nowrap;
}
.dock-pre-wrap {
    position: relative;
}
.dock-pre-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #E2E8F0;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid #475569;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.dock-pre-copy-btn:hover {
    background: #2563EB;
    border-color: #3B82F6;
    color: #FFFFFF;
}
.dock-pre-copy-btn.copied {
    background: #059669;
    border-color: #10B981;
    color: #FFFFFF;
}

/* v3.1 Art-Director Hero Polish (Clear CTA Focal Point, Scannable Hierarchy, Visible Version & Pricing) */
.dock-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 6px 14px 6px 8px;
    margin-bottom: 1.35rem;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}
.dock-version-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #1D4ED8;
    color: #FFFFFF;
    font-family: 'Fira Code', monospace;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.dock-hero-cta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 1.75rem auto 1.35rem auto;
}
.dock-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    border: none;
    background: #1D4ED8;
    color: #FFFFFF;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(29, 78, 216, 0.28);
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}
.dock-cta-primary:hover {
    background: #1E40AF;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(29, 78, 216, 0.34);
}
.dock-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.dock-cta-secondary:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
}
.dock-cta-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
}
.dock-cta-ghost:hover {
    color: #1D4ED8;
    background: #F1F5F9;
}
.dock-quick-strip {
    max-width: 1080px;
    margin: 1.65rem auto 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: left;
}
@media (max-width: 820px) {
    .dock-quick-strip {
        grid-template-columns: 1fr;
    }
}

/* Zero-Layout-Shift Dual Code Showcase & Live Simulator Workbenches */
.dock-tab-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
    padding-bottom: 8px;
}
.dock-tab-btn {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    padding: 9px 12px;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dock-tab-btn:hover {
    color: var(--primary);
    border-color: #93C5FD;
}
.dock-tab-btn.active {
    background: #2563EB;
    color: #FFFFFF;
    border-color: #2563EB;
}

/* Strictly Locked Code Box Height -> 0px Layout Shift when switching tabs */
.dock-code-box {
    background: #0B1222;
    border-radius: 12px;
    padding: 1.35rem 1.65rem;
    position: relative;
    box-shadow: 0 12px 32px rgba(11, 18, 34, 0.14);
    height: 415px;
    min-height: 415px;
    max-height: 415px;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: auto;
}
.dock-code-box pre {
    margin: 0;
}
.dock-code-box code {
    font-family: 'Fira Code', monospace;
    font-size: 0.86rem;
    color: #E2E8F0;
    line-height: 1.65;
    white-space: pre;
}
.btn-copy-code {
    position: sticky;
    float: right;
    top: 0;
    right: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* Strictly Locked Simulator Container -> 0px Layout Shift */
.dock-sim-container {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-top: 1.4rem;
    box-sizing: border-box;
}
.dock-sim-header {
    padding: 0.9rem 1.35rem;
    min-height: 58px;
    box-sizing: border-box;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.dock-sim-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.dock-sim-col {
    padding: 1.2rem 1.35rem;
    box-sizing: border-box;
}
.dock-sim-col:first-child {
    border-right: 1px solid var(--border);
}
.dock-sim-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 30px;
    margin-bottom: 0.65rem;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
    gap: 8px;
}
.token-counter-pill {
    background: #F1F5F9;
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    font-size: 0.77rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    white-space: nowrap;
}
.token-counter-pill.saved {
    background: #DCFCE7;
    border-color: #86EFAC;
    color: #166534;
}
.dock-sim-editor {
    width: 100%;
    height: 275px;
    min-height: 275px;
    max-height: 275px;
    font-family: 'Fira Code', monospace;
    font-size: 0.83rem;
    line-height: 1.6;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    resize: none;
    outline: none;
    box-sizing: border-box;
    overflow-y: auto;
}

/* 6-Stage Request Lifecycle Pipeline Grid */
.dock-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.4rem 0 2rem 0;
}
.dock-pipeline-step {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-left: 4px solid #2563EB;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    box-sizing: border-box;
}
.dock-pipeline-step-num {
    font-family: 'Fira Code', monospace;
    font-size: 0.74rem;
    font-weight: 800;
    color: #2563EB;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 0.3rem;
}
.dock-pipeline-step h4 {
    margin: 0 0 0.4rem 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0F172A;
}
.dock-pipeline-step p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.58;
    color: #475569;
}

/* Pricing Card Alignment & Uniformity */
.pricing-card-clean {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 430px;
    box-sizing: border-box;
}
.plan-specs-list li {
    display: block !important;
    line-height: 1.55 !important;
    margin-bottom: 0.55rem !important;
}
.plan-specs-list li .chk {
    display: inline-block;
    margin-right: 6px;
}

/* Subnav & FAQ */
.product-subnav-container {
    max-width: 1240px !important;
    padding: 0 1.2rem !important;
    gap: 0.6rem !important;
}
.product-name-chip {
    font-size: 0.84rem !important;
    white-space: nowrap;
}
.product-ver-badge {
    font-size: 0.72rem !important;
    padding: 2px 8px !important;
    white-space: nowrap;
}
.product-inline-links {
    display: flex;
    align-items: center;
    gap: 0.65rem !important;
    flex-wrap: nowrap;
}
.product-inline-links a {
    font-size: 0.78rem !important;
    white-space: nowrap;
}
.product-dropdown-btn {
    white-space: nowrap;
}
.metric-num {
    white-space: nowrap;
    font-size: clamp(1.45rem, 2.0vw, 1.85rem) !important;
}
.faq-master-wrapper { max-width: 100% !important; }
.faq-grid { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.faq-question {
    padding: 1.15rem 1.5rem;
    font-weight: 700;
    font-size: 1.0rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-arrow { font-size: 0.75rem; color: var(--text-muted); transition: transform 0.25s ease; flex-shrink: 0; }
.faq-item.active .faq-arrow { transform: rotate(180deg); color: var(--primary); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.72;
    background: #FAFAFA;
}
.faq-item.active .faq-answer {
    max-height: 520px;
    padding: 1rem 1.5rem 1.3rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
    .pricing-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
    .dock-module-grid-3 { grid-template-columns: 1fr 1fr; }
    .dock-pipeline-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .dock-module-grid-4, .dock-module-grid-3, .dock-sim-grid, .dock-pipeline-grid { grid-template-columns: 1fr; }
    .dock-sim-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }
    .section-container { padding: 2.2rem 1.2rem; }
    .dock-chapter-card { padding: 1.5rem; }
}
