/* ── HERO ── */
#hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 8rem 4rem 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pearl) 60%, rgba(26, 122, 110, .06) 100%)
}

.hero-bg-text {
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Cormorant Garamond', serif;
    font-size: 22vw;
    font-weight: 300;
    color: rgba(26, 122, 110, .04);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -.02em
}

.hero-left {
    position: relative;
    z-index: 2
}

.hero-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(201, 168, 76, .1);
    padding: .4rem 1rem;
    border-radius: 2px;
    margin-bottom: 1.8rem;
    border: 1px solid rgba(201, 168, 76, .25)
}

.hero-h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 5.5vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--charcoal);
    margin-bottom: 1.5rem
}

.hero-h1 em {
    color: var(--teal);
    font-style: italic
}

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    color: var(--soft);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 2.5rem
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem
}

/* ── 3D TOOTH SCENE ── */
.hero-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px
}

.tooth-scene {
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    animation: float-scene 6s ease-in-out infinite
}

@keyframes float-scene {

    0%,
    100% {
        transform: translateY(0) rotateY(0deg)
    }

    50% {
        transform: translateY(-20px) rotateY(8deg)
    }
}

.tooth-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

.tooth-wrap {
    position: relative;
    width: 280px;
    height: 320px;
    margin: 0 auto;
    filter: drop-shadow(0 40px 60px rgba(26, 122, 110, .25));
}

.tooth-shadow-1 {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 24px;
    background: radial-gradient(ellipse, rgba(26, 122, 110, .3) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadow-pulse 6s ease-in-out infinite
}

@keyframes shadow-pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: .6
    }

    50% {
        transform: translateX(-50%) scale(.75);
        opacity: .3
    }
}

.badge-float {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: .6rem 1rem;
    box-shadow: 0 8px 32px rgba(26, 122, 110, .18), 0 2px 8px rgba(0, 0, 0, .08);
    font-size: .75rem;
    font-weight: 500;
    color: var(--charcoal);
    animation: badge-float 5s ease-in-out infinite;
    white-space: nowrap;
    border: 1px solid rgba(26, 122, 110, .1);
    transform-style: preserve-3d
}

.badge-1 {
    top: 20px;
    right: -20px;
    animation-delay: 0s
}

.badge-2 {
    bottom: 80px;
    left: -30px;
    animation-delay: 1.5s
}

.badge-3 {
    top: 140px;
    right: -40px;
    animation-delay: 3s
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0) translateZ(30px)
    }

    50% {
        transform: translateY(-10px) translateZ(30px)
    }
}

.badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    margin-right: .4rem
}

/* ── STATS BAR ── */
#stats {
    background: var(--teal-dark);
    padding: 3rem 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    overflow: hidden
}

#stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0, rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 80px);
    pointer-events: none
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1
}

.stat-item+.stat-item {
    border-left: 1px solid rgba(255, 255, 255, .1)
}

.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--gold);
    display: block;
    line-height: 1
}

.stat-label {
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
    font-weight: 300;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: .4rem
}


/* ── 3D TOOTH CONTAINER ── */
.tooth-scene-3d {
    width: 100%;
    position: relative;
    transform-style: preserve-3d;
}

#tooth-3d-container {
    border-radius: 8px;
    background: transparent;
}

/* ── MEDIA QUERIES ── */
@media (max-width: 992px) {
    #hero { padding: 8rem 3rem 4rem; }
    #stats { padding: 3rem; }
}

@media (max-width: 768px) {
    #hero {
        grid-template-columns: 1fr;
        padding: 7rem 1.5rem 3rem;
        text-align: center;
    }
    .hero-sub {
        margin: 0 auto 2rem;
    }
    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-actions a {
        width: 100%;
        max-width: 300px;
    }
    .hero-bg-text {
        font-size: 40vw;
        top: 15%;
    }
    .hero-right {
        margin-top: 4rem;
        perspective: 800px;
    }
    #tooth-3d-container {
        height: 350px !important;
    }
    .badge-float {
        transform: scale(0.85);
    }
    .badge-1 { top: 10px; right: 0; }
    .badge-2 { bottom: 40px; left: 0; }
    .badge-3 { top: 100px; right: -10px; }
    
    #stats {
        padding: 3rem 1.5rem;
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
    }
    .stat-item + .stat-item {
        border-left: none;
    }
    .stat-item:nth-child(even) {
        border-left: 1px solid rgba(255, 255, 255, .1);
    }
}