/**
 * homepage2.css - Styles for the new vertical scrolling home page
 * Includes: hero section, comparison sliders, animated sections, responsive design
 */

/* =============================================================================
   GLOBAL STYLES & VARIABLES
   ============================================================================= */

/* CRITICAL: Override any main.css conflicts */
html.homepage2-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
}

body.homepage2 {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    position: relative !important;
    background: #000 !important;
    color: #fff !important;
}

body.homepage2::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #000000 0%, #050a14 25%, #0a1428 50%, #050a14 75%, #000000 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@-webkit-keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure all sections are visible and stacked */
.homepage2 .section {
    position: relative !important;
    display: block !important;
    width: 100% !important;
}

.homepage2 {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

.homepage2 .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .homepage2 .container {
        padding: 0 20px;
    }
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero-section {
    min-height: 100vh;
    max-height: none !important; /* Override any fixed heights */
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 40px 80px;
    background: #000; /* Fallback color */
    overflow: hidden;
}

/* Hero Video Background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Dark overlay to ensure text readability */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Staggered Hero Lines */
.hero-line {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.hero-line-1 {
    animation-delay: 0.2s;
    text-align: left;
    align-self: flex-start;
    padding-left: 0;
}

.hero-line-2 {
    animation-delay: 0.6s;
    text-align: right;
    align-self: flex-end;
    padding-right: 0;
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile: Stack both lines center */
@media (max-width: 768px) {
    .hero-line-1,
    .hero-line-2 {
        text-align: center;
        align-self: center;
        padding: 0;
    }
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-bright, #00a6cc) 0%, var(--accent-orange, #ff6d00) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 40px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle strong {
    color: var(--primary-bright, #00a6cc);
    font-weight: 600;
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: 'Barlow Semi Condensed', sans-serif;
}

.btn-primary {
    background: #03456d;
    color: #fff;
    box-shadow: 0 4px 14px rgba(3, 69, 109, 0.4);
}

.btn-primary:hover {
    background: #00a6cc;
    color: #111;
    box-shadow: 0 6px 20px rgba(0, 166, 204, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-bright, #00a6cc);
}

.btn-large {
    flex-direction: column;
    padding: 18px 36px;
    gap: 4px;
    white-space: nowrap;
    min-width: 200px;
}

.btn-large span {
    font-size: 1.1rem;
    color: inherit;
}

.btn-large small {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
    color: inherit;
}

.btn-extra-large {
    flex-direction: column;
    padding: 24px 48px;
    font-size: 1.2rem;
}

/* Hero Trust Signals */
.hero-trust {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.95rem;
}

.trust-item i {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.1rem;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.3s ease;
    color: #fff;
    font-size: 0.85rem;
    z-index: 2;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent 0%, var(--primary-bright, #00a6cc) 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* =============================================================================
   SECTIONS - COMMON STYLES
   ============================================================================= */

.section {
    padding: 100px 0;
    position: relative;
}

.section:nth-child(even) {
    /* Removed background to allow gradient to flow seamlessly */
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 166, 204, 0.1);
    border: 1px solid rgba(0, 166, 204, 0.3);
    border-radius: 20px;
    color: var(--primary-bright, #00a6cc);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.section-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
}

.section-cta {
    text-align: center;
    margin-top: 60px;
}

/* =============================================================================
   COMPARISON SLIDERS
   ============================================================================= */

.comparison-container {
    max-width: 900px;
    margin: 0 auto 60px;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-image.after {
    clip-path: inset(0 0 0 50%);
}

.comparison-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

.comparison-image.before .comparison-label {
    /* Centered at bottom */
}

.comparison-image.after .comparison-label {
    /* Centered at bottom */
}

.comparison-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: var(--primary-bright, #00a6cc);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 166, 204, 0.5);
    z-index: 10;
}

.divider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}

.divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--primary-bright, #00a6cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
    z-index: 11;
}

.divider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 166, 204, 0.5);
}

.divider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.05);
}

.divider-handle i {
    color: #002f2f;
    font-size: 1.2rem;
    pointer-events: none;
}

.comparison-caption {
    text-align: center;
    margin-top: 16px;
    color: #fff;
    font-size: 0.95rem;
}

.comparison-caption i {
    color: var(--primary-bright, #00a6cc);
}

/* =============================================================================
   ENHANCED COMPARISON SLIDER WITH TABS
   ============================================================================= */

.comparison-container-enhanced {
    max-width: 1200px;
    margin: 0 auto 60px;
}

.slider-wrapper {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* Scenario Tabs (Left Side) */
.scenario-tabs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 180px;
}

.scenario-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Barlow Semi Condensed', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.scenario-tab i {
    font-size: 1.2rem;
    color: #fff;
    transition: color 0.3s ease;
}

.scenario-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 166, 204, 0.3);
    color: #fff;
}

.scenario-tab:hover i {
    color: var(--primary-bright, #00a6cc);
}

.scenario-tab.active {
    background: rgba(0, 166, 204, 0.15);
    border-color: var(--primary-bright, #00a6cc);
    color: #fff;
}

.scenario-tab.active i {
    color: var(--primary-bright, #00a6cc);
}

/* Slider Content (Right Side) */
.slider-content {
    flex: 1;
}

.slider-content .comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Scenario Images (Hidden by default) */
.scenario-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.scenario-images.active {
    opacity: 1;
    visibility: visible;
}

/* Comparison Images inside scenarios */
.scenario-images .comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scenario-images .comparison-image img,
.scenario-images .comparison-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scenario-images .comparison-image.after {
    clip-path: inset(0 0 0 50%);
}

.scenario-images .comparison-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: none;
}

.scenario-images .comparison-image.before .comparison-label {
    /* Centered at bottom */
}

.scenario-images .comparison-image.after .comparison-label {
    /* Centered at bottom */
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .slider-wrapper {
        flex-direction: column;
    }
    
    .scenario-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: auto;
    }
    
    .scenario-tab {
        flex: 1;
        min-width: 140px;
    }
    
    .scenario-tab span {
        display: none;
    }
    
    .scenario-tab i {
        font-size: 1.5rem;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .scenario-tab {
        padding: 12px;
        min-width: auto;
        flex: 1;
        justify-content: center;
    }
}

/* =============================================================================
   FEATURE GRID
   ============================================================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-bright, #00a6cc);
    transform: translateY(-4px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 166, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 1.8rem;
    color: var(--primary-bright, #00a6cc);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
}

.feature-card p {
    color: #fff;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   COST COMPARISON
   ============================================================================= */

.cost-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cost-card {
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.cost-card.traditional {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cost-card.incontext {
    background: linear-gradient(135deg, rgba(0, 166, 204, 0.1) 0%, rgba(255, 109, 0, 0.1) 100%);
    border: 2px solid var(--primary-bright, #00a6cc);
}

.cost-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-bright, #00a6cc);
    color: #002f2f;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.cost-card h4 {
    font-size: 1.25rem;
    margin: 0 0 20px 0;
    color: #fff;
}

.cost-price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cost-card.incontext .cost-price {
    color: var(--primary-bright, #00a6cc);
}

.cost-time {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.cost-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.cost-features li {
    padding: 8px 0;
    color: #fff;
    font-size: 0.95rem;
}

.cost-features i {
    margin-right: 8px;
    width: 16px;
}

.cost-card.traditional .cost-features i.fa-times {
    color: #ff4444;
}

.cost-card.incontext .cost-features i.fa-check {
    color: var(--primary-bright, #00a6cc);
}

/* =============================================================================
   SPLIT SECTIONS
   ============================================================================= */

.section-split {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

.section-split.reverse {
    direction: rtl;
}

.section-split.reverse > * {
    direction: ltr;
}

.split-content {
    max-width: 540px;
}

.split-content .section-label,
.split-content .section-title {
    text-align: left;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #fff;
    margin: 0 0 24px 0;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.feature-list li {
    padding: 10px 0;
    color: #ddd;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list i {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.split-visual {
    position: relative;
}

.visual-placeholder {
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #fff;
}

.visual-placeholder i {
    font-size: 4rem;
}

.visual-placeholder p {
    font-size: 0.95rem;
    margin: 0;
}

/* Model Slideshow */
.model-slideshow {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    width: 100%;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
    opacity: 1;
}

.slideshow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slideshow-label {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none;
}

.slideshow-dots {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden per user request */
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-bright, #00a6cc);
    width: 24px;
    border-radius: 5px;
}

/* =============================================================================
   MARKUP SHOWCASE
   ============================================================================= */

.markup-showcase {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
}

.markup-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.markup-row.reverse {
    direction: rtl;
}

.markup-row.reverse > * {
    direction: ltr;
}

.markup-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.markup-visual {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 400px;
}

.markup-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.markup-card:hover {
    border-color: var(--primary-bright, #00a6cc);
    transform: translateY(-4px);
}

.markup-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 166, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.markup-icon i {
    font-size: 2rem;
    color: var(--primary-bright, #00a6cc);
}

.markup-card h3 {
    font-size: 1.5rem;
    margin: 0 0 16px 0;
}

.markup-card p {
    color: #fff;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.markup-tools {
    list-style: none;
    padding: 0;
    margin: 0;
}

.markup-tools li {
    padding: 8px 0;
    color: #fff;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.markup-tools li:first-child {
    border-top: none;
}

/* =============================================================================
   THREE CONTEXTS
   ============================================================================= */

.contexts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.context-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

.context-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-bright, #00a6cc);
    transform: translateY(-6px);
}

.context-number {
    position: absolute;
    top: -16px;
    left: 40px;
    width: 40px;
    height: 40px;
    background: var(--primary-bright, #00a6cc);
    color: #002f2f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.context-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.context-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Context slideshow */
.context-slideshow {
    position: relative;
}

.context-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.context-slide.active {
    opacity: 1;
    position: relative;
}

.context-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 166, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 24px;
}

.context-icon i {
    font-size: 2rem;
    color: var(--primary-bright, #00a6cc);
}

.context-card h3 {
    font-size: 1.5rem;
    margin: 0 0 16px 0;
    color: var(--accent-orange, #ff6d00);
}

.context-description {
    color: #fff;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.context-uses {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-uses li {
    padding: 8px 0;
    color: #fff;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.context-uses li:first-child {
    border-top: none;
}

/* =============================================================================
   PRESENTATION FEATURES
   ============================================================================= */

.presentation-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pres-feature {
    text-align: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pres-feature:hover {
    border-color: var(--primary-bright, #00a6cc);
    transform: translateY(-4px);
}

.pres-feature i {
    font-size: 2.5rem;
    color: var(--primary-bright, #00a6cc);
    margin-bottom: 16px;
}

.pres-feature h4 {
    font-size: 1.125rem;
    margin: 0 0 8px 0;
}

.pres-feature p {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
}

/* =============================================================================
   PRICING
   ============================================================================= */

.pricing-card-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px;
    background: linear-gradient(135deg, rgba(0, 166, 204, 0.1) 0%, rgba(255, 109, 0, 0.1) 100%);
    border: 2px solid var(--primary-bright, #00a6cc);
    border-radius: 16px;
    position: relative;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

.pricing-left {
    text-align: center;
}

.pricing-right {
    padding-left: 60px;
    border-left: 2px solid rgba(0, 166, 204, 0.3);
}

.pricing-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 48px 40px;
    background: linear-gradient(135deg, rgba(0, 166, 204, 0.1) 0%, rgba(255, 109, 0, 0.1) 100%);
    border: 2px solid var(--primary-bright, #00a6cc);
    border-radius: 16px;
    position: relative;
    text-align: center;
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-orange, #ff6d00);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin: 0 0 24px 0;
}

.pricing-price {
    margin-bottom: 8px;
}

.price-amount {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-bright, #00a6cc);
}

.price-period {
    font-size: 1.5rem;
    color: #fff;
}

.pricing-annual {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.pricing-why-grid .why-item {
    text-align: left;
    margin-bottom: 0;
}

.pricing-why-grid .why-heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--accent-orange, #ff6d00);
}

.pricing-why-grid .why-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

.pricing-why-items {
    margin: 0 0 32px 0;
    text-align: left;
}

.pricing-why-items .why-item {
    margin-bottom: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-why-items .why-item:first-child {
    border-top: none;
    padding-top: 0;
}

.pricing-why-items .why-item:last-child {
    margin-bottom: 0;
}

.pricing-why-items .why-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--accent-orange, #ff6d00);
}

.pricing-why-items .why-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    color: #ddd;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features li:first-child {
    border-top: none;
}

.pricing-features i {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pricing-guarantee {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pricing-guarantee i {
    color: var(--primary-bright, #00a6cc);
}

/* Why InContext3D Section */
.why-incontext {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px;
    background: rgba(0, 166, 204, 0.05);
    border: 2px solid rgba(0, 166, 204, 0.2);
    border-radius: 16px;
}

.why-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px 0;
    color: var(--primary-bright, #00a6cc);
}

.why-item {
    margin-bottom: 32px;
}

.why-item:last-child {
    margin-bottom: 0;
}

.why-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--accent-orange, #ff6d00);
}

.why-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    margin: 0;
}

.roi-callout {
    max-width: 700px;
    margin: 60px auto 0;
    padding: 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.roi-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 166, 204, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.roi-icon i {
    font-size: 1.8rem;
    color: var(--primary-bright, #00a6cc);
}

.roi-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
}

.roi-text p {
    margin: 0;
    color: #fff;
    line-height: 1.6;
}

/* =============================================================================
   FINAL CTA
   ============================================================================= */

.section-final-cta {
    padding: 120px 0;
    background: radial-gradient(ellipse at center, rgba(0, 166, 204, 0.15) 0%, transparent 60%);
}

.final-cta-content {
    text-align: center;
}

.final-cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 20px 0;
}

.final-cta-content p {
    font-size: 1.125rem;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 40px 0;
}

.final-trust-signals {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.trust-signal {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 0.95rem;
}

.trust-signal i {
    color: var(--primary-bright, #00a6cc);
    font-size: 1.1rem;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate].animate-fade-up {
    animation: fadeUp 0.8s ease forwards;
}

[data-animate].animate-fade-left {
    animation: fadeLeft 0.8s ease forwards;
}

[data-animate].animate-fade-right {
    animation: fadeRight 0.8s ease forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }
    
    .section-split {
        grid-template-columns: 1fr;
    }
    
    .section-split.reverse {
        direction: ltr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 100px 15px 60px 15px;
    }
    
    .hero-content {
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-line-1,
    .hero-line-2 {
        text-align: center !important;
        align-self: center !important;
        padding: 0 !important;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 16px;
        width: 100%;
        align-items: center;
        padding: 0;
    }
    
    .btn-large,
    .btn-extra-large {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 16px 20px;
        box-sizing: border-box;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .feature-grid,
    .contexts-grid,
    .presentation-features {
        grid-template-columns: 1fr;
    }
    
    .comparison-slider {
        aspect-ratio: 4 / 3;
    }
    
    .cost-comparison {
        grid-template-columns: 1fr;
    }
    
    .markup-showcase {
        gap: 40px;
    }
    
    .markup-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .markup-row.reverse {
        direction: ltr;
    }
    
    /* On mobile, swap the order of the second markup row */
    .markup-row:nth-child(2) {
        display: flex;
        flex-direction: column;
    }
    
    .markup-row:nth-child(2) .markup-card {
        order: 1;
    }
    
    .markup-row:nth-child(2) .markup-visual {
        order: 2;
    }
    
    .pricing-card-wide {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px 24px;
    }
    
    .pricing-right {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(0, 166, 204, 0.3);
        padding-top: 40px;
    }
    
    .pricing-why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card {
        padding: 32px 24px;
    }
    
    .why-incontext {
        padding: 32px 24px;
    }
    
    .roi-callout {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .comparison-slider {
        aspect-ratio: 3 / 4;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* =============================================================================
   HEADER SCROLL ENHANCEMENT
   ============================================================================= */

body.homepage2 header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.95) !important;
}

header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.95) !important;
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
