/* --------------------
  Design System
---------------------*/
:root {
    --bg: #0b0d10;
    --panel: #12161b;
    --muted: #9aa4ad;
    --text: #e6edf3;
    --primary: #7c5cff;
    /* neon violet */
    --primary-2: #43e7ad;
    /* mint */
    --danger: #ff5c7c;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --radius: 16px;
    --radius-lg: 24px;
    --maxw: 1200px;
    --grid-gap: clamp(16px, 2.2vw, 28px);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 800px at 80% -10%, rgba(124, 92, 255, .18), transparent 60%),
        radial-gradient(900px 600px at -10% 10%, rgba(67, 231, 173, .12), transparent 50%),
        var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(100% - 32px, var(--maxw));
    margin-inline: auto;
}

/* --------------------
  Header / Nav
---------------------*/
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 13, 16, .6);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: .3px;
}

.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: conic-gradient(from 180deg at 50% 50%, var(--primary), var(--primary-2), var(--primary));
    box-shadow: 0 8px 24px rgba(124, 92, 255, .35), inset 0 0 24px rgba(67, 231, 173, .35);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-links a {
    opacity: .9;
    padding: 10px 12px;
    border-radius: 10px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, .06);
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
    color: #0b0d10;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(67, 231, 173, .25), 0 6px 18px rgba(124, 92, 255, .25);
}

.cta-btn:active {
    transform: translateY(1px);
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: var(--text);
    font-size: 22px;
}

@media (max-width: 980px) {
    .menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        inset: 72px 0 auto;
        padding: 16px;
        background: rgba(12, 14, 18, .92);
        flex-direction: column;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        padding: 14px;
    }
}

/* --------------------
  Hero
---------------------*/
.hero {
    padding: 64px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: var(--grid-gap);
    align-items: center;
}

.hero h1 {
    font-size: clamp(34px, 5.2vw, 58px);
    line-height: 1.08;
    margin: 0 0 14px;
}

.hero p {
    color: var(--muted);
    font-size: clamp(14px, 1.5vw, 18px);
    margin: 0 0 24px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px;
}

.stat {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat b {
    display: block;
    font-size: clamp(22px, 3.4vw, 34px);
}

.stat span {
    color: var(--muted);
    font-size: 13px;
}

.poster {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    background: url("https://images.unsplash.com/photo-1581009146145-b5ef050c2e1e?ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTF8fGd5bXxlbnwwfHwwfHx8MA%3D%3D&auto=format&fit=crop&q=60&w=500") center/cover no-repeat,
    radial-gradient(200px 120px at 40% 10%, rgba(67, 231, 173, .25), transparent 60%),
    radial-gradient(300px 220px at 60% 90%, rgba(124, 92, 255, .23), transparent 70%),
    linear-gradient(145deg, #171a1f, #0e1115);

    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 40 40"><path fill="%23ffffff0f" d="M0 39h40v1H0zM39 0h1v40h-1z"/></svg>');
    mix-blend-mode: soft-light;
    opacity: .6;
}

.poster-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    background: rgba(11, 13, 16, .6);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: 12px;
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }
}

/* --------------------
  Sections
---------------------*/
section {
    padding: 70px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3.6vw, 40px);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.card .icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(124, 92, 255, .22), rgba(67, 231, 173, .22));
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 980px) {
    .features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .features {
        grid-template-columns: 1fr;
    }
}

/* Programs */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.program {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #1a1f26, #0e1216);
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.program .content {
    padding: 20px;
}

.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tag {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
}

.program .thumb {
    aspect-ratio: 16/9;
    background: radial-gradient(160px 80px at 30% 20%, rgba(67, 231, 173, .28), transparent 60%), linear-gradient(145deg, #141820, #0f1318);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    display: block;
    width: 100%;
}

.program .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform .5s ease;
}

.program:hover .thumb img {
    transform: scale(1.06);
}

@media (max-width: 1024px) {
    .programs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

/* Trainers */
.trainers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
}

.trainer {
    text-align: center;
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: var(--shadow);
}

.avatar {
    width: 96px;
    aspect-ratio: 1;
    margin: 10px auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(67, 231, 173, .3), transparent 40%), linear-gradient(145deg, #1a1f26, #0e1216);
    border: 1px solid rgba(255, 255, 255, .12);
}

.trainer-avatar {
    width: 60px;
    height: 60px;
    aspect-ratio: 1;
    margin: 10px auto 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(67, 231, 173, .3), transparent 40%), linear-gradient(145deg, #1a1f26, #0e1216);
    border: 1px solid rgba(255, 255, 255, .12);
    overflow: hidden;
}

.trainer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trainer small {
    color: var(--muted);
}

@media (max-width: 980px) {
    .trainers {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .trainers {
        grid-template-columns: 1fr;
    }
}

/* Pricing */
.pricing {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.price-card {
    position: relative;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, .1);
    background: linear-gradient(160deg, rgba(124, 92, 255, .08), rgba(255, 255, 255, .02));
    box-shadow: var(--shadow);
}

.price-card.popular {
    background: linear-gradient(160deg, rgba(124, 92, 255, .18), rgba(67, 231, 173, .12));
    outline: 1.5px solid rgba(124, 92, 255, .6);
    transform: translateY(-4px);
}

.price {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
}

.benefits {
    margin: 16px 0 20px;
    display: grid;
    gap: 12px;
    padding: 0;
}

.benefits li {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 15px;
    color: var(--text);
}

.benefits li.included::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #0b0d10;
    font-size: 12px;
    font-weight: 800;
}

.benefits li.excluded::before {
    content: "–";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
    font-size: 14px;
}

.benefits li.excluded {
    color: var(--muted);
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .pricing {
        grid-template-columns: 1fr;
    }
}

/* Schedule */
.schedule {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .08);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    background: rgba(255, 255, 255, .03);
}

/* Testimonials */
.quotes {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--grid-gap);
}

.quote {
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: var(--shadow);
}

.quote p {
    margin: 0;
}

@media (max-width: 900px) {
    .quotes {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tile {
    aspect-ratio: 4/3;
    border-radius: 14px;
    background: linear-gradient(145deg, #141820, #0f1318);
    border: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.tile:hover img {
    transform: scale(1.08);
}

.tile-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .3s ease;
    z-index: 2;
}

.tile:hover .tile-overlay {
    opacity: 1;
}

@media (max-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

#lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: min(90vw, 1000px);
    max-height: 85vh;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

#lightbox-close:hover { background: rgba(255,255,255,.2); }

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 32px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover,
#lightbox-next:hover { background: rgba(255,255,255,.2); }

/* Contact */
form {
    display: grid;
    gap: 12px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 14px;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    padding: 12px 14px;
    color: var(--text);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    outline: none;
    transition: border-color .2s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(124, 92, 255, .6);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Footer */
footer {
    padding: 40px 0;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
}

/* Utilities */
.pill {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .15);
    color: #fff;
    border: 1px solid rgba(124, 92, 255, .5);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--grid-gap);
    align-items: start;
}

@media (max-width: 860px) {
    .row {
        grid-template-columns: 1fr;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to top */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    display: none;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(11, 13, 16, .7);
}

.to-top.show {
    display: inline-flex;
}