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

:root {
    --color-bg: #fff5fb;
    --color-bg-alt: #fde4f2;
    --color-primary: #e5189c;
    --color-primary-hover: #ff3ea5;
    --color-primary-glow: rgba(229, 24, 156, 0.4);
    --color-accent: #7b2cbf;
    --color-text: #1a0b1e;
    --color-text-muted: rgba(26, 11, 30, 0.72);
    --color-text-subtle: rgba(26, 11, 30, 0.5);
    --color-border: rgba(229, 24, 156, 0.15);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-cta: 0 10px 40px -10px rgba(229, 24, 156, 0.55),
                  0 4px 16px -4px rgba(229, 24, 156, 0.35);
    --shadow-cta-hover: 0 16px 50px -10px rgba(229, 24, 156, 0.7),
                        0 8px 24px -4px rgba(229, 24, 156, 0.5);

    --transition-base: 400ms cubic-bezier(0.22, 1, 0.36, 1);
    --transition-slow: 800ms cubic-bezier(0.22, 1, 0.36, 1);

    --container-max: 1280px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

img,
svg {
    display: block;
    max-width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

/* Background Layers */
.hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: url('../images/bgHeroDesk.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
}

.hero__gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(180deg, transparent 0%, rgba(224, 176, 255, 0.45) 100%);
    pointer-events: none;
}

/* Container */
.hero__container {
    position: relative;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: clamp(2rem, 6vh, 4rem);
}

@media (min-width: 1024px) {
    .hero__container {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 4rem;
    }
}

/* Content */
.hero__content {
    position: relative;
    max-width: 640px;
    z-index: 2;
}

/* Brand Logo */
.hero__brand {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: clamp(2rem, 6vh, 3.5rem);
}

.hero__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    height: 44px;
}

.hero__logo-icon {
    filter: drop-shadow(0 4px 16px rgba(255, 31, 75, 0.4));
    flex-shrink: 0;
}

.hero__logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    height: 100%;
}

.hero__logo-workshop {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-text-subtle);
    margin-bottom: 0.3rem;
}

.hero__logo-name {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 0.95;
    color: var(--color-text);
}

.hero__edition {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 1rem;
    border: 1.5px solid rgba(229, 24, 156, 0.22);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    line-height: 1;
    white-space: nowrap;
}

/* Date Badge */
.hero__date {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    height: 40px;
    padding: 0 1.125rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(229, 24, 156, 0.18);
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-text);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    line-height: 1;
    white-space: nowrap;
}

.hero__date-icon {
    flex-shrink: 0;
}

/* Title */
.hero__title {
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.hero__title-highlight {
    background: linear-gradient(135deg, #e5189c 0%, #7b2cbf 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.hero__title-highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.05em;
    width: 100%;
    height: 0.08em;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    opacity: 0.6;
    border-radius: 2px;
}

/* Description */
.hero__description {
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: clamp(2rem, 4vw, 2.5rem);
    text-wrap: pretty;
}

/* CTA */
.hero__cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.hero__cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #e5189c 0%, #7b2cbf 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-cta);
    overflow: hidden;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                background var(--transition-base);
    max-width: 480px;
    width: 100%;
    will-change: transform;
}

.hero__cta:hover,
.hero__cta:focus-visible {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-cta-hover);
    background: linear-gradient(135deg, #ff3ea5 0%, #9d4edd 100%);
    outline: none;
}

.hero__cta:active {
    transform: translateY(0) scale(0.99);
}

.hero__cta-text {
    position: relative;
    z-index: 2;
}

.hero__cta-arrow {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    transition: transform var(--transition-base), background var(--transition-base);
}

.hero__cta:hover .hero__cta-arrow {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.28);
}

.hero__cta-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.hero__cta:hover .hero__cta-shine {
    animation: shine 800ms ease-out;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Pulse ring around CTA */
.hero__cta::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--color-primary), transparent);
    opacity: 0;
    z-index: -1;
    transition: opacity var(--transition-base);
    filter: blur(12px);
}

.hero__cta:hover::before {
    opacity: 0.6;
}

/* Progress Bar */
.hero__progress-wrapper {
    max-width: 480px;
    width: 100%;
}

.hero__progress-bar {
    height: 6px;
    background: rgba(229, 24, 156, 0.12);
    border-radius: var(--radius-pill);
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.hero__progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e5189c 0%, #7b2cbf 100%);
    border-radius: var(--radius-pill);
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    box-shadow: 0 0 12px var(--color-primary-glow);
}

.hero__progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6));
    animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero__progress-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.hero__progress-percent {
    color: var(--color-text);
    font-weight: 700;
    display: inline-block;
    transform-origin: center;
    will-change: transform, color;
}

.hero__progress-percent.is-bumping {
    animation: percentBump 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes percentBump {
    0% {
        transform: scale(1);
        color: var(--color-text);
    }
    35% {
        transform: scale(1.45);
        color: var(--color-primary);
        text-shadow: 0 0 16px rgba(229, 24, 156, 0.55);
    }
    70% {
        transform: scale(0.95);
        color: var(--color-primary);
    }
    100% {
        transform: scale(1);
        color: var(--color-text);
        text-shadow: none;
    }
}

.hero__progress-text strong {
    color: var(--color-text);
    font-weight: 700;
}

/* Social Proof */
.hero__social-proof {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero__avatars {
    display: flex;
}

.hero__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg, linear-gradient(135deg, #e5189c, #7b2cbf));
    border: 2px solid #fff5fb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-left: -10px;
    box-shadow: 0 4px 12px rgba(229, 24, 156, 0.18);
}

.hero__avatar:first-child {
    margin-left: 0;
}

.hero__social-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.hero__stars {
    display: flex;
    gap: 2px;
}

.hero__social-text > span {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Visual Side (Decorative orbs) */
.hero__visual {
    position: relative;
    display: none;
    aspect-ratio: 1;
    width: 100%;
    max-width: 520px;
    justify-self: center;
}

@media (min-width: 1024px) {
    .hero__visual {
        display: block;
    }
}

.hero__visual-glow {
    position: absolute;
    inset: 10%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.4) 0%, transparent 70%);
    filter: blur(40px);
    animation: pulse 6s ease-in-out infinite;
}

.hero__visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.85;
}

.hero__visual-orb--1 {
    top: 15%;
    right: 12%;
    width: 28%;
    height: 28%;
    background: radial-gradient(circle at 30% 30%, #FF6B9D 0%, #FF1F4B 60%, transparent 100%);
    animation: float1 8s ease-in-out infinite;
    box-shadow: 0 20px 60px -10px rgba(255, 31, 75, 0.5);
}

.hero__visual-orb--2 {
    bottom: 18%;
    left: 10%;
    width: 36%;
    height: 36%;
    background: radial-gradient(circle at 30% 30%, #4FACFE 0%, #1E5BFF 60%, transparent 100%);
    animation: float2 10s ease-in-out infinite;
    box-shadow: 0 20px 60px -10px rgba(79, 172, 254, 0.5);
}

.hero__visual-orb--3 {
    top: 45%;
    right: 35%;
    width: 18%;
    height: 18%;
    background: radial-gradient(circle at 30% 30%, #FEE140 0%, #FA709A 60%, transparent 100%);
    animation: float3 7s ease-in-out infinite;
    box-shadow: 0 12px 40px -10px rgba(254, 225, 64, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, 20px) rotate(120deg); }
    66% { transform: translate(20px, -10px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, -25px) rotate(180deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, 15px); }
    66% { transform: translate(-10px, 10px); }
}

/* Brands */
.hero__brands {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--container-max);
    margin: clamp(3rem, 6vw, 4.5rem) auto 0;
    padding: 0 var(--gutter);
    text-align: center;
}

.hero__brands-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    margin-bottom: 1.5rem;
}

.hero__brands-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.hero__brand-item {
    font-size: clamp(0.875rem, 1.4vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(123, 44, 191, 0.55);
    transition: color var(--transition-base), transform var(--transition-base);
    cursor: default;
}

.hero__brand-item:hover {
    color: rgba(229, 24, 156, 0.95);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    animation: bounce 2s ease-in-out infinite;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .hero__scroll-indicator {
        display: flex;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ==========================================================================
   Blur In / Out Animations
   ========================================================================== */
[data-blur-in] {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(24px);
    transition:
        opacity var(--transition-slow),
        filter var(--transition-slow),
        transform var(--transition-slow);
    will-change: opacity, filter, transform;
}

[data-blur-in].is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

[data-blur-in].is-leaving {
    opacity: 0;
    filter: blur(16px);
    transform: translateY(-12px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .hero {
        padding: 1.25rem 0 3rem;
    }

    .hero__brand {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero__cta {
        padding: 1.125rem 1.5rem;
        font-size: 0.9375rem;
    }

    .hero__cta-text {
        font-size: 0.875rem;
    }

    .hero__social-proof {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .hero__brands-list {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__date {
        font-size: 0.75rem;
        padding: 0.5rem 0.875rem;
    }

    .hero__edition {
        font-size: 0.6875rem;
    }
}

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

    [data-blur-in] {
        opacity: 1;
        filter: none;
        transform: none;
    }
}

/* Focus styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}
