/* ========================================
   CSS RESET & BASE
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #07070d;
    --bg-surface: #0d0d16;
    --accent-cyan: #00e5ff;
    --accent-gold: #ffb300;
    --text-primary: #f0f0f0;
    --text-muted: #8896a8;
    --overlay-dark: rgba(7, 7, 13, 0.78);
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   BACKGROUND VIDEO LAYER (z-index: 0)
   ======================================== */

.bg-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#bg-video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--overlay-dark) 0%, rgba(7, 7, 13, 0.88) 100%);
    pointer-events: none;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
}

/* ========================================
   TOP BAR (z-index: 10)
   ======================================== */

.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: rgba(7, 7, 13, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 10;
}

.top-bar-content {
    max-width: 1400px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .brand-logo {
        height: 32px;
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-cyan);
    background: transparent;
    border: 1px solid var(--accent-cyan);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-secondary:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 380px);
    height: 52px;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bg-deep);
    background: linear-gradient(135deg, #00d4e6 0%, #00e5ff 50%, #00d4e6 100%);
    background-size: 200% 100%;
    border: 2px solid rgba(255, 255, 255, 0);
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: breathingGlow 2.5s ease-in-out infinite, subtleFloat 3s ease-in-out infinite;
    box-shadow:
        0 4px 15px rgba(0, 229, 255, 0.3),
        0 8px 30px rgba(0, 229, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Pulsing Glow - Breathing effect */
@keyframes breathingGlow {
    0%, 100% {
        box-shadow:
            0 0 15px 2px rgba(0, 229, 255, 0.4),
            0 4px 15px rgba(0, 229, 255, 0.3),
            0 8px 30px rgba(0, 229, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow:
            0 0 30px 8px rgba(0, 229, 255, 0.6),
            0 8px 25px rgba(0, 229, 255, 0.4),
            0 12px 40px rgba(0, 229, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Subtle Float - Gentle up/down movement */
@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Shimmer Effect - Rotating shine */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

/* Shimmer overlay */
.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    animation: shimmer 3s infinite;
    transform: rotate(45deg);
}

/* Enhanced Hover - Intense glow explosion */
.btn-primary:hover {
    background: linear-gradient(135deg, #1ae0f2 0%, #33ecff 50%, #1ae0f2 100%);
    background-size: 200% 100%;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.06) translateY(-8px);
    box-shadow:
        0 0 40px 15px rgba(0, 229, 255, 0.5),
        0 0 80px 25px rgba(0, 229, 255, 0.3),
        0 0 120px 35px rgba(0, 229, 255, 0.15),
        0 15px 45px rgba(0, 229, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    animation: breathingGlow 1.5s ease-in-out infinite, subtleFloat 2s ease-in-out infinite;
}

/* Enhanced shimmer on hover */
.btn-primary:hover::before {
    animation: shimmer 1.5s infinite;
}

.btn-primary:active {
    transform: scale(1.02) translateY(-4px);
    box-shadow:
        0 0 25px 8px rgba(0, 229, 255, 0.4),
        0 8px 20px rgba(0, 229, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
    border-color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   HERO CONTENT (z-index: 5)
   ======================================== */

.hero-container {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 24px;
}

.hero-content {
    max-width: 640px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Micro Badge */
.micro-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    margin-bottom: 16px;
    font-family: "SF Mono", "Consolas", monospace;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-gold);
    background: rgba(13, 13, 22, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Headline */
.headline {
    font-size: clamp(1.4rem, 4.5vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 16px;
    max-width: 100%;
}

/* Subheadline */
.subheadline {
    font-size: clamp(0.85rem, 2.2vw, 1.05rem);
    line-height: 1.5;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 28px;
}

/* Image Frame */
.image-frame {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 28px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.frame-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(0, 229, 255, 0.1) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-frame:hover .frame-glow {
    opacity: 1;
}

/* Benefits */
.benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
    width: 100%;
}

@media (min-width: 640px) {
    .benefits {
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.benefit-icon {
    color: var(--accent-cyan);
    font-size: 10px;
}

/* Social Proof */
.social-proof {
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.4;
}

/* ========================================
   ACCESSIBILITY & UTILITIES
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}
