/* =============================================================
   style-2.css — Vercel-style section component styles
   
   Light mode overrides have been moved to light-mode.css which
   is loaded globally via header.php. Add new page-specific
   overrides there if needed, or in light-mode.css for anything
   that should apply site-wide.
   ============================================================= */

/* ---------------------------------------------------------------
   Infrastructure Options Section
--------------------------------------------------------------- */

.infra-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    padding: 4rem max(1.5rem, calc((100% - 1200px) / 2));
    gap: 3rem;
    border-bottom: 1px solid #2e2e2e;
}

.infra-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.infra-card {
    display: block;
    padding: 2.5rem;
    border-right: 1px solid #2e2e2e;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background 0.2s;
    background: transparent;
}

.infra-card:last-child {
    border-right: none;
}

.infra-card-img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
}

/* Tablet: stack header text, keep 3-col cards */
@media (max-width: 991px) {
    .infra-header-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 3rem max(1.5rem, calc((100% - 1200px) / 2));
    }
}

/* Mobile: stack everything */
@media (max-width: 767px) {
    .infra-header-grid {
        padding: 2.5rem 1.25rem;
    }

    .infra-cards-grid {
        grid-template-columns: 1fr;
    }

    .infra-card {
        border-right: none;
        border-bottom: 1px solid #2e2e2e;
        padding: 2rem 1.25rem;
    }

    .infra-card:last-child {
        border-bottom: none;
    }

    .infra-card-img {
        height: 200px;
    }
}


/* ---------------------------------------------------------------
   Compute Cloud Section
--------------------------------------------------------------- */

/* Charcoal rhythm break — darker than #000 neighbors by a visible step */
.rws-cc-section {
    background: #1a1a1a;
    border-bottom: 1px solid #2e2e2e;
}

.cc-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: start;
}

.cc-sidebar {
    position: sticky;
    top: 100px;
    padding: 3rem 2.5rem 3rem max(1.5rem, calc((100vw - 1200px) / 2));
    border-right: 1px solid #2e2e2e;
}

.cc-tiles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 2rem 2rem 2rem;
    align-self: center;
}

.cc-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem 2rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-decoration: none;
    min-height: 200px;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cc-tile:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

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

    .cc-sidebar {
        position: static;
        border-right: none;
        border-bottom: 1px solid #2e2e2e;
        padding: 2.5rem max(1.5rem, 1.5rem);
    }

    .cc-tiles {
        padding: 1.5rem 1rem;
    }

    .cc-tile {
        min-height: unset;
    }
}

/* ---------------------------------------------------------------
   CTA Light Section — always white, dark-mode resistant
   Two-column: copy left, HubSpot form right
--------------------------------------------------------------- */

.rws-cta-light,
[data-bs-theme="dark"] .rws-cta-light {
    background: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 5rem 0 !important;
}

.rws-cta-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.rws-cta-label {
    font-family: monospace;
    font-size: 0.75rem;
    color: #09B850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.25rem;
}

.rws-cta-heading {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #111 !important;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 1rem;
}

.rws-cta-sub {
    color: #555 !important;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 2rem;
}

.rws-cta-checks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rws-cta-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: #333 !important;
}

.rws-cta-check i {
    color: #09B850;
    font-size: 1rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .rws-cta-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .rws-cta-light,
    [data-bs-theme="dark"] .rws-cta-light {
        padding: 3rem 0 !important;
    }
}

/* ---------------------------------------------------------------
   Benefit Strip — legacy row layout (kept for other pages)
--------------------------------------------------------------- */

.rws-diff-row {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    align-items: center;
    padding: 0 max(1.5rem, calc((100% - 1200px) / 2));
    border-bottom: 1px solid #2e2e2e;
    min-height: 90px;
    gap: 2rem;
}

.rws-diff-row:last-child {
    border-bottom: none;
}

@media (max-width: 767px) {
    .rws-diff-row {
        grid-template-columns: 1fr;
        padding: 1.5rem max(1.5rem, calc((100% - 1200px) / 2));
        gap: 0.35rem;
        min-height: unset;
    }
}


/* ---------------------------------------------------------------
   Benefit Strip — new 3-card layout
--------------------------------------------------------------- */

.rws-diff-cards-section {
    background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(9, 184, 80, 0.05) 0%, #000 65%);
    border-bottom: 1px solid #2e2e2e;
}

.rws-diff-cards-section h2 {
    color: #fff;
}

.rws-diff-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Base card — liquid glass */
.rws-diff-card {
    border-radius: 10px;
    padding: 2rem 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7rem;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(9, 184, 80, 0.22);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 0 20px rgba(9, 184, 80, 0.04) inset;
}

.rws-diff-card:hover {
    transform: translateY(-3px);
    border-color: rgba(9, 184, 80, 0.45);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.6),
        0 0 28px rgba(9, 184, 80, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* Green edge highlight — simulates glass reflection */
.rws-diff-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(9, 184, 80, 0.5) 50%, transparent 100%);
    pointer-events: none;
}

/* Card typography */
.rws-diff-card__label {
    font-family: monospace;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rws-diff-card__stat {
    font-family: monospace;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0.25rem 0;
    color: #34d399;
}

.rws-diff-card__body {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0.5rem 0 0;
}

.rws-diff-card__link {
    font-family: monospace;
    font-size: 0.8rem;
    text-decoration: none;
    margin-top: 0.5rem;
    align-self: flex-start;
    color: #34d399;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.rws-diff-card__link:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
    .rws-diff-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------
   Gradient CTA
--------------------------------------------------------------- */

.rws-gradient-cta {
    background: linear-gradient(
        135deg,
        #0a0a0a 0%,
        #111827 35%,
        #0f2318 65%,
        #0a0a0a 100%
    );
    border-bottom: 1px solid #1a1a1a;
    padding: 5rem max(1.5rem, calc((100% - 1200px) / 2));
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial bloom behind the text */
.rws-gradient-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 70% 80% at 50% 60%,
        rgba(9, 184, 80, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.rws-gradient-cta > * {
    position: relative;
    z-index: 1;
}

.rws-gradient-cta-label {
    font-family: monospace;
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.25rem;
}

.rws-gradient-cta-heading {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 auto 1rem;
    max-width: 22ch;
}

.rws-gradient-cta-sub {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 auto 2.5rem;
    max-width: 50ch;
}

.rws-gradient-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.rws-gradient-cta-btn-primary {
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 600;
    background: #fff;
    color: #000;
    padding: 0.75rem 1.75rem;
    text-decoration: none;
    letter-spacing: 0.01em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: inline-block;
    transition: opacity 0.15s;
}

.rws-gradient-cta-btn-primary:hover {
    opacity: 0.85;
}

.rws-gradient-cta-btn-secondary {
    font-family: monospace;
    font-size: 0.875rem;
    color: #888;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.15s;
}

.rws-gradient-cta-btn-secondary:hover {
    color: #ccc;
}

/* ---------------------------------------------------------------
   AI Factories Section
--------------------------------------------------------------- */

.ai-factories-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #2e2e2e;
    min-height: 340px;
}

.ai-factories-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #2e2e2e;
}

.ai-factories-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}

.ai-factories-stat-grid .stat-cell {
    padding: 2rem max(1.5rem, calc((100% - 1200px) / 8));
    border-right: 1px solid #2e2e2e;
}

.ai-factories-stat-grid .stat-cell:last-child {
    border-right: none;
}

@media (max-width: 767px) {
    .ai-factories-hero-grid {
        grid-template-columns: 1fr;
    }

    .ai-factories-hero-visual {
        display: none;
    }

    .ai-factories-two-col {
        grid-template-columns: 1fr;
    }

    .ai-factories-two-col a:first-child {
        border-right: none !important;
        border-bottom: 1px solid #2e2e2e;
    }

    .ai-factories-stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ai-factories-stat-grid .stat-cell:nth-child(2) {
        border-right: none;
    }

    .ai-factories-stat-grid .stat-cell:nth-child(1),
    .ai-factories-stat-grid .stat-cell:nth-child(2) {
        border-bottom: 1px solid #2e2e2e;
    }

    .ai-factories-stat-grid .stat-cell {
        padding: 1.5rem 1.25rem;
    }
}
