/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    padding: 20px 48px 0;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

/* ------------------------------------------
   Hero Content (Left Column)
   ------------------------------------------ */
.hero-content {
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: wargFadeInUp 0.8s ease-out;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--warg-blue-vibrant);
    margin-bottom: 24px;
    font-weight: 400;
}

.tagline-icon {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.08;
    color: var(--warg-text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--warg-text-body);
    max-width: 400px;
    line-height: 1.7;
    margin-bottom: 48px;
    font-weight: 300;
}

/* ------------------------------------------
   Product Icons Row
   ------------------------------------------ */
.hero-products {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-icons {
    display: flex;
    gap: 8px;
}

.product-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 52px;
    height: 52px;
    border-radius: 100px;
    background: rgba(27, 117, 188, 0.08);
    color: var(--warg-text-primary);
    padding: 0 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.product-icon:hover {
    background: rgba(27, 117, 188, 0.1);
    transform: translateY(-2px);
}

.product-icon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Product name label (hidden by default) */
.product-icon .product-name {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0;
    transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.1s,
                margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state: expand into pill */
.product-icon.active {
    background: var(--warg-blue-vibrant);
    color: #FFFFFF;
}

.product-icon.active .product-name {
    max-width: 120px;
    opacity: 1;
    margin-left: 10px;
}

/* ------------------------------------------
   Hero Image (Right Column)
   ------------------------------------------ */
.hero-image-wrapper {
    position: relative;
    align-self: end;
    animation: wargFadeInRight 0.8s ease-out 0.2s both;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    transition: opacity 0.3s ease;
}

.hero-image--fading {
    opacity: 0;
}

/* Active product icon */
.product-icon.active {
    background: var(--warg-blue-vibrant);
    color: #FFFFFF;
}

/* ------------------------------------------
   Floating Card
   ------------------------------------------ */
.hero-floating-card {
    position: absolute;
    bottom: 80px;
    right: -20px;
    background: var(--warg-bg-white);
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: var(--shadow-float);
    min-width: 240px;
    animation: wargFadeInUp 0.6s ease-out 0.6s both, wargFloatCard 3s ease-in-out 1.2s infinite;
    z-index: 10;
}

.floating-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.floating-card-label {
    font-size: 0.75rem;
    color: var(--warg-text-body);
    font-weight: 400;
}

.floating-card-dots {
    font-size: 1.2rem;
    color: var(--warg-text-body);
    letter-spacing: 2px;
    line-height: 0.5;
}

.floating-card-content {
    display: flex;
    align-items: center;
}

.brand-text {
    font-family: var(--font-sans);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}

.brand-text-dark {
    color: var(--warg-text-primary);
}

.brand-text-cursor {
    color: var(--warg-blue-vibrant);
    animation: wargBlink 1s step-end infinite;
    margin: 0 1px;
    font-weight: 300;
}

.brand-text-light {
    color: #BABABA;
}

/* ------------------------------------------
   Keyframe Animations
   ------------------------------------------ */
@keyframes wargFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes wargFadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes wargBlink {
    0%, 50% { opacity: 1; }
    50.1%, 100% { opacity: 0; }
}

/* ------------------------------------------
   Responsive Hero
   ------------------------------------------ */
@media (max-width: 1100px) {
    .hero-title {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }

    .hero-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .hero-section {
        padding: 20px 24px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
    }

    .hero-content {
        padding-bottom: 0;
        text-align: center;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-products {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-floating-card {
        right: -10px;
        bottom: 40px;
        min-width: 200px;
        padding: 16px 20px;
    }

    .brand-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 16px 20px 0;
    }

    .hero-inner {
        gap: 24px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }

    .hero-content {
        padding-bottom: 0;
    }

    .hero-image-wrapper {
        max-width: 340px;
    }

    .hero-image {
        max-height: 360px;
    }

    .hero-floating-card {
        right: 0;
        bottom: 30px;
        min-width: 190px;
        padding: 14px 18px;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .hero-tagline {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 12px 16px 0;
    }

    .hero-inner {
        gap: 20px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-products {
        gap: 8px;
    }

    .product-icon {
        min-width: 44px;
        height: 44px;
    }

    .product-icon svg {
        width: 20px;
        height: 20px;
    }

    .product-selector {
        padding: 10px 16px;
        gap: 8px;
    }

    .hero-image-wrapper {
        max-width: 280px;
    }

    .hero-image {
        max-height: 280px;
    }

    .hero-floating-card {
        min-width: 160px;
        padding: 12px 14px;
        bottom: 20px;
    }

    .floating-card-label {
        font-size: 0.65rem;
    }

    .brand-text {
        font-size: 1.1rem;
    }
}
