/* ============================================
   SECTION 1: HERO - Ultra Premium Version
   ============================================ */

/* CSS Variables */
.section-hero {
    --hero-teal: #28CCCD;
    --hero-aqua: #3CDECF;
    --hero-purple: #A855F7;
    --hero-dark: #0B0F19;
    --hero-glow-1: rgba(40, 204, 205, 0.15);
    --hero-glow-2: rgba(168, 85, 247, 0.15);
}

/* Hero Container */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 1.5rem 4rem;
    overflow: hidden;
    background: var(--hero-dark);
}

/* Animated Grid Background */
.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(40, 204, 205, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 204, 205, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 4s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Floor Grid Effect */
.hero-floor-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(40, 204, 205, 0.05) 0%, transparent 100%);
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    mask-image: linear-gradient(to top, transparent, black 30%);
}

/* Floating Orbs */
.hero-orb-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb-back-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--hero-glow-1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-back-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--hero-glow-2) 0%, transparent 70%);
    bottom: -100px;
    left: -150px;
    animation-delay: -5s;
}

.hero-orb-mid-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(60, 222, 207, 0.1) 0%, transparent 70%);
    top: 30%;
    left: 10%;
    animation-delay: -10s;
}

.hero-orb-mid-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    animation-delay: -15s;
}

.hero-orb-front-1, .hero-orb-front-2, .hero-orb-front-3 {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--hero-teal) 0%, transparent 70%);
    opacity: 0.3;
}

.hero-orb-front-1 {
    top: 20%;
    right: 30%;
    animation-delay: -2s;
}
.hero-orb-front-2 {
    top: 60%;
    left: 20%;
    animation-delay: -7s;
}
.hero-orb-front-3 {
    bottom: 30%;
    right: 10%;
    animation-delay: -12s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -50px) scale(1.1); }
    50% { transform: translate(-20px, -30px) scale(0.95); }
    75% { transform: translate(40px, -20px) scale(1.05); }
}

/* Glow Effects */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, var(--hero-glow-1) 0%, transparent 60%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-glow-2 {
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, var(--hero-glow-2) 0%, transparent 60%);
    bottom: 20%;
    right: -100px;
    animation: glowPulse 8s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

/* Hero Container */
.hero-container {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Warning Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 100px;
    margin-bottom: 2rem;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 59, 48, 0); }
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #FF3B30;
    border-radius: 50%;
    animation: dotBlink 1s ease-in-out infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-badge-text {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FF3B30;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Title */
.hero-title {
    font-family: 'Mona Sans', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title .line-1 {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-glitch {
    display: inline-block;
    position: relative;
    color: var(--hero-teal);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.hero-glitch::before,
.hero-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.hero-glitch::before {
    color: #ff00ff;
    animation: glitch-1 0.3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.hero-glitch::after {
    color: #00ffff;
    animation: glitch-2 0.3s ease-in-out infinite reverse;
    animation-delay: 1.5s;
}

@keyframes glitch-1 {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(-2px, 2px); }
    40% { opacity: 0; transform: translate(2px, -2px); }
    60% { opacity: 0.8; transform: translate(-2px, -2px); }
    80% { opacity: 0; transform: translate(2px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(2px, -2px); }
    40% { opacity: 0; transform: translate(-2px, 2px); }
    60% { opacity: 0.8; transform: translate(2px, 2px); }
    80% { opacity: 0; transform: translate(-2px, -2px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Description */
.hero-description {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-description a {
    color: var(--hero-teal);
    text-decoration: none;
    border-bottom: 1px solid var(--hero-teal);
    transition: all 0.3s ease;
}

.hero-description a:hover {
    color: var(--hero-aqua);
    border-color: var(--hero-aqua);
}

.hero-strike {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
}

/* Comparison Cards */
.hero-comparison {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

@media (min-width: 768px) {
    .hero-comparison {
        grid-template-columns: 1fr 1fr;
    }
}

/* Card Base Styles */
.hero-card-legacy,
.hero-card-agentic {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-card-legacy:hover,
.hero-card-agentic:hover {
    transform: translateY(-10px);
    border-color: rgba(40, 204, 205, 0.3);
}

/* Legacy Card */
.hero-card-legacy {
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.05) 0%, rgba(255, 59, 48, 0.02) 100%);
}

.hero-card-legacy:hover {
    box-shadow: 0 20px 60px -20px rgba(255, 59, 48, 0.3);
    border-color: rgba(255, 59, 48, 0.5);
}

.hero-card-legacy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FF3B30, #FF6B6B);
}

/* Agentic Card */
.hero-card-agentic {
    background: linear-gradient(135deg, rgba(40, 204, 205, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: rgba(40, 204, 205, 0.2);
}

.hero-card-agentic:hover {
    box-shadow: 0 20px 60px -20px rgba(40, 204, 205, 0.4);
    border-color: rgba(40, 204, 205, 0.5);
}

.hero-card-agentic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hero-teal), var(--hero-aqua), var(--hero-purple));
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Card Labels */
.hero-card-legacy-label,
.hero-card-agentic-label {
    display: inline-block;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.hero-card-legacy-label {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.hero-card-agentic-label {
    background: rgba(40, 204, 205, 0.2);
    color: var(--hero-teal);
    border: 1px solid rgba(40, 204, 205, 0.3);
}

/* Card Titles */
.hero-card-legacy h3,
.hero-card-agentic h3 {
    font-family: 'Mona Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

/* Card Lists */
.hero-card-legacy ul,
.hero-card-agentic ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-card-legacy li,
.hero-card-agentic li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-card-legacy li:last-child,
.hero-card-agentic li:last-child {
    border-bottom: none;
}

/* Prices */
.hero-price-legacy {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    color: #FF3B30;
}

.hero-card-legacy li:last-child .hero-price-legacy {
    font-size: 1.25rem;
}

/* Agentic Check Mark */
.hero-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--hero-teal);
}

.hero-icon {
    width: 20px;
    height: 20px;
}

.hero-price-agentic {
    font-family: 'Space Grotesk', monospace;
    font-weight: 700;
    color: var(--hero-teal);
    font-size: 1.25rem;
}

/* Total Row */
.hero-total {
    padding-top: 1rem !important;
    margin-top: 0.5rem;
}

.hero-total span:first-child {
    font-weight: 700;
    color: #ffffff;
}

/* Savings Badge */
.hero-savings {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--hero-teal), var(--hero-aqua));
    color: var(--hero-dark);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 100px 100px 0 0;
    letter-spacing: 0.05em;
    animation: savingsPulse 2s ease-in-out infinite;
}

@keyframes savingsPulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* CTA Button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, var(--hero-teal), var(--hero-aqua));
    color: var(--hero-dark);
    font-family: 'Mona Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px -10px rgba(40, 204, 205, 0.5);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1s;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 60px -10px rgba(40, 204, 205, 0.6);
}

.hero-cta:hover .hero-arrow {
    transform: translateY(4px);
}

.hero-arrow {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    animation: arrowBounce 1.5s ease-in-out infinite;
}

@keyframes arrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Hero Spacer */
.hero-spacer {
    height: 4rem;
}

/* ============================================
   TICKER SECTION
   ============================================ */
.hero-ticker-wrap {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.hero-ticker-wrap::before,
.hero-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 10;
    pointer-events: none;
}

.hero-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--hero-dark), transparent);
}

.hero-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--hero-dark), transparent);
}

.hero-ticker {
    display: flex;
    gap: 3rem;
    animation: tickerScroll 30s linear infinite;
    width: max-content;
}

.hero-ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hero-teal);
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.hero-ticker-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--hero-teal);
    border-radius: 50%;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .section-hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero-card-legacy,
    .hero-card-agentic {
        padding: 1.5rem;
    }
    
    .hero-savings {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-cta {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-comparison {
        gap: 1.5rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .hero-badge-text {
        font-size: 0.7rem;
    }
}

/* ============================================
   SCROLL ANIMATIONS (Intersection Observer)
   ============================================ */
.hero-comparison,
.hero-cta {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-comparison.is-visible,
.hero-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for cards */
.hero-card-legacy {
    transition-delay: 0.1s;
}

.hero-card-agentic {
    transition-delay: 0.2s;
}

/* ============================================
   LIVE DATA COUNTER ANIMATION
   ============================================ */
.ticker-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   LIVE DATA COUNTER ANIMATION
   ============================================ */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.counter-animate {
    animation: countUp 0.6s ease forwards;
}
