/* ============================================
   PLATFORM PAGES - SHARED STYLES
   Provision Connect | Phase 3
   ============================================ */

/* ---- Hero ---- */
.platform-hero {
    background: linear-gradient(135deg, #262b2f 0%, #31383c 50%, #1a1f22 100%);
    color: #fff;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.platform-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(255,127,75,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.platform-hero .hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ff7f4b, #e66a36);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(255,127,75,0.35);
}

.platform-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.15;
}

.platform-hero .hero-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
}

/* ---- Section Basics ---- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: #5a6c7d;
    font-size: 1.05rem;
    margin-bottom: 56px;
    font-family: 'DM Sans', sans-serif;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Benefits ---- */
.benefits-section {
    padding: 88px 0;
    background: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.benefit-card {
    background: #f8f9fa;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 36px 28px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.09);
}

.benefit-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(255,127,75,0.12), rgba(255,127,75,0.06));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ff7f4b;
    margin-bottom: 18px;
}

.benefit-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.benefit-card p {
    font-family: 'DM Sans', sans-serif;
    color: #5a6c7d;
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ---- How It Works ---- */
.how-it-works {
    padding: 88px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f4 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff7f4b, #e66a36);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.step-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-card p {
    font-family: 'DM Sans', sans-serif;
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- Features Grid ---- */
.features-section {
    padding: 88px 0;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    transition: border-color 0.2s, background 0.2s;
}

.feature-item:hover {
    border-color: rgba(255,127,75,0.3);
    background: rgba(255,127,75,0.025);
}

.feature-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,127,75,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff7f4b;
    font-size: 1.1rem;
}

.feature-item-text h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 4px;
}

.feature-item-text p {
    font-family: 'DM Sans', sans-serif;
    color: #5a6c7d;
    font-size: 0.88rem;
    line-height: 1.55;
}

/* ---- Integrations ---- */
.integrations-section {
    padding: 72px 0;
    background: #f8f9fa;
}

.integrations-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.integration-chip {
    background: #fff;
    border: 1px solid #e0e4e9;
    border-radius: 32px;
    padding: 10px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #31383c;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.integration-chip:hover {
    border-color: #ff7f4b;
    box-shadow: 0 2px 12px rgba(255,127,75,0.15);
}

.integration-chip i {
    color: #ff7f4b;
}

/* ---- Use Cases ---- */
.use-cases-section {
    padding: 88px 0;
    background: #fff;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.use-case-card {
    border-left: 4px solid #ff7f4b;
    padding: 28px;
    background: #f8f9fa;
    border-radius: 0 12px 12px 0;
}

.use-case-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.use-case-card p {
    font-family: 'DM Sans', sans-serif;
    color: #5a6c7d;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, #262b2f 0%, #31383c 100%);
    padding: 88px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,127,75,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    font-family: 'DM Sans', sans-serif;
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    background: linear-gradient(135deg, #ff7f4b, #e66a36);
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255,127,75,0.4);
}

/* ---- Stat Bar ---- */
.stats-bar {
    background: linear-gradient(135deg, #ff7f4b, #e66a36);
    padding: 48px 0;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
    color: #ffffff !important;
}

.stat-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ---- Suppliers Page ---- */
.supplier-tier {
    margin-bottom: 64px;
}

.supplier-tier h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff7f4b;
    display: inline-block;
}

.suppliers-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.supplier-chip {
    background: #f8f9fa;
    border: 1px solid #e0e4e9;
    border-radius: 10px;
    padding: 16px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #31383c;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.2s, transform 0.2s;
}

.supplier-chip:hover {
    border-color: #ff7f4b;
    transform: translateY(-2px);
}

.supplier-chip i {
    color: #ff7f4b;
    font-size: 1.1rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .platform-hero { padding: 72px 0 60px; }
    .steps-grid { grid-template-columns: 1fr; }
    .stats-row { gap: 36px; }
    .stat-value { font-size: 1.8rem; }
}

/* ============================================
   DARK MODE OVERRIDES
   platform-pages.css uses hardcoded hex colors
   that don't respond to [data-theme="dark"].
   These overrides fix all content sections.
   ============================================ */

/* Section headings & subtitles */
[data-theme="dark"] .section-title {
    color: #e8eaed;
}
[data-theme="dark"] .section-subtitle {
    color: #b8bdc5;
}

/* Benefits section */
[data-theme="dark"] .benefits-section {
    background: #1a1f2e;
}
[data-theme="dark"] .benefit-card {
    background: #252b3b;
    border-color: #3a4150;
}
[data-theme="dark"] .benefit-card h3 {
    color: #e8eaed;
}
[data-theme="dark"] .benefit-card p {
    color: #b8bdc5;
}

/* How It Works */
[data-theme="dark"] .how-it-works {
    background: #252b3b;
}
[data-theme="dark"] .step-card {
    background: #2f3647;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
[data-theme="dark"] .step-card h3 {
    color: #e8eaed;
}
[data-theme="dark"] .step-card p {
    color: #b8bdc5;
}

/* Features */
[data-theme="dark"] .features-section {
    background: #1a1f2e;
}
[data-theme="dark"] .feature-item {
    border-color: #3a4150;
}
[data-theme="dark"] .feature-item:hover {
    background: rgba(255,127,75,0.06);
    border-color: rgba(255,127,75,0.3);
}
[data-theme="dark"] .feature-item-text h4 {
    color: #e8eaed;
}
[data-theme="dark"] .feature-item-text p {
    color: #b8bdc5;
}

/* Integrations */
[data-theme="dark"] .integrations-section {
    background: #252b3b;
}
[data-theme="dark"] .integration-chip {
    background: #2f3647;
    border-color: #3a4150;
    color: #e8eaed;
}

/* Use Cases */
[data-theme="dark"] .use-cases-section {
    background: #1a1f2e;
}
[data-theme="dark"] .use-case-card {
    background: #252b3b;
}
[data-theme="dark"] .use-case-card h4 {
    color: #e8eaed;
}
[data-theme="dark"] .use-case-card p {
    color: #b8bdc5;
}

/* Suppliers page */
[data-theme="dark"] .supplier-tier h3 {
    color: #e8eaed;
}
[data-theme="dark"] .supplier-chip {
    background: #252b3b;
    border-color: #3a4150;
    color: #e8eaed;
}
