.block--generator {
    background: linear-gradient(160deg, rgba(8, 19, 33, 0.88), rgba(2, 6, 23, 0.94));
}

.generator__surface {
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(6, 17, 31, 0.82);
    padding: clamp(1.8rem, 4vw, 2.8rem);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: clamp(1.8rem, 4vw, 2.6rem);
}

.generator__meta {
    display: grid;
    gap: clamp(1.6rem, 4vw, 2.4rem);
}

.generator__visual {
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.16), transparent 70%),
        radial-gradient(circle at 80% 15%, rgba(99, 102, 241, 0.16), transparent 75%),
        rgba(2, 6, 23, 0.85);
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: 0 32px 80px rgba(2, 12, 32, 0.55);
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.6rem);
}

.generator__visual canvas {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.92);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}

.generator__readout {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.generator__readout-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
    margin-bottom: 0.35rem;
}

.generator__readout-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.12em;
}

.generator__session,
.generator__library {
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(6, 17, 31, 0.82);
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: 0 24px 70px rgba(2, 12, 32, 0.5);
}

.generator__session-header,
.generator__library-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.generator__session-header h3,
.generator__library-header h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.generator__history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
    max-height: 260px;
    overflow-y: auto;
}

.generator__history li {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    font-size: 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.82);
    padding: 0.75rem 1rem;
    color: rgba(226, 232, 240, 0.78);
}

.generator__history li span:last-child {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
}

.generator__library-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.65);
    margin-bottom: 0.6rem;
}

.generator__library input[type="search"] {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.86);
    color: var(--white);
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.generator__library-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.generator__library-item {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.8);
    color: inherit;
    text-align: left;
    width: 100%;
    font: inherit;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.generator__library-item:hover,
.generator__library-item:focus-visible {
    border-color: rgba(94, 234, 212, 0.4);
    box-shadow: 0 18px 50px rgba(2, 12, 32, 0.55);
    transform: translateY(-1px);
    outline: none;
}

.generator__library-item-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin: 0;
}

.generator__library-item-tones {
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
}

.generator__library-empty {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.7);
}
:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #050c20;
    --bg-glass: rgba(10, 24, 45, 0.55);
    --surface: rgba(15, 23, 42, 0.72);
    --white: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-strong: #0ea5e9;
    --aura: #5eead4;
    --pulse: rgba(94, 234, 212, 0.45);
    --cta: #22d3ee;
    --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", "Inter", sans-serif;
    --border: rgba(148, 163, 184, 0.18);
    --shadow-soft: 0 40px 120px rgba(2, 12, 32, 0.55);
    --shadow-hero: 0 60px 180px rgba(14, 165, 233, 0.25);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background: radial-gradient(circle at 20% 15%, rgba(14, 165, 233, 0.16), transparent 55%),
        radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.18), transparent 45%),
        linear-gradient(120deg, #020617 0%, #02091a 100%);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.site-body {
    position: relative;
    overflow-x: hidden;
}

.site-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.8), rgba(3, 7, 18, 0.92));
    backdrop-filter: blur(16px);
}

.site-background {
    position: fixed;
    inset: -200px;
    width: calc(100vw + 400px);
    height: calc(100vh + 400px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
}

.container {
    width: min(1120px, 90vw);
    margin-inline: auto;
}

.hero {
    position: relative;
    padding: clamp(4rem, 12vw, 8rem) 0 clamp(3rem, 10vw, 6rem);
    overflow: hidden;
    isolation: isolate;
}

.hero__glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.4), transparent 45%),
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.35), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.28), transparent 50%);
    filter: blur(40px);
    opacity: 0.9;
    z-index: -3;
}

.hero__noise {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'%3E%3C/feTurbulence%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: screen;
}

.hero__content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 4rem);
}

.hero__copy {
    max-width: min(540px, 100%);
    display: grid;
    gap: 1.75rem;
}

.hero__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.72);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 4.2vw, 4.4rem);
    line-height: 1.05;
    margin: 0;
    text-shadow: 0 18px 80px rgba(14, 165, 233, 0.35);
}

.hero__subtitle {
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    color: rgba(226, 232, 240, 0.7);
    margin: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.95rem 1.8rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid rgba(94, 234, 212, 0.6);
    outline-offset: 2px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--accent), rgba(59, 130, 246, 0.95));
    border-color: rgba(148, 163, 184, 0.15);
    color: #04101f;
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 70px rgba(14, 165, 233, 0.34);
}

.btn--ghost {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.68);
    color: rgba(226, 232, 240, 0.82);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.45);
}

.btn--ghost:hover {
    border-color: rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
}

.btn--compact {
    padding: 0.55rem 1.1rem;
    font-size: 0.75rem;
}

.btn--inline {
    margin-left: 0.4rem;
}

.hero__visual {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.hero__pulse {
    position: relative;
    width: clamp(200px, 20vw, 260px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.4), rgba(2, 6, 23, 0.9));
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1), var(--shadow-hero);
}

.hero__pulse-wave {
    position: absolute;
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.65), rgba(14, 165, 233, 0.05) 70%, transparent 85%);
    opacity: 0;
    transform: scale(0.75);
}

.hero__pulse.is-playing .hero__pulse-wave {
    animation: heroPulse 3.6s ease-in-out infinite;
}

.hero__pulse-wave--delay {
    animation-delay: 1.4s;
}

.hero__pulse-dot {
    width: 18%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.95), rgba(14, 165, 233, 0.75));
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.5), 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.hero__pulse.is-playing .hero__pulse-dot {
    animation: heroCore 2.8s ease-in-out infinite;
}

.hero__visual-note {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
}

.block {
    position: relative;
    padding: clamp(3rem, 10vw, 6rem) 0;
}

.block__grid {
    display: grid;
    gap: clamp(1.8rem, 4vw, 3rem);
}

.block__grid--center {
    align-items: center;
}

.block__heading {
    max-width: min(520px, 100%);
    display: grid;
    gap: 1.1rem;
}

.block__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
}

.block__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.1;
    margin: 0;
}

.block__lead {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    color: rgba(226, 232, 240, 0.72);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1.6rem, 4vw, 2.4rem);
    margin-top: clamp(2rem, 5vw, 3.2rem);
}

.steps__card {
    padding: clamp(1.6rem, 4vw, 2.4rem);
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.68);
    box-shadow: 0 28px 80px rgba(3, 7, 18, 0.35);
    display: grid;
    gap: 1.2rem;
}

.steps__icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(6, 182, 212, 0.18));
    border: 1px solid rgba(94, 234, 212, 0.35);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15), 0 12px 40px rgba(14, 165, 233, 0.25);
    position: relative;
}

.steps__icon::after {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
}

.steps__icon--choose::after {
    box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.5), 0 0 16px rgba(94, 234, 212, 0.45);
}

.steps__icon--play::after {
    clip-path: polygon(30% 20%, 80% 50%, 30% 80%);
    background: rgba(94, 234, 212, 0.7);
}

.steps__icon--feel::after {
    background: radial-gradient(circle, rgba(94, 234, 212, 0.75), rgba(14, 165, 233, 0.2));
}

.steps__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
}

.steps__copy {
    margin: 0;
    color: rgba(226, 232, 240, 0.68);
    font-size: 1rem;
}

.block--resonance {
    background: linear-gradient(140deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.92));
}

.resonance__map {
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(6, 17, 31, 0.7);
    padding: clamp(1.6rem, 3vw, 2.4rem);
    box-shadow: 0 40px 120px rgba(2, 12, 32, 0.6);
}

#resonanceMap {
    width: 100%;
    height: auto;
    display: block;
}

.resonance__map-land {
    fill: rgba(30, 64, 175, 0.25);
    stroke: rgba(148, 163, 184, 0.18);
    stroke-width: 2;
}

.resonance__note {
    margin: 1.2rem 0 0;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.6);
}

.resonance__dot {
    fill: rgba(94, 234, 212, 0.85);
    filter: drop-shadow(0 0 6px rgba(94, 234, 212, 0.6));
}

.resonance__counter {
    display: inline-flex;
    align-items: baseline;
    gap: 1.2rem;
    margin-top: 1.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(94, 234, 212, 0.25);
    background: rgba(15, 23, 42, 0.55);
}

.resonance__label {
    font-size: 0.78rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
}

.resonance__value {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    letter-spacing: 0.16em;
}

.explorer,
.generator {
    display: grid;
    gap: clamp(1.8rem, 4vw, 2.6rem);
    margin-top: clamp(2rem, 5vw, 3.2rem);
}

.explorer__moods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(1rem, 2vw, 1.4rem);
}

.explorer__mood {
    position: relative;
    padding: 1.3rem 1.1rem;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.2);
    text-align: left;
    display: grid;
    gap: 0.45rem;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.explorer__mood:hover,
.explorer__mood.is-active {
    border-color: rgba(94, 234, 212, 0.4);
    transform: translateY(-2px);
}

.explorer__mood-label {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.explorer__mood-note {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.7);
}

.explorer__panel {
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(6, 17, 31, 0.78);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: 0 28px 100px rgba(3, 7, 18, 0.45);
    display: grid;
    gap: 1.2rem;
}

.explorer__status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.68);
}

.explorer__status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.45);
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.35);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.explorer__status-dot.is-active {
    background: rgba(94, 234, 212, 0.9);
    box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.15);
}

.explorer__control {
    display: grid;
    gap: 0.55rem;
}

.explorer__control label {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
}

.explorer__control-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0.8rem;
}

.explorer__control input[type="range"] {
    accent-color: var(--accent);
}

.explorer__control input[type="number"] {
    width: 88px;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.85);
    color: var(--white);
    font-size: 0.95rem;
}

.explorer__hz {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
}

.explorer__control--two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.explorer__control select,
.explorer__control input[type="range"] {
    width: 100%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    color: var(--white);
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
}

.explorer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.mix {
    display: grid;
    gap: clamp(1.8rem, 4vw, 3rem);
    margin-top: clamp(2.2rem, 6vw, 3.6rem);
}

.mix__composer {
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(6, 17, 31, 0.78);
    padding: clamp(1.8rem, 4vw, 2.8rem);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 1.6rem;
}

.mix__tone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
}

.mix__tone-list {
    display: grid;
    gap: 1rem;
}

.mix__tone-row {
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.78);
    padding: 1rem 1.1rem;
    display: grid;
    gap: 0.9rem;
}

.mix__tone-fields {
    display: grid;
    gap: 0.9rem;
}

.mix__tone-fields label {
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
    display: grid;
    gap: 0.5rem;
}

.mix__field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
}

.mix__freq-input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.9);
    color: var(--white);
    font-size: 0.95rem;
}

.mix__field span {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    color: rgba(148, 163, 184, 0.6);
}

.mix__waveform,
.mix__depth {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.9);
    color: var(--white);
    padding: 0.55rem 0.7rem;
}

.mix__depth {
    accent-color: var(--accent);
    height: 36px;
}

.mix__remove {
    justify-self: end;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(239, 68, 68, 0.16);
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mix__remove::before,
.mix__remove::after {
    content: "";
    position: absolute;
    inset: 13px;
    background: rgba(248, 250, 252, 0.7);
    border-radius: 2px;
}

.mix__remove::before {
    transform: rotate(45deg);
}

.mix__remove::after {
    transform: rotate(-45deg);
}

.mix__remove:hover {
    background: rgba(239, 68, 68, 0.25);
}

.mix__composer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: flex-end;
}

.mix__aside {
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.75);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    display: grid;
    gap: 1.8rem;
}

.mix__save input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.8);
    padding: 0.75rem 0.9rem;
    color: var(--white);
    font-size: 0.95rem;
}

.mix__save label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.65);
}

.mix__save-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.8rem 0 1rem;
}

#mixQrCanvas {
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.75rem;
    width: 180px;
    height: 180px;
}

.mix__saved h3,
.mix__gallery h3 {
    margin: 0 0 0.8rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.mix__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.mix__list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.95rem;
}

.mix__cards {
    display: grid;
    gap: 0.9rem;
}

.mix__status {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: rgba(94, 234, 212, 0.8);
    min-height: 1.2rem;
}

.mix__card {
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.82);
    padding: 1rem;
    display: grid;
    gap: 0.6rem;
}

.mix__card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    margin: 0;
}

.mix__card-tones {
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.7);
}

.mix__card button {
    justify-self: start;
}

.community-form {
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(6, 17, 31, 0.78);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    display: grid;
    gap: 0.9rem;
    box-shadow: var(--shadow-soft);
}

.community-form input {
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.8);
    color: var(--white);
    padding: 0.85rem 1rem;
    font-size: 1rem;
}

.community-form__note {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.7);
}

.community-form__status {
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: rgba(94, 234, 212, 0.82);
}

.transparency {
    border-radius: 36px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.78);
    padding: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.transparency__title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.transparency__copy {
    margin: 0;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: rgba(226, 232, 240, 0.72);
}

.cta {
    border-radius: 38px;
    border: 1px solid rgba(94, 234, 212, 0.25);
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.35), rgba(59, 130, 246, 0.22));
    padding: clamp(2rem, 6vw, 3.6rem);
    display: grid;
    gap: clamp(1.4rem, 4vw, 2.4rem);
    align-items: center;
}

.cta__visual {
    position: relative;
    height: clamp(160px, 25vw, 220px);
    border-radius: 24px;
    background: rgba(2, 6, 23, 0.65);
    overflow: hidden;
}

.cta__wave {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(94, 234, 212, 0.4), transparent 55%);
    opacity: 0.8;
    transform: scale(0.8);
    animation: ctaPulse 6s ease-in-out infinite;
}

.cta__wave--delay {
    animation-delay: 2.4s;
}

.cta__copy {
    display: grid;
    gap: 1.1rem;
}

.cta__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.footer {
    margin-top: auto;
    padding: 2.8rem 0 3.2rem;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.85);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

.footer__tagline {
    font-size: 0.82rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
}

.footer__nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__nav a {
    text-decoration: none;
    font-size: 0.9rem;
    color: rgba(226, 232, 240, 0.75);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.footer__nav a:hover {
    color: rgba(94, 234, 212, 0.85);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes heroPulse {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    40% {
        opacity: 0.6;
    }
    100% {
        transform: scale(1.75);
        opacity: 0;
    }
}

@keyframes heroCore {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
    }
    50% {
        transform: scale(1.12);
        box-shadow: 0 0 60px rgba(56, 189, 248, 0.65);
    }
}

@keyframes ctaPulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.35;
    }
    45% {
        transform: scale(1.4);
        opacity: 0.7;
    }
}

@media (min-width: 900px) {
    .generator {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }

    .mix {
        grid-template-columns: 1.2fr 0.9fr;
    }

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

@media (max-width: 720px) {
    .hero__content {
        justify-content: center;
        text-align: center;
    }

    .hero__visual {
        justify-items: center;
    }

    .btn {
        width: 100%;
    }

    .explorer__control-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .explorer__hz {
        justify-self: start;
    }

    .mix__tone-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .mix__composer-actions {
        justify-content: stretch;
    }

    .mix__composer-actions .btn {
        flex: 1;
    }

    .generator__visual {
        padding: 1.2rem;
    }

    .generator__history {
        max-height: none;
    }

    .generator__session-header,
    .generator__library-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .footer__inner {
        justify-content: center;
        text-align: center;
    }
}

