/* ═══════════════════════════════════════════════════════
   RIBBON HERO — Canvas Ribbon Trail Hero Section
   tom.cool live site
   ═══════════════════════════════════════════════════════ */

.ribbon-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: #050a14;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}

/* Subtle grid background */
.ribbon-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 85%);
}

/* Ambient glow */
.ribbon-hero::after {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(118, 75, 162, 0.08) 0%, transparent 50%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* Canvas layer */
.ribbon-hero #canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Content layer */
.ribbon-hero-content {
    position: relative;
    z-index: 10;
    max-width: 1140px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    pointer-events: none;
}

.ribbon-hero-content > * {
    pointer-events: auto;
}

/* Badge */
.ribbon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(0, 255, 128, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 255, 128, 0.12);
    border-radius: 9999px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #34d399;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
    opacity: 0;
    animation: ribbonFadeUp 0.8s ease-out 0.2s forwards;
}

.ribbon-badge-dot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ribbon-badge-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: ribbonPing 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    position: absolute;
    opacity: 0.6;
}

.ribbon-badge-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

/* Title */
.ribbon-hero-title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    max-width: 800px;
    opacity: 0;
    animation: ribbonFadeUp 1s ease-out 0.35s forwards;
}

.ribbon-hero-title .accent-gradient {
    color: var(--h-primary-bright, #a78bfa);
    white-space: nowrap;
}

/* Subtitle */
.ribbon-hero-subtitle {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
    opacity: 0;
    animation: ribbonFadeUp 1s ease-out 0.5s forwards;
}

/* Description */
.ribbon-hero-desc {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 36px;
    opacity: 0;
    animation: ribbonFadeUp 1s ease-out 0.65s forwards;
}

/* CTA Buttons */
.ribbon-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: ribbonFadeUp 1s ease-out 0.8s forwards;
}

.ribbon-hero-cta .btn-ribbon-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--h-primary, #8b5cf6), var(--h-primary-deep, #7c3aed));
    color: #fff;
    border: none;
    border-radius: 9999px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.3);
}

.ribbon-hero-cta .btn-ribbon-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.45);
}

.ribbon-hero-cta .btn-ribbon-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    font-family: 'Outfit', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ribbon-hero-cta .btn-ribbon-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

/* Scroll indicator */
.ribbon-scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: ribbonFadeUp 0.8s ease-out 1.2s forwards;
}

.ribbon-scroll-line {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.25), transparent);
    animation: ribbonScrollPulse 2.5s ease-in-out infinite;
}

.ribbon-scroll-cue span {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* Animations */
@keyframes ribbonFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ribbonPing {
    0%   { transform: scale(1); opacity: 0.6; }
    75%, 100% { transform: scale(2.2); opacity: 0; }
}

@keyframes ribbonScrollPulse {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 0.8; }
}

/* Responsive */
@media (max-width: 768px) {
    .ribbon-hero-content {
        padding: 120px 20px 60px;
    }
    .ribbon-hero-title {
        font-size: 2rem;
    }
    .ribbon-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .ribbon-hero-cta a {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ── Hero Logo Emblem (Origami Ribbon) ── */
.hero-logo-container {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    filter: drop-shadow(0 4px 20px rgba(124, 58, 237, 0.2)) drop-shadow(0 0 10px rgba(6, 182, 212, 0.1));
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    opacity: 0;
    animation: ribbonFadeUp 1s ease-out 0.15s forwards;
}

.hero-logo-container:hover {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 12px 35px rgba(124, 58, 237, 0.4)) drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
}

.hero-logo-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Subtle inline SVG hover effects */
.hero-logo-svg polygon {
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.hero-logo-container:hover .hero-logo-svg polygon {
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
}

