/* ==========================================================================
   Hero Section - Enhanced Design
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
}

.hero-content {
    padding: 12rem 6rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Before/After Comparison Widget
   ========================================================================== */

.hero-comparison {
    margin: 2.5rem 0 3rem;
    padding: 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.75s forwards;
}

.comparison-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--paper);
    box-shadow: var(--shadow-md);
}

.comparison-side {
    padding: 1.5rem 1.75rem;
    position: relative;
}

.comparison-side--ai {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ec 100%);
    border-right: 1px solid rgba(26, 25, 21, 0.08);
}

.comparison-side--human {
    background: linear-gradient(135deg, var(--paper) 0%, #fef9f3 100%);
}

.comparison-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Caveat', cursive;
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-label--ai::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--ai-accent);
    border-radius: 50%;
}

.comparison-label--human::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--human-accent);
    border-radius: 50%;
    animation: availabilityPulse 2s ease-in-out infinite;
}

.comparison-text {
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
}

.comparison-text--ai {
    color: var(--ink-muted);
}

.comparison-text--ai .awkward {
    background: linear-gradient(180deg, transparent 60%, rgba(139, 154, 173, 0.25) 60%);
    padding: 0 2px;
}

.comparison-text--human .refined {
    background: linear-gradient(180deg, transparent 60%, rgba(196, 120, 90, 0.25) 60%);
    padding: 0 2px;
}

.comparison-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: var(--paper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.comparison-divider svg {
    width: 18px;
    height: 18px;
    color: var(--terracotta);
}

/* ==========================================================================
   90/10 Indicator
   ========================================================================== */

.value-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.85s forwards;
}

.value-bar {
    flex: 1;
    height: 6px;
    background: var(--cream-dark);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.value-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px;
}

.value-bar-ai {
    width: 90%;
    background: var(--ai-accent);
    opacity: 0.5;
}

.value-bar-human {
    width: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        transparent 90%,
        var(--terracotta) 90%,
        var(--terracotta) 100%
    );
}

.value-labels {
    display: flex;
    gap: 1.5rem;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
}

.value-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.value-label--ai {
    color: var(--ink-muted);
}

.value-label--human {
    color: var(--terracotta);
    font-weight: 500;
}

.value-label span:first-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

/* ==========================================================================
   Enhanced CTAs
   ========================================================================== */

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.95s forwards;
}

.hero-tag {
    font-family: 'Caveat', cursive;
    font-size: 1.4rem;
    color: var(--terracotta);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero-title em {
    font-style: italic;
    color: var(--terracotta);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--ink-muted);
    max-width: 480px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    width: fit-content;
}

.hero-cta--primary {
    background: var(--ink);
    color: var(--cream);
    border: 1px solid var(--ink);
    box-shadow: var(--shadow-md);
}

.hero-cta--primary:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(196, 120, 90, 0.25);
}

.hero-cta--secondary {
    color: var(--ink);
    border: 1px solid var(--ink);
    background: transparent;
}

.hero-cta--secondary:hover {
    background: var(--ink);
    color: var(--cream);
}

.hero-cta svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease;
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

/* Hero Visual Side */
.hero-visual {
    position: relative;
    background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(196, 120, 90, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(184, 151, 110, 0.1) 0%, transparent 50%);
}

/* Floating Words */
.floating-words {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.float-word {
    position: absolute;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--ink);
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.float-word:nth-child(1) { font-size: 4rem; top: 15%; left: 10%; animation-delay: 0s; }
.float-word:nth-child(2) { font-size: 2.5rem; top: 35%; right: 15%; animation-delay: -5s; }
.float-word:nth-child(3) { font-size: 3rem; bottom: 25%; left: 20%; animation-delay: -10s; }
.float-word:nth-child(4) { font-size: 2rem; bottom: 40%; right: 25%; animation-delay: -15s; }
.float-word:nth-child(5) { font-size: 3.5rem; top: 60%; left: 5%; animation-delay: -7s; }

/* Portrait */
.portrait-container {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.portrait-frame {
    position: relative;
    width: 350px;
    height: 350px;
}

.portrait-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--terracotta);
    opacity: 0.4;
    z-index: 1;
}

.portrait-frame::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--gold);
    opacity: 0.3;
    z-index: 1;
}

.portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    filter: grayscale(15%) contrast(1.05);
    transition: all 0.5s ease;
}

.portrait-frame:hover .portrait-image {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.02);
}

.portrait-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Caveat', cursive;
    font-size: 1.2rem;
    color: var(--ink-muted);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual {
        order: -1;
        padding: 8rem 2rem 2rem;
        min-height: auto;
    }

    .portrait-frame {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .portrait-caption {
        position: relative;
        bottom: auto;
        margin-top: 1.5rem;
    }

    .hero-content {
        padding: 3rem 4rem 6rem;
        text-align: center;
    }

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

    .hero-ctas {
        justify-content: center;
    }

    .comparison-container {
        max-width: 600px;
        margin: 0 auto;
    }

    .value-indicator {
        flex-direction: column;
        align-items: stretch;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .value-labels {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem;
    }

    .portrait-frame {
        width: 220px;
        height: 220px;
    }

    .comparison-container {
        grid-template-columns: 1fr;
    }

    .comparison-side--ai {
        border-right: none;
        border-bottom: 1px solid rgba(26, 25, 21, 0.08);
    }

    .comparison-divider {
        top: auto;
        bottom: calc(50% - 18px);
        left: 50%;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .value-labels {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}
