:root {
    --primary: #3157D5;
    --primary-dark: #1e3a8a;
    --primary-light: #eef2ff;
    --secondary: #64748b;
    --dark: #0f172a;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
}

/* ─── Hero Section ─── */
.integration-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #3157D5 100%);
    color: #ffffff;
    padding: 65px 0 50px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.integration-hero::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -90px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129,140,248,0.35) 0%, transparent 70%);
    pointer-events: none;
}
.integration-hero::before {
    content: "";
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.integration-hero .container { position: relative; z-index: 2; }
.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0.4rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e0e7ff;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(8px);
}
.integration-hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}
.integration-hero p.lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    max-width: 720px;
    margin: 0 auto 1.75rem;
    line-height: 1.55;
}
.hero-quick-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.hero-btn-white {
    background: #ffffff;
    color: #1e3a8a;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.hero-btn-white:hover {
    background: #f8fafc;
    color: #1d4ed8;
    transform: translateY(-2px);
}
.hero-btn-glass {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
}
.hero-btn-glass:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ─── Workflow Steps ─── */
.step-process-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 30px 26px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.step-process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.step-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.step-num-bubble {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    background: #1d4ed8;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
}
.step-card-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}
.step-card-desc {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
}
.btn-step-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: #ffffff;
    border: 1.5px solid #93c5fd;
    border-radius: 14px;
    color: #1d4ed8;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-step-action:hover, .btn-step-action:focus-visible {
    background: #f0f7ff;
    border-color: #3b82f6;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(49, 87, 213, 0.12);
}
.btn-step-action i {
    color: #2563eb;
    font-size: 1rem;
}

/* ─── Platform Integration Cards ─── */
.platform-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 24px;
    height: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}
.platform-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
}
.platform-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0f7ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.platform-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.platform-subtitle {
    font-size: 0.82rem;
    color: #64748b;
    margin: 0;
}

/* ─── Code Snippet Blocks (macOS Dark Terminal) ─── */
.code-terminal-card {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
    position: relative;
}
.code-terminal-header {
    background: #1e293b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.code-dots {
    display: flex;
    gap: 6px;
}
.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }
.code-terminal-title {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
}
.btn-copy-code {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}
.btn-copy-code:hover {
    background: #3157D5;
    border-color: #3157D5;
    color: #ffffff;
}
.code-terminal-body {
    padding: 16px 20px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.6;
    overflow-x: auto;
    margin: 0;
    white-space: pre;
}

/* ─── Config Tabs Component ─── */
.config-tabs-nav {
    display: flex;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 5px;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.config-tab-btn {
    flex: 1;
    min-width: 140px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.config-tab-btn:hover {
    color: #1d4ed8;
    background: rgba(255, 255, 255, 0.6);
}
.config-tab-btn.active {
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.config-tab-pane {
    display: none;
}
.config-tab-pane.active {
    display: block;
}

/* ─── Pricing Cards (Aligned with /pricing) ─── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}
.pricing-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    height: 100%;
}
.pricing-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}
.pricing-card-modern.featured {
    border: 2px solid #3157D5;
    box-shadow: 0 16px 36px rgba(49, 87, 213, 0.12);
}
.pricing-card-modern.popular {
    border: 2px solid #f59e0b;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.15);
}
.plan-top-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}
.badge-demo { background: #e0e7ff; color: #3730a3; }
.badge-free { background: #f1f5f9; color: #475569; }
.badge-pro { background: #dbeafe; color: #1d4ed8; }
.badge-business { background: #fef3c7; color: #92400e; }
.badge-enterprise { background: #f3e8ff; color: #6b21a8; }

.plan-name-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.25rem;
}
.plan-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.25rem;
}
.plan-price-wrap {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.plan-price-val {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}
.plan-price-period {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 600;
    margin-left: 4px;
}
.plan-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex-grow: 1;
}
.plan-features-list li {
    font-size: 0.9rem;
    color: #334155;
    padding: 7px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.45;
}
.plan-features-list li i.fa-check-circle {
    color: #10b981;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.plan-features-list li.crossed-out {
    color: #94a3b8;
    text-decoration: line-through;
}
.plan-features-list li.crossed-out i {
    color: #cbd5e1;
}

/* ─── Feature Comparison Table ─── */
.comparison-table-wrap {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-top: 2rem;
    overflow-x: auto;
}
.table-compare-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.table-compare-modern th {
    background: #f8fafc;
    padding: 14px 16px;
    font-weight: 800;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}
.table-compare-modern th:first-child {
    text-align: left;
}
.table-compare-modern td {
    padding: 13px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    text-align: center;
}
.table-compare-modern td:first-child {
    text-align: left;
    font-weight: 600;
    color: #0f172a;
}
.table-compare-modern tr:hover td {
    background: #f8fafc;
}

@media (max-width: 991px) {
    .pricing-grid { grid-template-columns: 1fr; }
}
