:root {
    --brand: #30cfaa;
    --brand-deep: #10836e;
    --brand-soft: rgba(48, 207, 170, 0.15);
    --ink: #122023;
    --muted: #5d6b70;
    --surface: #f5f8f5;
    --surface-strong: #ffffff;
    --surface-tint: #e6fbf5;
    --line: rgba(18, 32, 35, 0.1);
    --shadow: 0 20px 60px rgba(10, 41, 39, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --content-width: 1180px;
    --heading-font: "Space Grotesk", sans-serif;
    --body-font: "Manrope", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(48, 207, 170, 0.18), transparent 30%),
        radial-gradient(circle at top right, rgba(255, 210, 150, 0.2), transparent 28%),
        linear-gradient(180deg, #f7fcfa 0%, #eef4ef 50%, #f7faf8 100%);
    color: var(--ink);
    font-family: var(--body-font);
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.boot-screen,
.site-shell {
    min-height: 100vh;
}

.boot-screen {
    display: grid;
    place-items: center;
    padding: 24px;
}

.boot-card,
.status-banner,
.empty-state,
.auth-gate,
.card,
.detail-hero,
.footer-card {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.boot-card {
    max-width: 540px;
    padding: 32px;
    border-radius: var(--radius-xl);
    text-align: center;
}

.boot-eyebrow,
.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-deep);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 800;
}

.boot-card h1,
.hero-copy h1,
.page-headline h1,
.detail-copy h1,
.section-heading h2,
.auth-gate h2,
.status-banner h2,
.empty-state h2 {
    margin: 0;
    font-family: var(--heading-font);
    line-height: 1.05;
}

.boot-card p,
.hero-copy p,
.page-headline p,
.detail-copy p,
.card p,
.status-banner p,
.empty-state p,
.auth-gate p,
.footer-card p,
.richtext {
    color: var(--muted);
    line-height: 1.7;
}

.site-shell {
    display: flex;
    flex-direction: column;
}

.site-header-wrap,
.page-wrap,
.site-footer-wrap {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
}

.site-header-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
    padding-top: 18px;
}

.site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 999px;
    border: 1px solid rgba(18, 32, 35, 0.08);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(18, 32, 35, 0.08);
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(140deg, var(--brand) 0%, #8cefd6 100%);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--heading-font);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-tag {
    color: var(--muted);
    font-size: 0.82rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    transition: 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
    color: var(--ink);
    background: var(--brand-soft);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: min(100%, 320px);
    padding: 8px 8px 8px 16px;
    border-radius: 999px;
    background: #f7fbf9;
    border: 1px solid rgba(18, 32, 35, 0.06);
}

.search-form input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: none;
}

.search-form button,
.button,
.button-secondary,
.button-ghost,
.pill {
    border: 0;
    border-radius: 999px;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.search-form button,
.button {
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--brand) 0%, #8fead3 100%);
    color: #0f2c29;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(48, 207, 170, 0.25);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover,
.search-form button:hover,
.pill:hover {
    transform: translateY(-1px);
}

.button-secondary {
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 700;
}

.button-ghost {
    padding: 10px 16px;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    margin-top: 12px;
    padding: 16px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.mobile-panel[data-open="true"] {
    display: grid;
    gap: 12px;
}

.mobile-panel .nav-link {
    display: block;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f4f8f5;
}

.mobile-panel .search-form {
    min-width: 0;
}

.page-wrap {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
    padding: 30px 0 60px;
    flex: 1;
}

.hero,
.page-hero,
.detail-hero,
.status-banner,
.auth-gate {
    border-radius: var(--radius-xl);
}

.hero,
.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.hero,
.page-hero {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    padding: 32px;
}

.hero::before,
.page-hero::before,
.detail-hero::before,
.footer-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top left, rgba(48, 207, 170, 0.26), transparent 28%),
        radial-gradient(circle at bottom right, rgba(245, 184, 114, 0.18), transparent 24%);
}

.hero-copy,
.hero-visual,
.page-headline,
.detail-copy,
.detail-media {
    position: relative;
    z-index: 1;
}

.hero-copy,
.page-headline,
.detail-copy {
    display: grid;
    gap: 18px;
    align-content: start;
}

.hero-copy h1,
.page-headline h1,
.detail-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    letter-spacing: -0.05em;
}

.hero-copy p,
.page-headline p,
.detail-copy p {
    max-width: 62ch;
    font-size: 1.02rem;
}

.hero-actions,
.page-actions,
.detail-actions,
.card-actions,
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-metrics,
.metric-grid {
    display: grid;
    gap: 14px;
}

.hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(18, 32, 35, 0.08);
}

.metric-card strong {
    display: block;
    font-size: 1.5rem;
    font-family: var(--heading-font);
}

.metric-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    min-height: 420px;
    display: grid;
    gap: 16px;
    align-content: start;
}

.hero-banner {
    min-height: 240px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(18, 32, 35, 0.18);
}

.hero-banner img,
.showcase-card img,
.course-card-media img,
.blog-card img,
.testimonial-card img,
.detail-media img,
.achievement-panel img,
.download-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-stack {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.showcase-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 24px;
    background: #dbf5ec;
}

.showcase-card.text {
    padding: 22px;
    display: grid;
    gap: 10px;
    align-content: start;
}

.showcase-card.text strong {
    font-family: var(--heading-font);
    font-size: 1.25rem;
}

.showcase-card.text span {
    color: var(--muted);
}

.section {
    margin-top: 30px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 560px;
    margin: 8px 0 0;
}

.course-grid,
.product-grid,
.blog-grid,
.testimonial-grid,
.profile-grid {
    display: grid;
    gap: 18px;
}

.product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.course-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-grid,
.testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.course-card,
.blog-card,
.testimonial-card,
.profile-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 22px;
}

.product-card {
    display: grid;
    gap: 16px;
}

.product-card-media {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #dff7ef;
}

.product-card h3,
.course-card h3,
.blog-card h3,
.testimonial-card h3,
.profile-card h3 {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 1.16rem;
    letter-spacing: -0.03em;
}

.pill-row,
.tag-row,
.social-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(18, 32, 35, 0.08);
    color: var(--ink);
    font-weight: 700;
}

.pill.active {
    background: linear-gradient(135deg, var(--brand) 0%, #8fead3 100%);
    color: #0c2922;
}

.course-card,
.blog-card,
.testimonial-card {
    display: grid;
    gap: 16px;
}

.course-card-media,
.blog-card-media,
.testimonial-card-media {
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    background: #dfece6;
}

.course-pricing {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.price {
    font-size: 1.45rem;
    font-family: var(--heading-font);
    letter-spacing: -0.04em;
}

.price-old {
    color: var(--muted);
    text-decoration: line-through;
}

.chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 0.86rem;
    font-weight: 800;
}

.split-panel,
.detail-layout,
.footer-grid {
    display: grid;
    gap: 20px;
}

.split-panel {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.achievement-panel,
.download-panel,
.auth-gate,
.status-banner,
.empty-state,
.footer-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
}

.achievement-panel,
.download-panel {
    min-height: 100%;
    border-radius: var(--radius-xl);
}

.achievement-panel {
    display: grid;
    align-items: end;
    background: linear-gradient(180deg, #113131 0%, #0c4940 100%);
    color: #f6fffb;
}

.achievement-panel p,
.download-panel p {
    color: rgba(246, 255, 251, 0.8);
}

.achievement-panel img {
    border-radius: 22px;
    margin-top: 20px;
}

.download-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    gap: 24px;
    align-items: center;
    background: linear-gradient(135deg, #18312d 0%, #0d5a4c 100%);
    color: #f6fffb;
}

.download-art {
    justify-self: end;
    width: min(100%, 240px);
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.store-badges img {
    height: 48px;
    width: auto;
}

.detail-hero {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    padding: 30px;
}

.detail-media {
    min-height: 340px;
    border-radius: 28px;
    overflow: hidden;
    background: #dbeee7;
}

.detail-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    margin-top: 26px;
}

.detail-panel,
.aside-card {
    border-radius: 26px;
    padding: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.aside-card {
    display: grid;
    gap: 16px;
    align-content: start;
}

.field {
    display: grid;
    gap: 6px;
}

.field strong {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-deep);
}

.field span,
.field a {
    color: var(--ink);
}

.richtext {
    color: var(--ink);
}

.richtext h1,
.richtext h2,
.richtext h3,
.richtext h4,
.richtext h5,
.richtext h6 {
    margin: 1.3em 0 0.5em;
    font-family: var(--heading-font);
    line-height: 1.18;
}

.richtext p,
.richtext li,
.richtext td,
.richtext th {
    color: var(--ink);
    line-height: 1.8;
}

.richtext ul,
.richtext ol {
    padding-left: 22px;
}

.richtext img {
    border-radius: 18px;
    margin: 16px 0;
}

.status-banner,
.auth-gate,
.empty-state {
    padding: 28px;
}

.site-footer-wrap {
    padding-bottom: 34px;
}

.footer-card {
    margin-top: 24px;
    border-radius: 32px;
    padding: 28px;
}

.footer-grid {
    position: relative;
    z-index: 1;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.7fr));
}

.footer-title {
    margin: 0;
    font-family: var(--heading-font);
    font-size: 1.8rem;
    letter-spacing: -0.04em;
}

.footer-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.footer-list a,
.footer-list span {
    color: var(--muted);
}

.social-row a {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(18, 32, 35, 0.08);
    font-weight: 700;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: 0.94rem;
}

.spacer-top {
    margin-top: 22px;
}

@media (max-width: 1120px) {
    .site-header {
        grid-template-columns: auto 1fr;
    }

    .desktop-nav,
    .header-tools .search-form {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-tools {
        justify-content: end;
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .course-grid,
    .blog-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero,
    .page-hero,
    .detail-hero,
    .split-panel,
    .detail-layout,
    .download-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-metrics,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 0;
    }

    .download-art {
        justify-self: start;
    }
}

@media (max-width: 720px) {
    .site-header-wrap,
    .page-wrap,
    .site-footer-wrap {
        width: min(calc(100% - 20px), var(--content-width));
    }

    .site-header {
        padding: 14px;
        border-radius: 28px;
    }

    .hero,
    .page-hero,
    .detail-hero,
    .status-banner,
    .auth-gate,
    .empty-state,
    .footer-card {
        padding: 22px;
    }

    .visual-stack,
    .product-grid,
    .course-grid,
    .blog-grid,
    .testimonial-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-headline h1,
    .detail-copy h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }
}
