/* ===================================
   Integrations Page
   =================================== */

/* --- Hero --- */
.intg-hero {
    position: relative;
    padding: 8rem 1.5rem 4rem;
    text-align: center;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .intg-hero {
        padding: 10rem 2rem 5rem;
    }
}

.intg-hero-container {
    max-width: 52rem;
    margin: 0 auto;
    position: relative;
}

.intg-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.intg-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: color-mix(in srgb, var(--cream) 70%, transparent);
    max-width: 40rem;
    margin: 0 auto 3rem;
}

.intg-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.intg-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.intg-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--earth);
    line-height: 1;
}

.intg-stat-label {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--cream) 55%, transparent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.intg-stat-divider {
    width: 1px;
    height: 3rem;
    background: color-mix(in srgb, var(--white) 10%, transparent);
}

/* --- Section Titles --- */
.intg-section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    text-align: center;
    margin-bottom: 1rem;
}

.intg-section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: color-mix(in srgb, var(--cream) 60%, transparent);
    text-align: center;
    max-width: 38rem;
    margin: 0 auto 3rem;
}

/* --- Integration Cards Section --- */
.intg-cards-section {
    padding: 5rem 1.5rem;
}

@media (min-width: 1024px) {
    .intg-cards-section {
        padding: 6rem 2rem;
    }
}

.intg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .intg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .intg-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Card */
.intg-card {
    background: var(--sand);
    border: 1px solid color-mix(in srgb, var(--white) 5%, transparent);
    border-radius: 1.25rem;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.intg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: color-mix(in srgb, var(--earth) 25%, transparent);
}

.intg-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.intg-card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.intg-card:hover .intg-card-icon {
    transform: scale(1.1) rotate(-3deg);
}

/* Status Badge */
.intg-status {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.3rem 0.7rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.intg-status-available {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.intg-status-coming-soon {
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
}

.intg-status-planned {
    background: rgba(192, 132, 252, 0.12);
    color: #c084fc;
}

.intg-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.intg-card:hover .intg-card-name {
    color: var(--earth);
}

.intg-card-desc {
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--cream) 65%, transparent);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.intg-card-detail {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--cream) 45%, transparent);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.intg-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid color-mix(in srgb, var(--white) 6%, transparent);
    padding-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.intg-card-features li {
    font-size: 0.8rem;
    color: color-mix(in srgb, var(--cream) 55%, transparent);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.intg-card-features li svg {
    color: var(--earth);
    flex-shrink: 0;
}

/* --- How It Works --- */
.intg-howitworks-section {
    padding: 5rem 1.5rem;
    background: var(--sand);
}

@media (min-width: 1024px) {
    .intg-howitworks-section {
        padding: 6rem 2rem;
    }
}

.intg-steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .intg-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .intg-steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.intg-step {
    background: var(--navy);
    border: 1px solid color-mix(in srgb, var(--white) 5%, transparent);
    border-radius: 1.25rem;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.intg-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.intg-step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: color-mix(in srgb, var(--earth) 20%, transparent);
    line-height: 1;
    margin-bottom: 1rem;
    font-variant-numeric: tabular-nums;
}

.intg-step-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.intg-step-desc {
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--cream) 55%, transparent);
    line-height: 1.65;
}

/* --- Data Security --- */
.intg-security-section {
    padding: 5rem 1.5rem;
}

@media (min-width: 1024px) {
    .intg-security-section {
        padding: 6rem 2rem;
    }
}

.intg-security-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
    align-items: center;
}

@media (min-width: 768px) {
    .intg-security-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.intg-security-title {
    font-size: clamp(1.8rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.intg-security-desc {
    font-size: 1.05rem;
    color: color-mix(in srgb, var(--cream) 60%, transparent);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.intg-security-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.intg-security-list li {
    font-size: 0.95rem;
    color: color-mix(in srgb, var(--cream) 70%, transparent);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.intg-security-list li svg {
    color: var(--earth);
    flex-shrink: 0;
}

/* Shield visual */
.intg-shield-card {
    background: var(--sand);
    border: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.intg-shield-icon {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--earth) 10%, transparent);
    color: var(--earth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intg-shield-label {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white);
}

.intg-shield-sub {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--cream) 45%, transparent);
}

.intg-shield-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.intg-shield-badges span {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.35rem 0.85rem;
    border-radius: 2rem;
    background: color-mix(in srgb, var(--white) 5%, transparent);
    color: color-mix(in srgb, var(--cream) 60%, transparent);
    border: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

/* --- Comparison Table --- */
.intg-comparison-section {
    padding: 5rem 1.5rem;
    background: var(--sand);
}

@media (min-width: 1024px) {
    .intg-comparison-section {
        padding: 6rem 2rem;
    }
}

.intg-comparison-table-wrapper {
    max-width: 48rem;
    margin: 0 auto;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
}

.intg-comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.intg-comparison-table thead {
    background: color-mix(in srgb, var(--navy) 80%, transparent);
}

.intg-comparison-table th {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: color-mix(in srgb, var(--cream) 50%, transparent);
    text-align: left;
}

.intg-comparison-table th.intg-highlight-col {
    color: var(--earth);
}

.intg-comparison-table td {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--cream) 65%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--white) 5%, transparent);
}

.intg-comparison-table td:first-child {
    font-weight: 500;
    color: var(--white);
}

.intg-comparison-table td.intg-highlight-col {
    color: var(--earth);
    font-weight: 600;
}

.intg-comparison-table tbody tr:hover {
    background: color-mix(in srgb, var(--white) 2%, transparent);
}

/* --- FAQ --- */
.intg-faq-section {
    padding: 5rem 1.5rem;
}

@media (min-width: 1024px) {
    .intg-faq-section {
        padding: 6rem 2rem;
    }
}

/* --- CTA --- */
.intg-cta-section {
    padding: 3rem 1.5rem 6rem;
}

@media (min-width: 1024px) {
    .intg-cta-section {
        padding: 3rem 2rem 8rem;
    }
}

/* ===================================
   Light Mode Overrides
   =================================== */
[data-theme="light"] .intg-hero-title,
[data-theme="light"] .intg-section-title,
[data-theme="light"] .intg-security-title,
[data-theme="light"] .intg-card-name,
[data-theme="light"] .intg-step-title,
[data-theme="light"] .intg-shield-label,
[data-theme="light"] .intg-comparison-table td:first-child {
    color: var(--navy);
}

[data-theme="light"] .intg-hero-subtitle,
[data-theme="light"] .intg-section-subtitle,
[data-theme="light"] .intg-card-desc,
[data-theme="light"] .intg-security-desc,
[data-theme="light"] .intg-step-desc,
[data-theme="light"] .intg-security-list li,
[data-theme="light"] .intg-card-features li,
[data-theme="light"] .intg-card-detail,
[data-theme="light"] .intg-comparison-table td,
[data-theme="light"] .intg-shield-sub {
    color: color-mix(in srgb, var(--navy) 60%, transparent);
}

[data-theme="light"] .intg-stat-label {
    color: color-mix(in srgb, var(--navy) 50%, transparent);
}

[data-theme="light"] .intg-stat-divider {
    background: color-mix(in srgb, var(--navy) 12%, transparent);
}

[data-theme="light"] .intg-card {
    background: #fff;
    border-color: color-mix(in srgb, var(--navy) 8%, transparent);
}

[data-theme="light"] .intg-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: color-mix(in srgb, var(--earth) 35%, transparent);
}

[data-theme="light"] .intg-card:hover .intg-card-name {
    color: var(--earth);
}

[data-theme="light"] .intg-card-features {
    border-top-color: color-mix(in srgb, var(--navy) 8%, transparent);
}

[data-theme="light"] .intg-howitworks-section,
[data-theme="light"] .intg-comparison-section {
    background: color-mix(in srgb, var(--navy) 3%, #fff);
}

[data-theme="light"] .intg-step {
    background: #fff;
    border-color: color-mix(in srgb, var(--navy) 8%, transparent);
}

[data-theme="light"] .intg-step:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .intg-shield-card {
    background: #fff;
    border-color: color-mix(in srgb, var(--navy) 8%, transparent);
}

[data-theme="light"] .intg-shield-badges span {
    background: color-mix(in srgb, var(--navy) 5%, transparent);
    color: color-mix(in srgb, var(--navy) 50%, transparent);
    border-color: color-mix(in srgb, var(--navy) 10%, transparent);
}

[data-theme="light"] .intg-comparison-table-wrapper {
    border-color: color-mix(in srgb, var(--navy) 10%, transparent);
}

[data-theme="light"] .intg-comparison-table thead {
    background: color-mix(in srgb, var(--navy) 4%, #fff);
}

[data-theme="light"] .intg-comparison-table th {
    color: color-mix(in srgb, var(--navy) 45%, transparent);
}

[data-theme="light"] .intg-comparison-table td {
    border-top-color: color-mix(in srgb, var(--navy) 6%, transparent);
}

[data-theme="light"] .intg-comparison-table tbody tr:hover {
    background: color-mix(in srgb, var(--navy) 2%, transparent);
}