/* ═══════════════════════════════════════════════════════
   DEMO SECTION 1 — Hero (Video First)
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   DEMO SECTION 1 — Hero (Video First)
   ═══════════════════════════════════════════════════════ */

.demo-hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 100px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 10%, rgba(255, 61, 138, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 90%, rgba(255, 61, 138, 0.03) 0%, transparent 60%),
        linear-gradient(155deg, #000000 0%, #050508 30%, #07070d 70%, #000000 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ─── Background & Texture ───────────────────────── */
.demo-hero__texture {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0.02;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.demo-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.demo-hero__orb {
    display: none;
}

.demo-hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='rgba(255,255,255,0.035)' stroke-width='1'/%3E%3Cline x1='40' y1='0' x2='40' y2='80' stroke='rgba(255,255,255,0.035)' stroke-width='1'/%3E%3Cpath d='M36 40H44M40 36V44' stroke='rgba(255,255,255,0.18)' stroke-width='1.2'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-position: center center;
    opacity: 0.8;
}

/* ─── Inner Container ────────────────────────────── */
.demo-hero__inner {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ─── Header Section ─────────────────────────────── */
.demo-hero__header {
    max-width: 800px;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-hero__domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 61, 138, 0.15);
    border: 1px solid rgba(255, 61, 138, 0.25);
    padding: 8px 18px;
    border-radius: 16px !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.demo-hero__heading {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 24px;
    font-family: var(--font-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Pink→Gold gradient accent — uses --gradient-primary, matches reference design */
.demo-hero__accent {
    background: var(--gradient-primary, var(--grad-cta)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 400 !important;
    display: inline-block;
    text-shadow: none !important;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.demo-hero__subtext {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 540px;
    font-weight: 400;
}

/* ─── Video Area ─────────────────────────────────── */
.demo-hero__video-area {
    position: relative;
    width: 100%;
    max-width: 1100px;
    /* Slightly narrower for better balance */
    margin: 40px auto 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.demo-hero__video-frame {
    position: relative;
    width: 100%;
    border-radius: 16px !important;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 0 50px rgba(255, 61, 138, 0.15) !important;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 61, 138, 0.25) !important;
}

.demo-hero__video-frame::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    --corner: 20px;
    --line: 2px;
    border-radius: 16px !important;
    background:
        linear-gradient(var(--pink) 0 0) top left / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) top left / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) top right / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) top right / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom left / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom left / var(--line) var(--corner) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom right / var(--corner) var(--line) no-repeat,
        linear-gradient(var(--pink) 0 0) bottom right / var(--line) var(--corner) no-repeat !important;
    opacity: 0.8 !important;
    z-index: 10;
}

.demo-hero__video-texture {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3%3Ffilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.demo-hero__video-poster {
    width: 100%;
    height: 100%;
}

.demo-hero__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s ease;
}

.demo-hero__play-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: var(--ink-dim);
}

.demo-hero__video-duration {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    color: var(--ink);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

/* ─── Footer Section ─────────────────────────────── */
.demo-hero__footer {
    display: none;
}

.demo-hero__actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.demo-hero__cta {
    padding: 18px 40px;
    font-size: 16px;
    background: var(--pink) !important;
    color: #050510 !important;
    border: 1px solid var(--pink) !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 0 15px rgba(255, 61, 138, 0.1) !important;
    cursor: pointer;
}

.demo-hero__cta:hover {
    background: transparent !important;
    color: var(--pink) !important;
    box-shadow: 0 0 25px rgba(255, 61, 138, 0.35) !important;
    transform: translateY(-2px) !important;
}

.demo-hero__cta-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 18px 32px;
    border-radius: 16px !important;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.demo-hero__cta-secondary:hover {
    background: rgba(255, 61, 138, 0.06);
    border-color: var(--pink);
    color: var(--pink);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 61, 138, 0.1);
}

/* ─── Floating Elements ──────────────────────────── */
.demo-hero__float {
    position: absolute;
    padding: 10px 24px;
    border-radius: 16px !important;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 61, 138, 0.25);
    background: rgba(255, 61, 138, 0.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    z-index: 15;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-hero__float--1 {
    top: 5%;
    right: 2%;
    color: #34d399;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-hero__float--2 {
    bottom: 10%;
    left: 2%;
    color: var(--pink);
}

@media (max-width: 768px) {
    .demo-hero {
        padding: 120px 0 60px;
    }

    .demo-hero__heading {
        font-size: 48px;
    }

    .demo-hero__actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
    }

    .demo-hero__cta {
        width: 100%;
        justify-content: center;
    }

    .demo-hero__float {
        display: none;
    }
}