:root {
    --bg: #050505;
    --panel: #111111;
    --panel-border: #222;
    --text: #ffffff;
    --muted: #888;
    --gold: #c5a059;
    --gold-hover: #d4af37;
    --red: #e60000;

    --font-head: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;

    --max: 1200px;
    --radius: 0px;
    /* Sharp edges for that raw fight look */
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    /* Subtle texture or noise could be added here */
}

h1,
h2,
h3,
h4,
.brand,
.btn,
.nav a,
.kicker,
.hero-meta,
.stat b {
    font-family: var(--font-head);
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
}

/* Utilities */
.skip {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip:focus {
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    padding: 1rem;
    background: var(--gold);
    color: #000;
    z-index: 9999;
    text-align: center;
    font-weight: bold;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.show {
    opacity: 1;
    transform: translateY(0);
}

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 2px solid var(--panel-border);
    /* Fix: backdrop-filter support for Safari */
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text);
}

.logo {
    width: 40px;
    height: 40px;
    background: var(--gold);
    /* Placeholder for logo shape */
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.nav {
    display: none;
    /* Hidden by default on smallest screens if we want a hamburger, but let's make it visible but simpler for now or just stack it */
    /* Actually, for this landing page, let's just show links on mobile or hide them if we have a sticky CTA? */
    /* Let's make a simple scrollable row or stacked for mobile since there are only 2 links */
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 5px;
    /* for scrollbar spacing if needed */
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--panel-border);
        justify-content: center;
        gap: 1.5rem;
        padding: 1rem;
        z-index: 999;
        /* Bottom nav bar style for mobile */
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    }

    .topbar {
        padding-bottom: 0;
    }

    /* Fixed: Removed empty .topbar .nav ruleset */

    .nav a {
        font-size: 0.9rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Hide the top CTA on mobile if we have the bottom bar? Or keep it? */
    /* The CTA "Dołącz do listy" is in .topbar-inner. */

    .topbar-inner {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 2rem;
        position: static;
        width: auto;
        background: transparent;
        border: none;
        padding: 0;
    }

    .nav a {
        font-size: 1.1rem;
        font-weight: 500;
        letter-spacing: 0.5px;
        color: var(--muted);
    }

    .nav a:hover {
        color: var(--gold);
    }
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.5rem;
    background: var(--gold);
    color: #000;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    /* Skewed box for that aggressive look */
    transform: skew(-10deg);
    transition: background 0.2s, transform 0.2s;
}

.cta:hover {
    background: var(--gold-hover);
    transform: skew(-10deg) translateY(-2px);
}

.cta>* {
    transform: skew(10deg);
    /* Un-skew text */
}

/* Hero */
.hero {
    position: relative;
    padding: 4rem 0;
    border-bottom: 1px solid var(--panel-border);
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.3), var(--bg)),
        url('oktagon.jpg') center/cover no-repeat;
    /* Darken bg image strongly to let text pop */
    box-shadow: inset 0 -100px 100px -50px var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile */
    gap: 2rem;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.badge {
    display: inline-flex;
    background: var(--red);
    color: #fff;
    padding: 0.2rem 0.8rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    width: fit-content;
}

.badge .dot {
    display: none;
}

/* Remove dot for this style */

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 0.9;
    margin: 0;
    letter-spacing: -1px;
    color: #fff;
    text-shadow: 2px 2px 0px #000;
}

.hero-sub {
    font-size: 1.1rem;
    color: #ccc;
    max-width: 600px;
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 500;
}

.location-link:hover,
.date-link:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s;
    transform: skew(-10deg);
}

.btn>* {
    transform: skew(10deg);
}

.btn.primary {
    background: var(--gold);
    color: #000;
}

.btn.primary:hover {
    background: var(--gold-hover);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* Side Panel Hero (Stats) */
.hero-card {
    /* Transparent or minimal container */
    padding: 1rem;
}

/* Refactor: Extracted inline styles for hero split */
.hero-split-content {
    padding: 1.2rem;
}

.hero-badge-wrapper {
    margin-bottom: 0.7rem;
}

.hero-badge-dot {
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(255, 46, 46, 0.15);
}

.hero-title-small {
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.hero-lead-small {
    margin-top: 0.6rem;
}

.soft-card-top {
    margin-top: 0.8rem;
}

/* Text Utilities */
.text-uppercase-bold {
    display: block;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.text-muted-bold {
    margin: 0.45rem 0 0.9rem;
    font-weight: 700;
}

.mt-md {
    margin-top: 0.6rem;
}

.mt-sm {
    margin: 0.35rem 0 0;
}

.mb-head {
    margin-bottom: 1rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 2rem;
}

@media (max-width: 600px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.stat {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    padding: 1rem;
    text-align: center;
    /* skew? maybe */
}

.stat b {
    display: block;
    font-size: 1.5rem;
    color: var(--gold);
}

.stat span {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sections */
section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--panel-border);
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

.section-head {
    margin-bottom: 3rem;
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
}

.kicker {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
    line-height: 1;
}

/* Cards (About, Trainers) */
.grid,
.trainers,
.benefits {
    display: grid;
    gap: 1.5rem;
}

@media(min-width: 700px) {
    .grid {
        grid-template-columns: 2fr 1fr;
    }

    .benefits {
        grid-template-columns: 1fr 1fr;
    }
}

.card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    padding: 2rem;
    position: relative;
    transition: border-color 0.3s;
}

.card:hover {
    border-color: var(--gold);
}

.benefit h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

.benefit p {
    color: var(--muted);
}

.benefit .ic {
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Schedule */
.schedule {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .schedule {
        grid-template-columns: 1fr 1fr;
    }
}

.timeline {
    border-left: 2px solid var(--panel-border);
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.slot {
    position: relative;
}

.slot::before {
    content: '';
    position: absolute;
    left: calc(-1.5rem - 6px);
    /* Align with border */
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--gold);
    transform: rotate(45deg);
}

.slot b {
    display: block;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

/* Fix: Removed empty ruleset .slot span {} */

.slot-row {
    display: block;
    color: var(--text);
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Waitlist / Pricing */
#zapisy {
    background: linear-gradient(45deg, #111 0%, #000 100%);
    position: relative;
    overflow: hidden;
}

/* decorative elements */
#zapisy::before {
    content: 'FIGHT STREFA';
    position: absolute;
    top: -5%;
    left: -5%;
    font-family: var(--font-head);
    font-size: 20vw;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    pointer-events: none;
    z-index: 0;
}

.price-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.price-box.centered {
    grid-column: 1 / -1;
}

.waitlist-form {
    display: grid;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.w-full {
    width: 100%;
}

.btn-rounded {
    border-radius: 16px;
}

.form-status {
    display: none;
    margin-top: 1rem;
    font-weight: 700;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    text-align: left;
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--muted);
}

input {
    background: #000;
    border: 1px solid var(--panel-border);
    color: #fff;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus {
    border-color: var(--gold);
    outline: none;
}

/* Footer */
footer {
    background: #000;
    padding: 3rem 0;
    border-top: 1px solid var(--panel-border);
    text-align: center;
    color: var(--muted);
}

.footer-brand-wrapper {
    margin-bottom: 0.6rem;
}

.footer-contact {
    margin: 0;
}

.footer-copy {
    margin: 0.7rem 0 0;
    font-size: 0.92rem;
}

/* Instructors Grid */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Mobile: 3 cards per row as requested */
    gap: 0.5rem;
    margin-top: 2rem;
}

@media(min-width: 600px) {
    .instructors-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Tablet */
        gap: 1rem;
    }
}

@media(min-width: 900px) {
    .instructors-grid {
        grid-template-columns: repeat(6, 1fr);
        /* Desktop */
        gap: 1.5rem;
    }
}

.instructor-card {
    aspect-ratio: 2/3;
    /* Standard card ratio */
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
    z-index: 2;
}

.instructor-card .card-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #2a2a2a 0%, #000 100%);
}

.question-mark {
    font-size: 2rem;
    color: var(--gold);
    font-family: var(--font-head);
    font-weight: 700;
    opacity: 0.8;
}

/* Modal Stlyes */
.instructor-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    max-width: none;
    max-height: none;
    display: flex;
    /* Flex to center */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.instructor-modal[open] {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    aspect-ratio: 2/3;
    z-index: 1;
}

/* Close Button */
.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    padding: 5px;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: var(--gold);
}

/* 3D Flip Animation */
.perspective-container {
    perspective: 1000px;
    width: 100%;
    height: 100%;
}

.flip-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.flip-card.is-flipped {
    transform: rotateY(180deg);
}

.flip-card-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Safari */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gold);
    background: #111;
}

/* Front Side */
.flip-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #222 0%, #050505 100%);
}

.placeholder-img {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gold);
}

.question-mark-large {
    font-size: 6rem;
    font-family: var(--font-head);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.tap-hint {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.modal-name-front {
    width: 100%;
    padding: 1.5rem;
    margin: 0;
    text-align: center;
    background: rgba(197, 160, 89, 0.1);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    color: #fff;
    font-size: 1.5rem;
}

/* Back Side */
.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
    justify-content: center;
    background: #000;
    background-image: linear-gradient(rgba(20, 20, 20, 0.9), rgba(0, 0, 0, 0.95)), url('oktagon.jpg');
    background-size: cover;
}

.back-content h3 {
    color: var(--gold);
    font-size: 2rem;
    margin-bottom: 1rem;
}