/* ===== CSS Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Green Theme Palette */
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;

    --primary: #00e676;
    --primary-light: #69f0ae;
    --primary-dark: #00c853;
    --primary-glow: rgba(0, 230, 118, 0.3);
    --primary-glow-strong: rgba(0, 230, 118, 0.5);

    --accent: #00ff88;
    --accent-dim: rgba(0, 255, 136, 0.15);

    --bg-dark: #0a0f0d;
    --bg-darker: #060a08;
    --bg-card: rgba(10, 25, 18, 0.8);
    --bg-card-hover: rgba(15, 35, 25, 0.9);

    --surface-1: rgba(0, 230, 118, 0.05);
    --surface-2: rgba(0, 230, 118, 0.08);
    --surface-3: rgba(0, 230, 118, 0.12);

    --text-primary: #f0fdf4;
    --text-secondary: rgba(240, 253, 244, 0.7);
    --text-muted: rgba(240, 253, 244, 0.45);

    --border-color: rgba(0, 230, 118, 0.15);
    --border-color-strong: rgba(0, 230, 118, 0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-green: 0 0 40px rgba(0, 230, 118, 0.15);
    --shadow-green-strong: 0 0 60px rgba(0, 230, 118, 0.25);
    --shadow-green-glow: 0 0 80px rgba(0, 230, 118, 0.3), 0 0 120px rgba(0, 230, 118, 0.15);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Background Effects ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 230, 118, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 70% 100%, rgba(0, 200, 83, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(0, 255, 136, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Grid pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 230, 118, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-10vh) scale(1);
    }
}

/* Glow Orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 230, 118, 0.06);
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    animation: orb-float 8s ease-in-out infinite;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(0, 200, 83, 0.04);
    bottom: 10%;
    right: -50px;
    animation: orb-float 10s ease-in-out infinite reverse;
}

.glow-orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(0, 255, 136, 0.05);
    bottom: 20%;
    left: -80px;
    animation: orb-float 12s ease-in-out infinite;
}

@keyframes orb-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-40px); }
}

/* ===== Container ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===== Badge ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--surface-2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-light);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--primary-glow-strong); }
    50% { opacity: 0.7; box-shadow: 0 0 0 8px transparent; }
}

/* ===== Title ===== */
.title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    opacity: 0.6;
}

/* ===== Subtitle ===== */
.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.subtitle-highlight {
    color: var(--primary-light);
    font-weight: 600;
    background: var(--accent-dim);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* ===== Video Section ===== */
.video-section {
    width: 100%;
    max-width: 720px;
    margin-bottom: 24px;
}

.video-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: visible;
}

.video-glow {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(135deg, var(--primary), rgba(0, 255, 136, 0.5), var(--primary-dark));
    border-radius: calc(var(--radius-lg) + 4px);
    z-index: -1;
    opacity: 0.6;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.video-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Video Overlay (Initial Play) */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.3s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button-big {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    box-shadow: var(--shadow-green-glow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button-big svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
}

.play-button-big:hover {
    transform: scale(1.1);
    box-shadow: 0 0 100px rgba(0, 230, 118, 0.5);
}

.overlay-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* Pause Overlay */
.pause-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.2s ease;
}

.pause-overlay.show {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.pause-icon-big {
    width: 60px;
    height: 60px;
    color: white;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 30px 16px 12px;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-frame:hover .video-controls,
.video-controls.visible {
    opacity: 1;
}

.progress-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    cursor: default;
    position: relative;
    margin-bottom: 10px;
    overflow: visible;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    width: 0%;
    position: relative;
    transition: width 0.1s linear;
}

.progress-glow {
    position: absolute;
    right: 0;
    top: -3px;
    width: 20px;
    height: 11px;
    background: var(--primary);
    filter: blur(6px);
    border-radius: 50%;
    opacity: 0.8;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--primary-glow);
    transition: left 0.1s linear;
    pointer-events: none;
}

.controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}

.control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.time-display {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.8);
    font-variant-numeric: tabular-nums;
    flex: 1;
}

.volume-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Video Status */
.video-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    margin-top: 16px;
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.video-status.completed {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--primary);
    color: var(--primary-light);
}

.status-icon {
    display: flex;
    color: var(--primary);
}

/* ===== Features ===== */
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    margin-bottom: 36px;
    width: 100%;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 36px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-button.disabled {
    background: var(--surface-2);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: not-allowed;
    pointer-events: none;
}

.cta-button.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--bg-dark);
    box-shadow: var(--shadow-green-strong);
    pointer-events: auto;
    animation: cta-entrance 0.6s ease;
}

.cta-button.active::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 3s ease-in-out infinite;
}

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

@keyframes cta-entrance {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cta-button.active:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green-glow);
}

.cta-lock, .cta-arrow {
    display: flex;
    align-items: center;
}

.cta-helper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.cta-helper svg {
    color: var(--primary);
    opacity: 0.6;
}

/* ===== Instagram Info Card ===== */
.ig-info {
    width: 100%;
    max-width: 500px;
    margin-top: 24px;
    animation: slide-up 0.5s ease;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ig-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--surface-2);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-green);
}

.ig-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    color: var(--bg-dark);
    flex-shrink: 0;
}

.ig-text {
    text-align: left;
}

.ig-instruction {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.ig-instruction strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.ig-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

/* ===== Footer ===== */
.footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== Animations ===== */
.animate-fade-in {
    animation: fade-in 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    animation: fade-in-up 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .container {
        padding: 24px 16px 40px;
    }

    .title {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .play-button-big {
        width: 64px;
        height: 64px;
    }

    .play-button-big svg {
        width: 26px;
        height: 26px;
    }

    .features {
        gap: 10px 16px;
    }

    .feature {
        font-size: 0.8rem;
    }

    .cta-button {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .ig-card {
        flex-direction: column;
        text-align: center;
    }

    .ig-text {
        text-align: center;
    }

    .video-controls {
        opacity: 1 !important;
    }
}

@media (max-width: 380px) {
    .title {
        font-size: 1.6rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 6px 14px;
    }
}
