:root {
    --bg: #ffffff;
    --surface: #fbfbfb;
    --surface-strong: #f2f2f2;
    --text: #111111;
    --muted: #555555;
    --line: rgba(17, 17, 17, 0.12);
    --accent: #111111;
    --shadow: 0 20px 60px rgba(17, 17, 17, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(17, 17, 17, 0.07), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(17, 17, 17, 0.06), transparent 32%),
        radial-gradient(circle at 12% 78%, rgba(17, 17, 17, 0.05), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 92%);
    z-index: -1;
}

img {
    max-width: 100%;
    display: block;
}

.site-shell {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ── Topbar ── */

.topbar {
    position: fixed;
    top: calc(18px + var(--safe-top));
    left: 50%;
    transform: translateX(-50%);
    width: min(1160px, calc(100% - 24px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    z-index: 30;
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.brand-mark {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    transition: color 0.25s ease;
    padding: 6px 0;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.active {
    color: var(--text);
}

/* ── Buttons ── */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(17, 17, 17, 0.12);
}

.button:active {
    transform: translateY(0);
}

.button-dark {
    background: var(--accent);
    color: #ffffff;
}

.button-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.button-small {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 0.88rem;
}

/* ── Panel system ── */

.panel-stack {
    scroll-snap-type: y proximity;
}

.panel {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    scroll-snap-align: start;
    padding: 120px 20px 48px;
}

.panel-inner {
    width: min(1160px, 100%);
}

/* ── Shared headings ── */

.hero-copy h1,
.section-heading h2,
.socials-heading h2,
.course-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.section-heading h2,
.socials-heading h2 {
    font-size: clamp(2rem, 4.6vw, 4rem);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #6a6a6a;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.lead,
.section-copy,
.hero-copy p,
.course-tagline,
.course-description {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

/* ── Hero ── */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 32px;
    align-items: center;
}

.hero-actions,
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.hero-metrics article {
    flex: 1 1 180px;
    min-width: 180px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 16px 40px rgba(17, 17, 17, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-metrics strong {
    display: block;
    font-size: 1.08rem;
    line-height: 1.4;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 0.96rem;
}

.hero-visual {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 40px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.visual-card {
    position: absolute;
    z-index: 2;
    width: min(360px, calc(100% - 40px));
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card-primary {
    top: 10%;
    right: 8%;
}

.card-primary h2,
.card-secondary h3 {
    margin: 8px 0 10px;
    font-size: clamp(1.35rem, 2.8vw, 2.15rem);
    line-height: 1.1;
}

.card-secondary {
    bottom: 10%;
    left: 8%;
    background: #111111;
    color: #ffffff;
}

.card-secondary span,
.card-secondary p,
.card-secondary h3 {
    color: inherit;
}

.floating-line {
    position: absolute;
    background: rgba(17, 17, 17, 0.08);
    border-radius: 999px;
}

.line-one {
    width: 240px;
    height: 240px;
    top: 12%;
    left: 8%;
    border: 1px solid rgba(17, 17, 17, 0.08);
    background: transparent;
}

.line-two {
    width: 380px;
    height: 1px;
    bottom: 26%;
    right: -6%;
}

/* ── Courses rail ── */

.courses-layout,
.offers-layout,
.socials-layout {
    display: grid;
    gap: 32px;
}

.section-heading,
.socials-heading {
    max-width: 680px;
}

.courses-panel {
    padding-top: 110px;
}

.meal-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 18px;
    padding: 18px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.meal-rail:active {
    cursor: grabbing;
}

.meal-rail::-webkit-scrollbar {
    display: none;
}

.meal-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: grid;
    grid-template-rows: 200px auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(17, 17, 17, 0.14);
}

.meal-media {
    position: relative;
    overflow: hidden;
}

.meal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.meal-card:hover .meal-media img {
    transform: scale(1.06);
}

.meal-copy {
    padding: 18px 18px 22px;
}

.meal-copy h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.meal-copy p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.94rem;
}

.meal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.meal-price {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.meal-actions {
    display: flex;
    gap: 10px;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: #111111;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rail-hint {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 0.88rem;
}

/* ── Offers / pricing ── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pricing-card {
    padding: 21px;
    border-radius: calc(var(--radius-xl) * 0.8);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    font-size: 0.82rem;
}

.pricing-card h3 {
    margin: 6px 0 8px;
    font-size: 1.1rem;
    line-height: 1.12;
}

.pricing-card .price-title {
    font-size: 0.61rem;
    margin-bottom: 10px;
}

.pricing-card p {
    font-size: 0.82rem;
}

.pricing-card .button {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.84rem;
}

.featured-card {
    background: #111111;
    border-color: #111111;
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-12px);
}

.featured-card p,
.featured-card li,
.featured-card .price-title {
    color: rgba(255, 255, 255, 0.92);
}

.featured-card h3 {
    color: #ffffff;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
    flex: 1;
}

.pricing-card li {
    position: relative;
    padding-left: 18px;
    color: var(--muted);
}

.pricing-card li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: currentColor;
}

.offer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.offer-price {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.offer-actions {
    display: flex;
    gap: 10px;
}

/* ── Course detail page ── */

.course-panel {
    padding-top: 110px;
}

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 48px;
    align-items: center;
}

.course-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-copy h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
}

.course-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 12px;
}

.course-features li {
    position: relative;
    padding-left: 24px;
    color: var(--muted);
}

.course-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

.course-buy {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.course-price {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.course-note {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.88rem;
}

.course-back {
    margin-top: 8px;
}

.course-back a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.course-back a:hover {
    color: var(--text);
}

/* ── Socials ── */

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 20px 60px rgba(17, 17, 17, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 54px rgba(17, 17, 17, 0.12);
}

.social-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #111111;
    color: #ffffff;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.social-icon svg {
    display: block;
}

.social-label {
    font-weight: 700;
    font-size: 1rem;
}

.social-arrow {
    margin-left: auto;
    color: var(--muted);
    font-size: 1.1rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.social-card:hover .social-arrow {
    transform: translateX(4px);
    color: var(--text);
}

.social-card:hover .social-facebook { background: #1877F2; }
.social-card:hover .social-instagram { background: #E1306C; }
.social-card:hover .social-tiktok { background: #111111; }
.social-card:hover .social-youtube { background: #FF0000; }

/* ── Panel dots ── */

.panel-dots {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: grid;
    gap: 12px;
}

.dot {
    position: relative;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(17, 17, 17, 0.24);
    background: rgba(17, 17, 17, 0.12);
    color: var(--muted);
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.dot span {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: var(--text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    font-size: 0.82rem;
}

.dot:hover span,
.dot.active span {
    opacity: 1;
}

.dot.active {
    background: #111111;
    transform: scale(1.15);
}

/* ── Footer ── */

.site-footer {
    padding: 32px 20px calc(32px + var(--safe-bottom));
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-inner p {
    margin: 0;
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* ────────────────────────────
   Responsive
   ──────────────────────────── */

@media (max-width: 1080px) {
    .hero-grid,
    .course-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 420px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        transform: none;
    }
}

@media (max-width: 860px) {
    .topbar {
        top: calc(10px + var(--safe-top));
        border-radius: 22px;
        padding: 12px 16px;
        width: calc(100% - 16px);
        flex-wrap: wrap;
        align-items: center;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        width: 100%;
        padding: 14px 8px;
        border-top: 1px solid var(--line);
        font-size: 1rem;
        text-align: center;
    }

    .panel-dots {
        display: none;
    }

    .panel {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 40px;
    }

    .hero-visual {
        min-height: 360px;
        border-radius: 28px;
    }

    .meal-card {
        flex: 0 0 260px;
        grid-template-rows: 180px auto;
    }

    .course-panel {
        padding-top: 110px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    body::before {
        background-size: 44px 44px;
    }

    .panel {
        padding: 110px 14px 28px;
    }

    .hero-copy h1,
    .section-heading h2,
    .socials-heading h2,
    .course-copy h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
        letter-spacing: -0.04em;
    }

    .hero-visual {
        min-height: 0;
        padding: 20px;
        gap: 16px;
        border-radius: 24px;
        align-content: center;
    }

    .visual-card {
        position: relative;
        width: 100%;
        top: auto;
        right: auto;
        left: auto;
        bottom: auto;
        padding: 22px;
    }

    .floating-line {
        display: none;
    }

    .hero-metrics article {
        min-width: 100%;
    }

    .button {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }

    .socials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .social-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 22px 14px;
        border-radius: 20px;
    }

    .social-arrow {
        display: none;
    }

    .meal-card {
        flex: 0 0 calc(100vw - 48px);
    }

    .meal-actions {
        width: 100%;
    }

    .meal-actions .button {
        flex: 1;
    }

    .offer-actions {
        width: 100%;
    }

    .offer-actions .button {
        flex: 1;
    }

    .course-layout {
        gap: 28px;
    }

    .course-buy {
        align-items: stretch;
    }

    .course-buy .button {
        width: 100%;
    }
}
