﻿
:root {
    --ink: #0a0d12;
    --panel: #12151d;
    --panel2: #171b25;
    --line: rgba(255,255,255,.09);
    --amber: #f5a623;
    --flame: #e4572e;
    --cyan: #4dd8f2;
    --text: #f5f3ee;
    --muted: #98a0ad;
    --grad: linear-gradient(95deg,var(--amber),var(--flame));
    --radius: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--text);
    font-family: 'Inter',sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Fraunces',serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--amber);
}

    .eyebrow i {
        font-size: .8em;
    }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.btn-primary {
    background: var(--grad);
    color: #14100a;
    box-shadow: 0 10px 30px -10px rgba(228,87,46,.55);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 16px 34px -10px rgba(228,87,46,.65);
    }

.btn-ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text);
}

    .btn-ghost:hover {
        border-color: var(--amber);
        color: var(--amber);
    }


/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 90px 0 70px;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        top: -220px;
        right: -160px;
        width: 560px;
        height: 560px;
        background: radial-gradient(circle, rgba(228,87,46,.28), transparent 70%);
        filter: blur(10px);
        pointer-events: none;
    }

    .hero::after {
        content: "";
        position: absolute;
        bottom: -240px;
        left: -160px;
        width: 480px;
        height: 480px;
        background: radial-gradient(circle, rgba(77,216,242,.14), transparent 70%);
        pointer-events: none;
    }

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: 46px;
    margin: 5px 0 10px;
}
    .hero h1 em {
        font-style: normal;
        background: var(--grad);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.hero p.lead {
    color: var(--muted);
    font-size: 16px;
    max-width: 60ch;
    margin-bottom: 10px;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 34px;
}

.hero-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

    .hero-stats div {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .hero-stats i {
        color: var(--amber);
        font-size: 1.15rem;
    }

    .hero-stats strong {
        display: block;
        font-size: .92rem;
    }

    .hero-stats span {
        color: var(--muted);
        font-size: .78rem;
    }

/* Signature: animated open/close jaw joint diagram */
.jaw-card {
    position: relative;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 30px 26px 22px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}

.jaw-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

    .jaw-card-head h3 {
        font-size: 1rem;
    }

.jaw-toggle {
    display: flex;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

    .jaw-toggle button {
        border: none;
        background: transparent;
        color: var(--muted);
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        padding: 7px 14px;
        border-radius: 999px;
        cursor: pointer;
        transition: all .25s ease;
    }

        .jaw-toggle button.active {
            background: var(--grad);
            color: #14100a;
        }

.jaw-stage {
    padding: 10px 0 4px;
}

.jaw-caption {
    text-align: center;
    color: var(--muted);
    font-size: .82rem;
    margin-top: 6px;
}

#jawSvg .mandible {
    transform-origin: 76px 92px;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.jaw-card.open #jawSvg .mandible {
    transform: rotate(18deg) translate(4px, 2px);
}

#jawSvg .joint-pulse {
    transition: opacity .5s ease;
    opacity: 0;
}

.jaw-card.open #jawSvg .joint-pulse {
    opacity: 1;
}

/* ===== SECTION BASICS ===== */
section {
    padding: 30px 0;
}

.section-alt {
    background: var(--panel);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 640px;
    margin-bottom: 14px;
}

    .section-head h2 {
        font-size: clamp(1.6rem, 2.6vw, 2.2rem);
        margin-top: 14px;
    }

    .section-head p {
        color: var(--muted);
        margin-top: 14px;
    }

/* ===== TMJ MOVEMENTS ===== */
.move-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.move-card {
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    transition: transform .25s ease, border-color .25s ease;
}

    .move-card:hover {
        transform: translateY(-4px);
        border-color: var(--flame);
    }

    .move-card i {
        font-size: 1.4rem;
        color: var(--flame);
        margin-bottom: 12px;
        display: inline-block;
    }

    .move-card h4 {
        font-family: 'Inter',sans-serif;
        font-size: .88rem;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .move-card p {
        font-size: .76rem;
        color: var(--muted);
    }

/* ===== CARD GRID (importance / benefits / why-choose) ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    background: linear-gradient(180deg, var(--panel2), var(--panel));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .info-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
    }

    .info-card .ic {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(245,166,35,.12);
        color: var(--amber);
        font-size: 1.15rem;
        margin-bottom: 16px;
    }

    .info-card h3 {
        font-size: 1.02rem;
        margin-bottom: 8px;
    }

    .info-card p {
        color: var(--muted);
        font-size: .88rem;
    }

/* ===== CONDITIONS PILLS ===== */
.pill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.pill {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--panel2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 18px;
    font-size: .9rem;
}

    .pill i {
        color: var(--amber);
        font-size: 1.05rem;
        width: 20px;
        text-align: center;
    }

/* ===== PROCEDURE TIMELINE ===== */
.timeline {
    position: relative;
}

    .timeline::before {
        content: "";
        position: absolute;
        left: 27px;
        top: 8px;
        bottom: 8px;
        width: 2px;
        background: linear-gradient(180deg, var(--amber), var(--flame), transparent);
    }

.tl-item {
    position: relative;
    display: flex;
    gap: 24px;
    padding-bottom: 34px;
}

    .tl-item:last-child {
        padding-bottom: 0;
    }

.tl-num {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--panel2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fraunces',serif;
    font-size: 1.1rem;
    color: var(--amber);
    z-index: 1;
}

.tl-body h4 {
    font-family: 'Inter',sans-serif;
    font-size: 1rem;
    margin-bottom: 4px;
}

.tl-body p {
    color: var(--muted);
    font-size: .88rem;
    max-width: 52ch;
}

/* ===== SAFETY BANNER ===== */
.safety {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 40px;
    align-items: center;
    background: linear-gradient(120deg, rgba(245,166,35,.1), rgba(77,216,242,.08));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 44px;
}

.safety-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

    .safety-badge i {
        font-size: 2.6rem;
        color: var(--amber);
    }

    .safety-badge strong {
        font-size: 1.6rem;
        font-family: 'Fraunces',serif;
    }

    .safety-badge span {
        color: var(--muted);
        font-size: .82rem;
    }

.safety ul {
    margin-top: 14px;
    display: grid;
    gap: 10px;
}

.safety li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: .92rem;
}

    .safety li i {
        color: var(--amber);
        margin-top: 3px;
    }

/* ===== FAQ ===== */


    .faq details {
        background: var(--panel2);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 18px 22px;
        margin-bottom: 12px;
    }

    .faq summary {
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        font-family: 'Fraunces',serif;
        font-size: 1rem;
    }

        .faq summary::-webkit-details-marker {
            display: none;
        }

        .faq summary i {
            color: var(--flame);
            transition: transform .3s ease;
        }

    .faq details[open] summary i {
        transform: rotate(45deg);
    }

    .faq p {
        color: var(--muted);
        margin-top: 12px;
        font-size: .9rem;
    }


/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .move-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pill-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .safety {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .nav-links {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background: var(--panel);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 28px 26px;
        gap: 16px;
        transform: translateY(-130%);
        opacity: 0;
        transition: all .3s ease;
        pointer-events: none;
    }

        .nav-links.show {
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }

    .burger {
        display: block;
    }

    .nav-cta .btn-ghost {
        display: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .move-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pill-grid {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

    .reveal.in {
        opacity: 1;
        transform: none;
    }


