/* =============================================
   PROXIMA LENS 2.0.0 - Hero Section
   Main Landing Area with Live Demo
   ============================================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 229, 255, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(212, 100, 197, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 0% 80%, rgba(0, 255, 136, 0.06), transparent);
    animation: heroBgPulse 10s ease-in-out infinite;
}

@keyframes heroBgPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Grid Pattern */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Hero Content Layout */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left Content */
.hero-content {
    max-width: 560px;
}

/* Version Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: liveDot 1.5s ease-in-out infinite;
}

@keyframes liveDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Hero Title */
.hero-title {
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-title .line1 {
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .line2 {
    display: block;
    color: var(--text-primary);
}

/* Hero Description */
.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-divider {
    color: var(--text-dim);
    font-size: 0.9rem;
    padding: 0 4px;
}

/* =============================================
   Live Demo Window
   ============================================= */
.hero-demo {
    position: relative;
}

/* Stats Pills */
.demo-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
}

.stat-pill .icon {
    font-size: 1rem;
}

.stat-pill .value {
    font-weight: 700;
    color: var(--primary);
}

.stat-pill .label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Demo Window */
.demo-window {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 0 80px rgba(0, 229, 255, 0.1),
        var(--shadow-lg);
}

/* Demo Header (Title Bar) */
.demo-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.demo-dots {
    display: flex;
    gap: 8px;
}

.demo-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.demo-dots span:nth-child(1) {
    background: #ff5f57;
}

.demo-dots span:nth-child(2) {
    background: #ffbd2e;
}

.demo-dots span:nth-child(3) {
    background: #28c840;
}

.demo-title {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.demo-title img {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.demo-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
}

.demo-status .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.5);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
    }
}

/* Demo Screen */
.demo-screen {
    padding: 24px;
}

/* Translation Result */
.demo-translation {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(0, 229, 255, 0.03));
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    margin-bottom: 20px;
}

.demo-translation-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.demo-translation-label .ai-badge {
    padding: 2px 8px;
    background: var(--primary);
    color: var(--bg-primary);
    border-radius: 4px;
    font-size: 0.65rem;
}

.demo-translation-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.6;
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--primary);
    margin-left: 2px;
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

/* Scan Area */
.demo-scan-area {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.demo-original {
    padding: 40px 24px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.demo-original-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Scan Overlay */
.scan-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 255, 136, 0.4) 20%,
            var(--success) 50%,
            rgba(0, 255, 136, 0.4) 80%,
            transparent 100%);
    box-shadow: 0 0 20px var(--success-glow);
    animation: scanMove 2.5s ease-in-out infinite;
}

@keyframes scanMove {
    0% {
        top: 0;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 3px);
        opacity: 0;
    }
}

/* Corner Brackets */
.scan-corners {
    position: absolute;
    inset: 8px;
}

.scan-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--success);
}

.scan-corner.tl {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.scan-corner.tr {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.scan-corner.bl {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.scan-corner.br {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

.scan-label {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: var(--radius-xl);
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 600;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .demo-stats {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-divider {
        display: none;
    }

    .demo-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-pill {
        justify-content: center;
    }
}