/* --- STYLES FOR THE MOVED PROMO SECTION --- */
.promo-section p {
    max-width: 750px;
    margin: 15px auto 25px auto;
    font-size: 1.15em;
    line-height: 1.7;
}
/* --- STYLES FOR THE FINAL UNIFIED HERO CARD --- */
.unified-hero-card {
    position: relative;
    overflow: hidden;
    background: rgba(30, 40, 55, 0.45);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color-soft);
    padding: 30px;
    margin: 0 auto;
    max-width: 1100px;
    text-align: center;
}

.unified-hero-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../images/ws-gateway-logo.png');
    background-size: cover;
    background-position: center 30%;
    opacity: 0.1;
    filter: blur(2px);
    z-index: 1;
}

.unified-hero-card > .unified-part,
.unified-hero-card > .stats-bar-container {
    position: relative;
    z-index: 2;
}

.unified-hero-card .unified-part:not(:last-of-type) {
    margin-bottom: 15px;
}

.unified-hero-card h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

/* --- Restored Info-Strip Style (Attention Grabbing) --- */
.unified-hero-card .info-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffc400, #ff8c00);
    color: #1a1a2e;
    padding: 15px 25px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(255, 196, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    animation: pulse-glow 2.5s infinite ease-in-out;
}

.unified-hero-card .info-strip:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 196, 0, 0.4);
}

.unified-hero-card .info-strip .icon-part {
    font-size: 2.2rem; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.unified-hero-card .info-strip .main-text {
    font-size: 1.05rem; font-weight: 700; color: #1a1a2e;
}
.unified-hero-card .info-strip .sub-text {
    font-size: 0.85rem; font-weight: 500; color: #4a4a6e;
}
html[dir="rtl"] .unified-hero-card .info-strip .text-part {
    text-align: right;
}
html[dir="ltr"] .unified-hero-card .info-strip .text-part {
    text-align: left;
}

/* ========================================= */
/* === HERO ANIMATED WEBP BACKGROUND === */
/* ========================================= */

.image-hero {
    position: relative;
    /* The path to your animated .webp file */
    background-image: url('../images/platform-bg.webp');
    background-size: cover;
    background-position: center center;
    padding-top: 50px;
    padding-bottom: 50px;
}

.image-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-bg-color-rgb), 0.75); /* Dark overlay */
}

/* Ensure hero content is on top of the background and overlay */
.image-hero > .container {
    position: relative; 
}
/* ========================================= */
/* === HERO VIDEO BACKGROUND STYLES      === */
/* ========================================= */

.video-hero {
    position: relative;
    overflow: hidden;
}

.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Placed behind the content */
}

.video-background-container video {
    position: absolute;
    top: 100%;
    left: 45%;
    transform: translate(-50%, -50%);
    min-height: 100%;
    min-width: 100%;
    width: 180%;
    height: auto;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-bg-color-rgb), 0.75); /* Dark overlay */
}

/* Ensure hero content is above the video */
.hero > .container {
    position: relative;
    z-index: 2;
}
/* === Hero Section Styles Modularized from style.css === */
.hero {
    color: white;
    padding: 10px 16px 48px 16px; 
    text-shadow: 0 2px 12px rgba(0,0,0,0.7);
    background: none;
    border-radius: 0;
    margin-bottom: 0; 
    text-align: center;
}

.hero h2 { 
    font-size: 2.9em;
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 800;
    line-height: 1.0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6), 0 4px 12px rgba(0,0,0,0.4);
}

.hero p {
    font-size: 1.3em; 
    color:#e0e7ff;
    opacity: 0.9;
    max-width: 750px; 
    margin-left:auto;
    margin-right:auto;
    margin-bottom: 35px; 
}

.hero .cta-button {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 12px 35px;
    font-size: 1.05em;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3), 0 0 0 1.5px rgba(79, 70, 229, 0.2);
    letter-spacing: 0.5px;
    text-decoration: none;
}

.hero .cta-button:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 7px 20px rgba(79, 70, 229, 0.4), 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.hero .accuracy-note {
    font-size: 1.05em; 
    color:#a5b4fc;
    opacity: 0.9;
    margin-top: 25px; 
}

.hero-main-card {
    background: rgba(35, 45, 60, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 32px 28px 24px 28px;
    margin: 0 auto 20px auto;
    text-align: center;
}

.hero-main-card h3 {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
    color: #bfcaff;
    line-height: 1.2;
}

.hero-main-card p {
    font-size: 1.08em;
    margin: 0 0 14px 0;
    color: var(--primary-text-color, #e5e7eb);
    line-height: 1.55;
}

.features-widget {
    margin: 0 auto 20px auto;
    max-width: 1100px;
    background: rgba(40, 50, 70, 0.18);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    width: 100%;
    margin-top: 18px;
}

.feature-card {
    background: rgba(40, 50, 70, 0.22);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    padding: 22px 16px;
    text-align: center;
    color: #e0e7ef;
    border: 1px solid var(--border-color-soft);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.subtitle-container {
    margin-bottom: 18px;
    text-align: center;
}

.hero-cta-buttons {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
    align-items: center;
}

.glassy-community-cta {
    background: rgba(129, 140, 248, 0.13);
    border-radius: 12px;
    padding: 12px 24px;
    max-width: 700px;
    color: #fff;
    font-size: 1.08em;
    text-align: center;
    box-shadow: 0 4px 18px rgba(129,140,248,0.10);
    border: 1px solid var(--highlight-color);
}

/* ========================================= */
/* === NEW SAI PURCHASE CARD STYLES      === */
/* ========================================= */

.sai-purchase-card {
    background: rgba(var(--primary-bg-color-rgb), 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 2px solid var(--highlight-color);
    padding-top: 40px;
    padding-bottom: 40px;
}

.sai-purchase-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.sai-purchase-header i {
    font-size: 2em;
    color: var(--highlight-color);
}

.sai-purchase-header h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
}

.sai-purchase-intro {
    text-align: center;
    max-width: 650px;
    margin: 15px auto 30px auto;
    font-size: 1.1em;
    color: var(--secondary-text-color);
}

.sai-features-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 20px auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}
html[dir="rtl"] .sai-features-list {
    text-align: right;
}

.sai-features-list li {
    padding: 0 10px 0 0;
    margin: 0;
    position: relative;
    font-size: 1.05em;
    line-height: 1.6;
}
html[dir="rtl"] .sai-features-list li {
    padding: 0 0 0 10px;
}

.sai-features-list li::before {
    content: '✅';
    color: var(--highlight-color);
    margin-left: 10px;
}
html[dir="rtl"] .sai-features-list li::before {
    margin-left: 0;
    margin-right: 10px;
}

.purchase-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.purchase-option-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color-soft);
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.purchase-option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.purchase-option-card.recommended {
    border-color: var(--highlight-color);
    box-shadow: 0 0 20px rgba(var(--highlight-color-rgb), 0.2);
}

.purchase-option-card .recommended-badge {
    position: absolute;
    top: -15px;
    background: var(--highlight-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}

.purchase-option-card h4 {
    font-size: 1.3em;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 15px;
}

.purchase-option-card .option-description {
    font-size: 0.95em;
    color: var(--secondary-text-color);
    flex-grow: 1;
    margin-bottom: 25px;
}

.purchase-option-card .cta-button,
.purchase-option-card .cta-button-secondary {
    width: 100%;
    text-decoration: none;
    display: inline-block;
    padding: 12px 20px;
    font-size: 1em;
}

@media (max-width: 768px) {
    .purchase-options-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================== */
/* === RESTORED STYLES FOR HERO SUB-SECTIONS === */
/* =============================================== */

/* --- Info/Education Strip --- */
.info-strip-container {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-strip {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #ffc400, #ff8c00);
    color: #1a1a2e;
    padding: 18px 30px;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(255, 196, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    max-width: 650px;
    width: auto;
    transition: all 0.3s ease;
    animation: pulse-glow 2.5s infinite ease-in-out;
}

html[dir="rtl"] .info-strip {
    text-align: right;
}
html[dir="ltr"] .info-strip {
    text-align: left;
}

.info-strip:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 12px 40px rgba(255, 196, 0, 0.45);
}

@keyframes pulse-glow {
    0% { box-shadow: 0 8px 30px rgba(255, 196, 0, 0.3); }
    50% { box-shadow: 0 10px 50px rgba(255, 165, 0, 0.4); }
    100% { box-shadow: 0 8px 30px rgba(255, 196, 0, 0.3); }
}

.info-strip .icon-part {
    font-size: 2.8rem;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.info-strip .text-part {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-strip .main-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.info-strip .sub-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a4a6e;
}

/* --- CTA Strip --- */

/* ========================================= */
/* === REDESIGNED MAIN CTA STRIP === */
/* ========================================= */

.cta-strip-container {
    padding: 10px 0;
    max-width: 650px;
    margin: 0 auto;
}

.cta-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(var(--highlight-color-rgb), 0.25);
    transition: all 0.3s ease;
    animation: pulse-cta 2.5s infinite ease-in-out;
    letter-spacing: 0.5px;
}

.cta-strip:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(var(--highlight-color-rgb), 0.4);
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
}

.cta-strip i {
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.cta-strip:hover i {
    transform: translateX(-5px);
}
html[dir="rtl"] .cta-strip:hover i {
    transform: translateX(5px);
}

@keyframes pulse-cta {
    0% {
        box-shadow: 0 8px 25px rgba(var(--highlight-color-rgb), 0.25);
    }
    50% {
        box-shadow: 0 8px 40px rgba(var(--highlight-color-rgb), 0.35);
    }
    100% {
        box-shadow: 0 8px 25px rgba(var(--highlight-color-rgb), 0.25);
    }
}

/* --- Subtitle Container --- */

/* ========================================= */
/* === REDESIGNED SUBTITLE CONTAINER === */
/* ========================================= */

.subtitle-container {
    max-width: 850px;
    margin: 40px auto;
    background: radial-gradient(ellipse at center, rgba(40, 50, 70, 0.4) 0%, rgba(30, 40, 55, 0.5) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color-soft);
    border-radius: 16px;
    padding: 25px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 
                inset 0 0 1.5px 1px rgba(255, 255, 255, 0.1),
                0 0 25px rgba(var(--highlight-color-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
}

.subtitle-container:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 
                inset 0 0 1.5px 1px rgba(255, 255, 255, 0.1),
                0 0 35px rgba(var(--highlight-color-rgb), 0.15);
    border-color: rgba(var(--highlight-color-rgb), 0.4);
}

.subtitle-icon {
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
html[dir="rtl"] .subtitle-icon {
    margin-right: 0;
    margin-left: 15px;
}
.subtitle-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(var(--highlight-color-rgb), 0.4);
}

.subtitle-container p {
    margin-bottom: 0;
    font-size: 1.2em;
    color: var(--primary-text-color);
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}