@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap");

:root {
    --terracotta: #c45a3b;
    --terracotta-deep: #9f432b;
    --gold-sand: #e0b57b;
    --oasis-green: #3f6f60;
    --ink-brown: #32271f;
    --soft-brown: #6b594b;
    --paper: #fffaf2;
    --paper-soft: #fdf4e6;
    --paper-deep: #f4e3c8;
    --line: rgba(116, 79, 55, 0.16);
    --shadow: 0 18px 40px rgba(61, 40, 28, 0.12);
    --shadow-soft: 0 10px 22px rgba(61, 40, 28, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink-brown);
    font-family: "Inter", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(224, 181, 123, 0.26), transparent 28%),
        linear-gradient(180deg, #fef8ec 0%, #f7e8cf 100%);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1240px, calc(100vw - 44px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--paper-soft);
    background-image:
        linear-gradient(90deg, rgba(253, 244, 230, 0.96), rgba(253, 244, 230, 0.74) 34%, rgba(253, 244, 230, 0.78) 68%, rgba(253, 244, 230, 0.96)),
        url("./muqam-header-pattern.svg");
    background-position: center, center;
    background-repeat: no-repeat, repeat-x;
    background-size: cover, 420px 118px;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(196, 90, 59, 0.18);
}

.header-bar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.brand-logo-image {
    height: 56px;
    width: auto;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #fff;
    background: linear-gradient(135deg, var(--terracotta), var(--gold-sand));
    box-shadow: 0 10px 24px rgba(196, 90, 59, 0.2);
    font-family: "Noto Serif SC", serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.brand-copy strong {
    font-family: "Noto Serif SC", serif;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--terracotta);
    line-height: 1.15;
}

.brand-copy span,
.brand-copy em {
    font-size: 0.78rem;
    font-style: normal;
    color: var(--soft-brown);
    letter-spacing: 0.14em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link,
.guard-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--ink-brown);
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.guard-toggle:hover,
.nav-guard.is-open .guard-toggle {
    color: var(--terracotta);
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(196, 90, 59, 0.15);
}

.nav-guard {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.guard-toggle::after {
    content: "▾";
    margin-left: 8px;
    font-size: 0.84rem;
    line-height: 1;
    transform: translateY(-1px);
}

.guard-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 310px;
    padding: 12px;
    display: grid;
    gap: 10px;
    border-radius: 24px;
    background: rgba(255, 251, 245, 0.98);
    border: 1px solid rgba(196, 90, 59, 0.14);
    box-shadow: var(--shadow);
}

.guard-menu[hidden] {
    display: none;
}

.guard-item {
    padding: 15px 16px;
    border-radius: 18px;
    text-decoration: none;
    background: linear-gradient(180deg, rgba(255, 250, 243, 1), rgba(248, 235, 210, 0.92));
    border: 1px solid rgba(196, 90, 59, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.guard-item:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 90, 59, 0.22);
}

.guard-item span {
    display: block;
    font-weight: 700;
    color: var(--ink-brown);
}

.guard-item small {
    display: block;
    margin-top: 6px;
    color: var(--soft-brown);
    line-height: 1.55;
}

.hero,
.page-hero {
    padding: 78px 0 68px;
    position: relative;
}

.hero::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 249, 238, 0.36), rgba(240, 220, 186, 0.16));
    pointer-events: none;
}

.hero-grid,
.page-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 40px;
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-kicker,
.section-kicker {
    margin: 0;
    color: var(--terracotta);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-title,
.section-title,
.card-title,
.panel-title,
.callout-title {
    margin: 0;
    font-family: "Noto Serif SC", serif;
}

.hero-title {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    line-height: 1.2;
    color: var(--terracotta);
}

.hero-title span {
    background: linear-gradient(135deg, var(--terracotta), var(--gold-sand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-quote {
    margin: 0;
    padding: 18px 22px;
    border-left: 5px solid var(--gold-sand);
    border-radius: 0 18px 18px 0;
    background: rgba(224, 181, 123, 0.12);
    color: var(--ink-brown);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.75;
}

.hero-text,
.section-copy,
.card-copy,
.panel-copy,
.callout-copy,
.footer-copy {
    margin: 0;
    color: #4a3b32;
    line-height: 1.75;
}

.button-row,
.chip-row,
.tag-row,
.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--terracotta);
    color: #fff;
    box-shadow: 0 14px 28px rgba(196, 90, 59, 0.22);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--terracotta);
    border-color: rgba(196, 90, 59, 0.18);
}

.button-ghost {
    background: transparent;
    color: var(--oasis-green);
    border-color: rgba(63, 111, 96, 0.2);
}

.chip,
.tag,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(196, 90, 59, 0.12);
    color: var(--soft-brown);
    font-size: 0.86rem;
    font-weight: 600;
}

.hero-visual,
.feature-card,
.heritage-card,
.timeline-card,
.gallery-card,
.panel,
.option-card,
.result-card,
.preview-card,
.callout,
.quote-shell {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.hero-visual {
    padding: 18px;
    border-radius: 32px;
}

.hero-image,
.hero-secondary,
.card-image,
.gallery-card img {
    width: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.hero-image {
    aspect-ratio: 4 / 3;
}

.hero-secondary {
    margin-top: 14px;
    aspect-ratio: 16 / 10;
}

.section {
    padding: 70px 0;
}

.section-muted {
    background: linear-gradient(180deg, rgba(255, 250, 241, 0.55), rgba(245, 230, 200, 0.44));
}

.section-head {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--ink-brown);
    line-height: 1.35;
}

.card-grid,
.feature-grid,
.timeline-grid,
.gallery-grid,
.result-grid,
.preview-grid,
.option-grid,
.stats-grid,
.content-grid,
.control-grid,
.form-grid {
    display: grid;
    gap: 26px;
}

.feature-grid,
.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid,
.gallery-grid,
.preview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid,
.result-grid,
.control-grid,
.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.option-grid,
.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.heritage-card,
.gallery-card,
.result-card,
.preview-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 28px;
}

.panel,
.timeline-card,
.callout,
.quote-shell {
    border-radius: 30px;
}

.card-image {
    aspect-ratio: 4 / 3;
}

.gallery-card img {
    aspect-ratio: 4 / 3;
}

.card-body,
.panel-body,
.timeline-card,
.result-card,
.preview-card,
.callout,
.quote-shell {
    padding: 24px;
}

.feature-card .card-body,
.heritage-card .card-body,
.gallery-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-title {
    font-size: 1.42rem;
    color: var(--terracotta);
    line-height: 1.4;
}

.card-label {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    background: #f7e5d3;
    color: var(--terracotta);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.panel-title {
    font-size: 1.68rem;
    color: var(--terracotta);
    line-height: 1.42;
}

.stats {
    margin: 18px 0;
    padding: 52px 0;
    background: linear-gradient(135deg, #f4e8d7, #fdf3e5);
}

.stat-item {
    text-align: center;
}

.stat-value {
    margin: 0 0 10px;
    font-family: "Noto Serif SC", serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--oasis-green);
}

.stat-label {
    margin: 0;
    color: var(--soft-brown);
    font-weight: 600;
}

.quote-shell {
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255, 248, 238, 0.9);
}

.quote-text {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.9;
    color: #3f3129;
    text-align: center;
}

.quote-text + .quote-text {
    margin-top: 16px;
}

.instrument-list {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.instrument-badge {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--gold-sand);
    color: var(--ink-brown);
    font-weight: 700;
}

.timeline-card {
    background: rgba(255, 251, 243, 0.9);
}

.timeline-index {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--terracotta), var(--gold-sand));
    color: #fff;
    font-weight: 800;
}

.timeline-card h3,
.result-card h3,
.preview-card h3,
.callout-title {
    margin: 0 0 10px;
    font-family: "Noto Serif SC", serif;
    color: var(--ink-brown);
}

.page-hero .hero-copy {
    gap: 16px;
}

.panel {
    padding: 28px;
}

.panel-label {
    margin: 0 0 10px;
    color: var(--terracotta);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.file-drop {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
    padding: 28px;
    border: 1.5px dashed rgba(196, 90, 59, 0.38);
    border-radius: 24px;
    background: rgba(255, 252, 247, 0.92);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.file-drop:hover {
    transform: translateY(-2px);
    border-color: rgba(196, 90, 59, 0.54);
}

.file-drop input {
    display: none;
}

.file-drop strong {
    font-size: 1.04rem;
}

.helper-text {
    color: var(--soft-brown);
    line-height: 1.7;
}

.file-name {
    align-self: flex-start;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(63, 111, 96, 0.1);
    color: var(--oasis-green);
    font-size: 0.88rem;
    font-weight: 700;
}

.step-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.step-item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 251, 244, 0.92);
    border: 1px solid rgba(196, 90, 59, 0.08);
}

.step-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--terracotta), var(--gold-sand));
    color: #fff;
    font-weight: 800;
}

.step-item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.step-item p {
    margin: 0;
    color: var(--soft-brown);
    line-height: 1.65;
}

.option-wrap {
    position: relative;
}

.option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card {
    display: block;
    height: 100%;
    padding: 26px;
    border-radius: 28px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.option-input:checked + .option-card {
    transform: translateY(-3px);
    border-color: rgba(196, 90, 59, 0.28);
    box-shadow: var(--shadow);
}

.option-card p,
.result-card p,
.preview-card p {
    margin: 0;
    color: var(--soft-brown);
    line-height: 1.72;
}

.option-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--soft-brown);
    line-height: 1.7;
}

.field {
    display: grid;
    gap: 10px;
}

.field label {
    font-weight: 700;
    color: var(--ink-brown);
}

.text-input,
.text-area,
.select-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(116, 79, 55, 0.16);
    background: rgba(255, 252, 248, 0.96);
    color: var(--ink-brown);
}

.text-area {
    min-height: 150px;
    resize: vertical;
    line-height: 1.75;
}

.control-card {
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.control-card h3 {
    margin: 0 0 8px;
    font-family: "Noto Serif SC", serif;
    font-size: 1.16rem;
}

.control-card p {
    margin: 0 0 16px;
    color: var(--soft-brown);
}

.control-card input[type="range"] {
    width: 100%;
    accent-color: var(--terracotta);
}

.result-card,
.preview-card {
    min-height: 100%;
}

.result-status {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    margin-top: 14px;
    border-radius: 999px;
    background: rgba(63, 111, 96, 0.11);
    color: var(--oasis-green);
    font-size: 0.84rem;
    font-weight: 700;
}

.callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 28px 30px;
    background: linear-gradient(135deg, rgba(196, 90, 59, 0.96), rgba(224, 181, 123, 0.94));
    color: #fff;
}

.callout-copy {
    color: rgba(255, 246, 234, 0.92);
}

.action-feedback {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    line-height: 1.68;
}

.action-feedback[hidden] {
    display: none;
}

.health-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(63, 111, 96, 0.11);
    color: var(--oasis-green);
    font-size: 0.88rem;
    font-weight: 700;
}

.health-pill[data-state="degraded"] {
    background: rgba(196, 90, 59, 0.12);
    color: var(--terracotta);
}

.upload-form {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.live-note {
    margin: 16px 0 0;
    color: var(--soft-brown);
    line-height: 1.75;
}

.status-box {
    margin-top: 20px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 251, 244, 0.92);
    border: 1px solid rgba(196, 90, 59, 0.08);
}

.status-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.status-label {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(224, 181, 123, 0.22);
    color: var(--ink-brown);
    font-size: 0.9rem;
    font-weight: 800;
}

.status-label.running {
    background: rgba(63, 111, 96, 0.12);
    color: var(--oasis-green);
}

.status-label.completed {
    background: rgba(63, 111, 96, 0.18);
    color: var(--oasis-green);
}

.status-label.failed {
    background: rgba(196, 90, 59, 0.14);
    color: var(--terracotta);
}

.job-id {
    color: var(--soft-brown);
    font-size: 0.92rem;
    line-height: 1.6;
}

.status-message {
    margin: 14px 0 0;
    color: var(--soft-brown);
    line-height: 1.75;
}

.creation-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin-top: 18px;
}

.creation-progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(196, 90, 59, 0.12);
    overflow: hidden;
}

.creation-progress-bar {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--terracotta), var(--gold-sand));
    transition: width 0.35s ease;
}

.creation-progress-value {
    min-width: 52px;
    text-align: right;
    color: var(--terracotta);
    font-weight: 800;
}

.live-step-list {
    margin-top: 18px;
}

.step-meta {
    min-width: 0;
}

.step-item[data-state="current"] {
    border-color: rgba(196, 90, 59, 0.28);
    box-shadow: 0 16px 28px rgba(61, 40, 28, 0.08);
    background: rgba(255, 247, 236, 0.98);
}

.step-item[data-state="done"] {
    border-color: rgba(63, 111, 96, 0.18);
    background: rgba(247, 252, 249, 0.96);
}

.step-item[data-state="current"] .step-badge,
.step-item[data-state="done"] .step-badge {
    box-shadow: 0 8px 18px rgba(196, 90, 59, 0.14);
}

.result-panel {
    display: grid;
    gap: 26px;
}

.live-summary-grid,
.live-audio-grid,
.live-download-grid {
    display: grid;
    gap: 20px;
}

.live-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.live-audio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.live-download-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 20px;
}

.summary-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.summary-card strong {
    display: block;
    color: var(--oasis-green);
    font-family: "Noto Serif SC", serif;
    font-size: 1.36rem;
    line-height: 1.4;
}

.summary-card span {
    display: block;
    margin-top: 6px;
    color: var(--soft-brown);
    font-size: 0.84rem;
    line-height: 1.6;
}

.live-links {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 0;
    color: var(--terracotta);
    font-weight: 700;
    text-decoration: none;
}

.resource-link:hover {
    color: var(--terracotta-deep);
}

.live-preview-shell {
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 251, 244, 0.92);
    border: 1px solid rgba(196, 90, 59, 0.1);
}

.preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(196, 90, 59, 0.18);
    background: rgba(255, 255, 255, 0.88);
    color: var(--terracotta);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preview-button.active,
.preview-button:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}

.preview-placeholder {
    color: var(--soft-brown);
    line-height: 1.75;
}

.preview-frame {
    width: 100%;
    min-height: 1080px;
    border: 0;
    border-radius: 24px;
    background: #fff;
}

.hidden {
    display: none !important;
}

audio {
    width: 100%;
    margin-top: 14px;
}

.site-footer {
    padding: 24px 0 44px;
}

.footer-shell {
    padding: 30px;
    border-radius: 28px;
    background: #2f241d;
    color: #f1e3cf;
    box-shadow: 0 -8px 24px rgba(40, 29, 23, 0.08);
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-shell .brand-logo-image {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.footer-shell .brand-copy strong {
    color: var(--gold-sand);
}

.footer-shell .brand-copy span,
.footer-shell .brand-copy em {
    color: rgba(241, 227, 207, 0.76);
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    text-decoration: none;
    color: rgba(241, 227, 207, 0.86);
    font-weight: 700;
}

.footer-links a:hover {
    color: #fff;
}

.footer-meta {
    margin-top: 18px;
    display: grid;
    gap: 8px;
    color: rgba(241, 227, 207, 0.76);
    line-height: 1.68;
    font-size: 0.92rem;
}

@media (max-width: 1024px) {
    .hero-grid,
    .page-hero-grid,
    .feature-grid,
    .content-grid,
    .option-grid,
    .form-grid,
    .callout {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .gallery-grid,
    .preview-grid,
    .timeline-grid,
    .result-grid,
    .control-grid,
    .stats-grid,
    .live-audio-grid,
    .live-download-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .live-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100vw - 24px, 100%);
    }

    .header-bar {
        min-height: auto;
        padding: 14px 0;
        align-items: flex-start;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .guard-menu {
        width: min(310px, calc(100vw - 24px));
        left: 0;
        right: auto;
    }

    .hero,
    .page-hero,
    .section {
        padding: 56px 0;
    }

    .card-grid,
    .gallery-grid,
    .preview-grid,
    .timeline-grid,
    .result-grid,
    .control-grid,
    .stats-grid,
    .live-summary-grid,
    .live-audio-grid,
    .live-download-grid {
        grid-template-columns: 1fr;
    }

    .hero-quote {
        border-left: none;
        border-top: 4px solid var(--gold-sand);
        border-radius: 18px;
    }

    .panel,
    .quote-shell,
    .callout,
    .footer-shell {
        padding: 22px;
    }

    .status-top {
        align-items: flex-start;
    }

    .preview-frame {
        min-height: 720px;
    }
}
