:root {
    color-scheme: dark;
    --bg: #050713;
    --bg-soft: #090d1c;
    --surface: rgba(13, 18, 38, .78);
    --surface-strong: #10162b;
    --surface-light: rgba(255, 255, 255, .065);
    --line: rgba(174, 190, 255, .14);
    --line-strong: rgba(174, 190, 255, .24);
    --text: #f7f8ff;
    --muted: #aeb8da;
    --muted-strong: #cbd2ea;
    --gold: #f5bd55;
    --gold-light: #ffe59a;
    --gold-dark: #d88726;
    --violet: #7486ff;
    --violet-light: #aab4ff;
    --success: #77e2ad;
    --danger: #ff8f9f;
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 32px;
    --shadow-soft: 0 18px 55px rgba(0, 0, 0, .28);
    --shadow-strong: 0 34px 110px rgba(0, 0, 0, .58);
    --header-height: 82px;
    --content-width: 1240px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 50% 15%, rgba(76, 95, 213, .13), transparent 29%),
        radial-gradient(circle at 10% 42%, rgba(92, 111, 255, .09), transparent 28%),
        linear-gradient(180deg, #070a18 0%, var(--bg) 55%, #03040a 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.chat-open {
    overflow: hidden;
}

button,
textarea,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    border: 0;
}

svg {
    display: block;
}

::selection {
    color: #211400;
    background: var(--gold-light);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    padding: 11px 15px;
    border-radius: 12px;
    color: #181000;
    background: var(--gold-light);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

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

.page-noise {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 100;
    width: min(calc(100% - 32px), var(--content-width));
    min-height: 66px;
    margin-top: 16px;
    padding: 10px 12px 10px 16px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    border: 1px solid rgba(176, 192, 255, .12);
    border-radius: 22px;
    background: rgba(8, 12, 27, .68);
    box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    transform: translateX(-50%);
}

.brand {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(245, 189, 85, .2);
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(245, 189, 85, .15), rgba(116, 134, 255, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.brand-mark svg {
    width: 29px;
    height: 29px;
    overflow: visible;
}

.brand-mark path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 4.5;
    stroke-linecap: round;
}

.brand-mark circle {
    fill: var(--gold-light);
    stroke: #201300;
    stroke-width: 1.5;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: .96rem;
    letter-spacing: -.02em;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    position: relative;
    color: var(--muted-strong);
    font-size: .86rem;
    font-weight: 600;
    transition: color .2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .22s ease;
}

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

.main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-cta {
    justify-self: end;
    min-height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, .055);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.header-cta:hover {
    border-color: rgba(245, 189, 85, .25);
    background: rgba(245, 189, 85, .08);
    transform: translateY(-1px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(119, 226, 173, .09), 0 0 16px rgba(119, 226, 173, .55);
}

.hero {
    position: relative;
    min-height: 100svh;
    padding: 142px max(24px, calc((100vw - var(--content-width)) / 2)) 92px;
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr);
    align-items: center;
    gap: clamp(28px, 4vw, 72px);
    isolation: isolate;
    overflow: hidden;
}

.space-layer,
.nebula {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.space-layer {
    inset: 0;
    background-repeat: repeat;
}

.space-layer-one {
    opacity: .78;
    background-image:
        radial-gradient(circle at 10% 15%, rgba(255, 255, 255, .9) 0 1px, transparent 1.8px),
        radial-gradient(circle at 32% 75%, rgba(255, 255, 255, .82) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 66% 22%, rgba(255, 255, 255, .84) 0 1px, transparent 1.7px),
        radial-gradient(circle at 83% 64%, rgba(255, 255, 255, .9) 0 1.3px, transparent 1.9px),
        radial-gradient(circle at 95% 18%, rgba(255, 255, 255, .7) 0 1px, transparent 1.7px);
    background-size: 320px 280px, 420px 370px, 390px 330px, 460px 410px, 370px 320px;
    animation: spaceDrift 28s linear infinite;
}

.space-layer-two {
    opacity: .35;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(155, 174, 255, .9) 0 1px, transparent 1.6px),
        radial-gradient(circle at 70% 50%, rgba(255, 225, 154, .8) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 92% 82%, rgba(255, 255, 255, .72) 0 1px, transparent 1.7px);
    background-size: 520px 460px, 620px 540px, 470px 430px;
    animation: spaceDriftReverse 36s linear infinite;
}

.nebula {
    width: 620px;
    height: 620px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .12;
}

.nebula-one {
    top: 4%;
    right: -130px;
    background: #677cff;
}

.nebula-two {
    bottom: -290px;
    left: -280px;
    background: #4c60d4;
}

.hero-copy {
    position: relative;
    z-index: 3;
    max-width: 590px;
}

.eyebrow {
    width: max-content;
    max-width: 100%;
    margin-bottom: 22px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(119, 226, 173, .16);
    border-radius: 999px;
    color: #cdebdc;
    background: rgba(119, 226, 173, .055);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.eyebrow span {
    color: var(--success);
    font-size: .68rem;
}

.hero h1 {
    max-width: 740px;
    margin: 0;
    font-size: clamp(3.35rem, 6vw, 6.3rem);
    line-height: .9;
    letter-spacing: -.072em;
    text-wrap: balance;
}

.hero h1 span {
    display: inline-block;
    color: transparent;
    background: linear-gradient(110deg, var(--gold-light) 0%, var(--gold) 42%, #f2a63a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 8px 26px rgba(245, 189, 85, .12));
}

.hero-lead {
    max-width: 580px;
    margin: 28px 0 0;
    color: var(--muted-strong);
    font-size: clamp(1.04rem, 1.25vw, 1.18rem);
    line-height: 1.75;
}

.hero-actions {
    margin-top: 34px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
}

.primary-button,
.secondary-button {
    min-height: 54px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    cursor: pointer;
    border-radius: 16px;
    font-weight: 760;
    letter-spacing: -.01em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.primary-button {
    color: #221400;
    background: linear-gradient(180deg, var(--gold-light), var(--gold) 62%, #e49c32);
    box-shadow: 0 14px 34px rgba(218, 137, 31, .23), inset 0 1px 0 rgba(255, 255, 255, .45);
}

.primary-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(218, 137, 31, .31), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.primary-button:hover svg {
    transform: translateX(3px);
}

.secondary-button {
    border: 1px solid var(--line);
    color: var(--muted-strong);
    background: rgba(255, 255, 255, .035);
}

.secondary-button:hover {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-2px);
}

.benefit-list {
    margin: 38px 0 0;
    padding: 22px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .075);
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .79rem;
    font-weight: 650;
}

.benefit-list span {
    color: var(--gold);
    font-size: .64rem;
    letter-spacing: .08em;
}

.cosmic-stage {
    position: relative;
    min-height: 640px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.cosmic-stage::before {
    content: "";
    position: absolute;
    z-index: -3;
    width: min(90%, 670px);
    aspect-ratio: 1;
    border: 1px solid rgba(151, 169, 255, .08);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 48%, rgba(72, 91, 204, .19), transparent 56%),
        radial-gradient(circle at 50% 50%, rgba(245, 189, 85, .045), transparent 72%);
    box-shadow:
        inset 0 0 100px rgba(86, 104, 226, .07),
        0 0 150px rgba(39, 53, 140, .07);
}

.stage-orbit {
    position: absolute;
    z-index: -2;
    border: 1px solid rgba(149, 164, 238, .13);
    border-radius: 50%;
}

.stage-orbit::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-light);
    box-shadow: 0 0 18px rgba(245, 189, 85, .7);
}

.stage-orbit-one {
    width: 86%;
    height: 45%;
    transform: rotate(-14deg);
    animation: orbitSway 8s ease-in-out infinite;
}

.stage-orbit-one::after {
    top: 42%;
    right: -4px;
}

.stage-orbit-two {
    width: 58%;
    height: 82%;
    transform: rotate(31deg);
    animation: orbitSwayReverse 10s ease-in-out infinite;
}

.stage-orbit-two::after {
    bottom: 12%;
    left: 5%;
    width: 6px;
    height: 6px;
    background: var(--violet-light);
    box-shadow: 0 0 18px rgba(116, 134, 255, .8);
}

.character-wrap {
    position: relative;
    width: min(100%, 760px);
    animation: stageFloat 7s ease-in-out infinite;
}

.monesvol-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    filter: drop-shadow(0 35px 65px rgba(0, 0, 0, .42));
}

.halo {
    transform-origin: 450px 375px;
    animation: haloPulse 5s ease-in-out infinite;
}

.svg-orbits ellipse {
    fill: none;
    stroke: rgba(180, 192, 255, .1);
    stroke-width: 1.5;
    stroke-dasharray: 5 14;
    transform-origin: 450px 382px;
}

.svg-orbits ellipse:first-child {
    animation: svgOrbit 26s linear infinite;
}

.svg-orbits ellipse:last-child {
    animation: svgOrbitReverse 31s linear infinite;
}

.star {
    fill: #fff;
    transform-box: fill-box;
    transform-origin: center;
}

.star-a { animation: twinkle 3.2s ease-in-out infinite; }
.star-b { animation: twinkle 4.1s ease-in-out .5s infinite; }
.star-c { animation: twinkle 3.7s ease-in-out .9s infinite; }
.star-d { animation: twinkle 4.4s ease-in-out .25s infinite; }
.star-e { animation: twinkle 3.5s ease-in-out 1.1s infinite; }
.star-f { animation: twinkle 4.2s ease-in-out .65s infinite; }

.monesvol-core {
    transform-origin: 450px 390px;
    animation: creatureBreathe 6.5s ease-in-out infinite;
}

.stalk,
.noodle,
.smile,
.smile-shadow {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stalk {
    stroke: url(#stalkGradient);
    stroke-width: 20;
}

.stalk-shadow {
    stroke: rgba(70, 32, 8, .45);
    stroke-width: 27;
}

.noodle {
    stroke: url(#noodleGradient);
    stroke-width: 20;
    transform-box: fill-box;
    transform-origin: center;
}

.noodle-1,
.noodle-6,
.noodle-9,
.noodle-13,
.noodle-15 {
    animation: noodleWaveA 4.8s ease-in-out infinite;
}

.noodle-2,
.noodle-7,
.noodle-10,
.noodle-14,
.noodle-16 {
    animation: noodleWaveB 5.5s ease-in-out infinite;
}

.noodle-3,
.noodle-5,
.noodle-11,
.noodle-12 {
    animation: noodleWaveC 5.1s ease-in-out infinite;
}

.noodle-4,
.noodle-8 {
    animation: noodleWaveD 6.2s ease-in-out infinite;
}

.eye-stalk {
    transform-box: fill-box;
}

.eye-stalk-left {
    transform-origin: 80% 90%;
    animation: eyeBobLeft 4.4s ease-in-out infinite;
}

.eye-stalk-right {
    transform-origin: 20% 90%;
    animation: eyeBobRight 4.8s ease-in-out infinite;
}

.eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: blink 7.5s infinite;
}

.eye-white {
    fill: url(#eyeGradient);
    stroke: rgba(60, 38, 20, .28);
    stroke-width: 2;
}

.eye-pupil {
    fill: #12121a;
}

.eye-shine {
    fill: #fff;
}

.meatball {
    fill: url(#meatballGradient);
    transform-box: fill-box;
    transform-origin: center;
    animation: meatballPulse 5.7s ease-in-out infinite;
}

.meatballs .meatball:nth-child(2) {
    animation-delay: -.8s;
}

.meatball-shine {
    fill: rgba(255, 204, 156, .14);
    transform: rotate(-18deg);
}

.meatball-speckles circle {
    fill: rgba(29, 11, 7, .27);
}

.smile-shadow {
    stroke: rgba(89, 43, 12, .45);
    stroke-width: 21;
}

.smile {
    stroke: #f1b954;
    stroke-width: 12;
    animation: smileMove 6.5s ease-in-out infinite;
}

.cheek {
    fill: rgba(245, 143, 111, .35);
    filter: blur(1px);
    animation: cheekPulse 4s ease-in-out infinite;
}

.cheek-right {
    animation-delay: -.7s;
}

.astronaut {
    transform-box: fill-box;
    transform-origin: center;
}

.astro-head {
    fill: #f8f9ff;
    stroke: #aab4ff;
    stroke-width: 2;
}

.astro-body {
    fill: none;
    stroke: #f8f9ff;
    stroke-width: 7;
    stroke-linecap: round;
}

.astro-1 { animation: tinyOrbit 7.4s ease-in-out infinite; }
.astro-2 { animation: tinyOrbitReverse 8.2s ease-in-out .6s infinite; }
.astro-3 { animation: tinyOrbit 7.8s ease-in-out .2s infinite; }
.astro-4 { animation: tinyOrbitReverse 8.6s ease-in-out .9s infinite; }

.floating-note {
    position: absolute;
    z-index: 5;
    min-width: 174px;
    padding: 13px 15px;
    display: grid;
    grid-template-columns: 27px 1fr;
    column-gap: 10px;
    align-items: center;
    border: 1px solid rgba(171, 187, 255, .14);
    border-radius: 17px;
    background: rgba(13, 18, 37, .72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .055);
    backdrop-filter: blur(16px);
}

.floating-note > span {
    grid-row: 1 / 3;
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--gold);
    background: rgba(245, 189, 85, .1);
}

.floating-note strong,
.floating-note small {
    display: block;
}

.floating-note strong {
    font-size: .76rem;
}

.floating-note small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .66rem;
}

.floating-note-one {
    top: 18%;
    left: -1%;
    animation: noteFloat 6s ease-in-out infinite;
}

.floating-note-two {
    right: -1%;
    bottom: 20%;
    animation: noteFloatReverse 7s ease-in-out infinite;
}

.floating-note .mini-orb {
    position: relative;
    border: 1px solid rgba(116, 134, 255, .28);
    background: rgba(116, 134, 255, .11);
}

.mini-orb::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--violet-light);
    box-shadow: 0 0 12px rgba(116, 134, 255, .7);
}

.ritual-section {
    position: relative;
    z-index: 2;
    padding: 118px max(24px, calc((100vw - var(--content-width)) / 2));
    border-top: 1px solid rgba(255, 255, 255, .055);
    background:
        radial-gradient(circle at 50% 0%, rgba(87, 105, 227, .09), transparent 36%),
        rgba(5, 7, 16, .52);
}

.section-heading {
    max-width: 660px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-heading > span {
    color: var(--gold);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.section-heading h2,
.final-cta h2 {
    margin: 15px 0 0;
    font-size: clamp(2.35rem, 4vw, 4.2rem);
    line-height: .99;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.section-heading p {
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.ritual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ritual-card {
    position: relative;
    min-height: 280px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(160deg, rgba(18, 24, 49, .78), rgba(9, 13, 27, .54));
    box-shadow: var(--shadow-soft);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.ritual-card::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(116, 134, 255, .07);
    filter: blur(10px);
}

.ritual-card:hover {
    border-color: rgba(245, 189, 85, .2);
    background: linear-gradient(160deg, rgba(21, 28, 57, .86), rgba(10, 14, 29, .62));
    transform: translateY(-5px);
}

.ritual-card.featured {
    border-color: rgba(245, 189, 85, .17);
    background: linear-gradient(160deg, rgba(50, 41, 31, .62), rgba(14, 17, 31, .66));
}

.step-number {
    position: absolute;
    top: 23px;
    right: 25px;
    color: rgba(255, 255, 255, .26);
    font-size: .7rem;
    font-weight: 750;
    letter-spacing: .15em;
}

.step-icon {
    width: 152px;
    height: 152px;
    margin-bottom: auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 189, 85, .16);
    border-radius: 17px;
    color: var(--gold);
    background: rgba(245, 189, 85, .065);
    font-size: 6.1rem;
    font-weight: 800;
}

.ritual-card h3 {
    margin: 40px 0 10px;
    font-size: 1.3rem;
    letter-spacing: -.025em;
}

.ritual-card p {
    max-width: 300px;
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.65;
}

.final-cta {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 80px auto;
    padding: clamp(34px, 5vw, 60px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    overflow: hidden;
    border: 1px solid rgba(245, 189, 85, .14);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 86% 20%, rgba(245, 189, 85, .12), transparent 26%),
        radial-gradient(circle at 4% 90%, rgba(116, 134, 255, .14), transparent 35%),
        linear-gradient(140deg, rgba(19, 25, 50, .86), rgba(9, 13, 27, .86));
    box-shadow: var(--shadow-soft);
}

.final-cta .eyebrow {
    margin-bottom: 0;
}

.final-cta h2 {
    max-width: 780px;
    margin-top: 20px;
}

.final-cta .primary-button {
    flex: 0 0 auto;
}

.site-footer {
    width: min(calc(100% - 48px), var(--content-width));
    margin: 0 auto;
    padding: 26px 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: .78rem;
}

.footer-brand .brand-mark {
    width: 35px;
    height: 35px;
}

.footer-brand .brand-mark svg {
    width: 25px;
    height: 25px;
}

.chat-launcher {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 130;
    min-height: 54px;
    padding: 0 19px 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 229, 154, .35);
    border-radius: 18px;
    color: #211400;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .36), 0 10px 28px rgba(218, 137, 31, .22);
    font-size: .9rem;
    font-weight: 780;
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.chat-launcher:hover {
    transform: translateY(-3px);
    box-shadow: 0 23px 58px rgba(0, 0, 0, .42), 0 12px 34px rgba(218, 137, 31, .28);
}

.chat-launcher svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-launcher.is-hidden {
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px) scale(.94);
}

.launcher-pulse {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    border: 2px solid #080b17;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(119, 226, 173, .55);
    animation: launcherPulse 2.2s ease-out infinite;
}

.chat-backdrop {
    position: fixed;
    inset: 0;
    z-index: 139;
    pointer-events: none;
    opacity: 0;
    background: rgba(2, 4, 10, .55);
    backdrop-filter: blur(5px);
    transition: opacity .22s ease;
}

.chat-backdrop.is-visible {
    pointer-events: auto;
    opacity: 1;
}

.chat-container {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 140;
    width: min(440px, calc(100vw - 32px));
    height: min(690px, calc(100dvh - 44px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    border: 1px solid rgba(166, 182, 255, .18);
    border-radius: 28px;
    background: rgba(7, 10, 23, .94);
    box-shadow: var(--shadow-strong), inset 0 1px 0 rgba(255, 255, 255, .045);
    backdrop-filter: blur(24px) saturate(130%);
    -webkit-backdrop-filter: blur(24px) saturate(130%);
    transform: translateY(18px) scale(.975);
    transform-origin: bottom right;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.chat-container.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.chat-header {
    flex: 0 0 auto;
    min-height: 82px;
    padding: 15px 15px 14px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
    background:
        radial-gradient(circle at 10% 0%, rgba(116, 134, 255, .16), transparent 48%),
        rgba(255, 255, 255, .018);
}

.chat-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(245, 189, 85, .22);
    border-radius: 15px;
    background: radial-gradient(circle at 50% 50%, rgba(116, 134, 255, .23), rgba(245, 189, 85, .06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.chat-avatar svg {
    width: 40px;
    height: 40px;
    overflow: visible;
}

.chat-avatar path {
    fill: none;
    stroke: var(--gold);
    stroke-width: 4;
    stroke-linecap: round;
}

.chat-avatar circle:nth-of-type(-n+2) {
    fill: #fff;
    stroke: #21180b;
    stroke-width: 1.4;
}

.chat-avatar circle:nth-of-type(n+3) {
    fill: #71402b;
}

.chat-title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-title-row h2 {
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-identity p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .7rem;
}

.online-badge {
    padding: 4px 7px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(119, 226, 173, .12);
    border-radius: 999px;
    color: #bfe7d2;
    background: rgba(119, 226, 173, .055);
    font-size: .57rem;
    font-weight: 720;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.online-badge > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(119, 226, 173, .65);
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, .045);
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.icon-button:hover {
    border-color: rgba(255, 255, 255, .08);
    color: var(--text);
    background: rgba(255, 255, 255, .075);
}

.icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-statusbar {
    min-height: 38px;
    padding: 6px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    color: var(--muted);
    background: rgba(255, 255, 255, .016);
    font-size: .65rem;
}

#quotaText {
    min-width: 0;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.quota-meter {
    width: 62px;
    height: 4px;
    overflow: hidden;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
}

.quota-meter i {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--gold));
    transition: width .35s ease;
}

.chat-messages {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 17px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(169, 183, 255, .22) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(169, 183, 255, .2);
}

.message-row {
    width: 100%;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    animation: messageIn .24s ease-out both;
}

.message-row.user {
    justify-content: flex-end;
}

.message-row.bot,
.message-row.system {
    justify-content: flex-start;
}

.message-mini-avatar {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(245, 189, 85, .16);
    border-radius: 9px;
    color: var(--gold);
    background: rgba(245, 189, 85, .06);
    font-size: .72rem;
}

.message {
    max-width: min(84%, 330px);
    padding: 11px 13px 10px;
    border-radius: 17px;
    font-size: .88rem;
    line-height: 1.55;
    word-break: break-word;
    white-space: pre-wrap;
}

.message p {
    margin: 0;
}

.message-time {
    display: block;
    margin-top: 5px;
    opacity: .58;
    font-size: .58rem;
    line-height: 1;
}

.message-row.user .message {
    color: #201300;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    border-bottom-right-radius: 5px;
    box-shadow: 0 8px 20px rgba(218, 137, 31, .14);
}

.message-row.user .message-time {
    text-align: right;
}

.message-row.bot .message,
.message-row.system .message {
    border: 1px solid rgba(255, 255, 255, .065);
    color: #edf0ff;
    background: rgba(255, 255, 255, .052);
    border-bottom-left-radius: 5px;
}

.message-row.system .message {
    color: var(--muted-strong);
    background: rgba(116, 134, 255, .065);
}

.welcome-block {
    padding: 17px;
    border: 1px solid rgba(245, 189, 85, .11);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(245, 189, 85, .08), transparent 38%),
        rgba(255, 255, 255, .028);
    animation: messageIn .24s ease-out both;
}

.welcome-block .welcome-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 13px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--gold);
    background: rgba(245, 189, 85, .08);
}

.welcome-block h3 {
    margin: 0;
    font-size: .98rem;
    letter-spacing: -.02em;
}

.welcome-block p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.55;
}

.suggestion-label {
    margin: 2px 0 -4px;
    color: var(--muted);
    font-size: .66rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.suggestion-chip {
    min-height: 34px;
    padding: 7px 10px;
    cursor: pointer;
    border: 1px solid rgba(166, 182, 255, .12);
    border-radius: 11px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, .035);
    font-size: .7rem;
    line-height: 1.25;
    text-align: left;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.suggestion-chip:hover {
    border-color: rgba(245, 189, 85, .22);
    color: var(--text);
    background: rgba(245, 189, 85, .06);
}

.typing {
    display: none;
    min-height: 44px;
    padding: 0 17px 10px;
    align-items: center;
    gap: 8px;
}

.typing.is-visible {
    display: flex;
}

.typing-avatar {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(245, 189, 85, .15);
    border-radius: 9px;
    color: var(--gold);
    background: rgba(245, 189, 85, .06);
    font-size: .7rem;
}

.typing-bubble {
    height: 28px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 12px 12px 12px 4px;
    background: rgba(255, 255, 255, .045);
}

.typing-bubble span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--muted-strong);
    animation: typingDot 1.25s ease-in-out infinite;
}

.typing-bubble span:nth-child(2) {
    animation-delay: .14s;
}

.typing-bubble span:nth-child(3) {
    animation-delay: .28s;
}

.typing small {
    color: var(--muted);
    font-size: .62rem;
}

.chat-composer {
    flex: 0 0 auto;
    padding: 12px 14px max(13px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .065);
    background: rgba(7, 10, 22, .88);
}

.composer-box {
    min-height: 50px;
    padding: 7px 7px 7px 14px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border: 1px solid rgba(168, 183, 255, .13);
    border-radius: 17px;
    background: rgba(255, 255, 255, .045);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.composer-box:focus-within {
    border-color: rgba(245, 189, 85, .29);
    background: rgba(255, 255, 255, .06);
    box-shadow: 0 0 0 3px rgba(245, 189, 85, .055);
}

#userInput {
    width: 100%;
    min-height: 34px;
    max-height: 120px;
    padding: 7px 0 5px;
    overflow-y: auto;
    resize: none;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: .85rem;
    line-height: 1.45;
    scrollbar-width: thin;
}

#userInput::placeholder {
    color: #8692ba;
}

#userInput:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.send-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    cursor: pointer;
    border-radius: 12px;
    color: #211400;
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}

.send-button:hover:not(:disabled) {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.send-button:disabled {
    cursor: not-allowed;
    opacity: .28;
    filter: grayscale(.4);
}

.send-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.composer-meta {
    margin-top: 7px;
    padding: 0 3px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #707b9d;
    font-size: .57rem;
}

.composer-meta kbd {
    font-family: inherit;
    font-size: inherit;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 300;
    max-width: min(90vw, 430px);
    padding: 12px 16px;
    pointer-events: none;
    opacity: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    color: var(--text);
    background: rgba(12, 16, 31, .94);
    box-shadow: 0 16px 45px rgba(0, 0, 0, .38);
    font-size: .78rem;
    text-align: center;
    transform: translate(-50%, 12px);
    transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

@keyframes spaceDrift {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-18px, 12px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes spaceDriftReverse {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(16px, -14px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes stageFloat {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-.2deg); }
    50% { transform: translate3d(0, -14px, 0) rotate(.35deg); }
}

@keyframes creatureBreathe {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.008); }
}

@keyframes haloPulse {
    0%, 100% { opacity: .74; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.055); }
}

@keyframes svgOrbit {
    to { transform: rotate(360deg); }
}

@keyframes svgOrbitReverse {
    from { transform: rotate(62deg); }
    to { transform: rotate(-298deg); }
}

@keyframes twinkle {
    0%, 100% { opacity: .28; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

@keyframes noodleWaveA {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(1.8deg) translateY(-3px); }
}

@keyframes noodleWaveB {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(3px); }
}

@keyframes noodleWaveC {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(1.3deg) translateX(3px); }
}

@keyframes noodleWaveD {
    0%, 100% { transform: rotate(0deg) translateX(0); }
    50% { transform: rotate(-1.5deg) translateX(-3px); }
}

@keyframes eyeBobLeft {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-2.5deg) translateY(-3px); }
}

@keyframes eyeBobRight {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(2.6deg) translateY(-4px); }
}

@keyframes blink {
    0%, 42%, 45%, 74%, 77%, 100% { transform: scaleY(1); }
    43.2%, 44%, 75.2%, 76% { transform: scaleY(.08); }
}

@keyframes meatballPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.018); }
}

@keyframes smileMove {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

@keyframes cheekPulse {
    0%, 100% { opacity: .35; transform: scale(1); }
    50% { opacity: .7; transform: scale(1.15); }
}

@keyframes tinyOrbit {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(4deg); }
}

@keyframes tinyOrbitReverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(9px) rotate(-4deg); }
}

@keyframes orbitSway {
    0%, 100% { transform: rotate(-14deg) scale(1); }
    50% { transform: rotate(-10deg) scale(1.02); }
}

@keyframes orbitSwayReverse {
    0%, 100% { transform: rotate(31deg) scale(1); }
    50% { transform: rotate(27deg) scale(.985); }
}

@keyframes noteFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -9px, 0); }
}

@keyframes noteFloatReverse {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, 10px, 0); }
}

@keyframes launcherPulse {
    0% { box-shadow: 0 0 0 0 rgba(119, 226, 173, .55); }
    70%, 100% { box-shadow: 0 0 0 9px rgba(119, 226, 173, 0); }
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes typingDot {
    0%, 60%, 100% { opacity: .35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
        gap: 20px;
    }

    .cosmic-stage {
        min-height: 560px;
    }

    .floating-note-one {
        left: -3%;
    }

    .floating-note-two {
        right: -3%;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 72px;
    }

    .site-header {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 130px;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-copy {
        max-width: 720px;
        margin: 0 auto;
    }

    .eyebrow,
    .hero-actions,
    .benefit-list {
        margin-right: auto;
        margin-left: auto;
        justify-content: center;
    }

    .hero-lead {
        margin-right: auto;
        margin-left: auto;
    }

    .cosmic-stage {
        width: min(100%, 760px);
        min-height: 600px;
        margin: -10px auto 0;
    }

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

    .ritual-card {
        min-height: 225px;
    }

    .final-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 66px;
    }

    .site-header {
        width: calc(100% - 24px);
        min-height: 58px;
        margin-top: 12px;
        padding: 8px 9px 8px 11px;
        border-radius: 18px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
        border-radius: 11px;
    }

    .brand-mark svg {
        width: 25px;
        height: 25px;
    }

    .brand small {
        display: none;
    }

    .brand strong {
        font-size: .9rem;
    }

    .header-cta {
        min-height: 36px;
        padding: 0 12px;
        border-radius: 11px;
        font-size: .77rem;
    }

    .status-dot {
        width: 7px;
        height: 7px;
        box-shadow: 0 0 0 4px rgba(119, 226, 173, .08);
    }

    .hero {
        padding: 112px 18px 56px;
        gap: 8px;
    }

    .eyebrow {
        margin-bottom: 17px;
        padding: 8px 11px;
        font-size: .64rem;
    }

    .hero h1 {
        font-size: clamp(2.75rem, 14.7vw, 4rem);
        line-height: .93;
        letter-spacing: -.064em;
    }

    .hero-lead {
        margin-top: 22px;
        font-size: .96rem;
        line-height: 1.65;
    }

    .hero-actions {
        width: 100%;
        margin-top: 27px;
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        min-height: 52px;
    }

    .benefit-list {
        margin-top: 28px;
        padding-top: 18px;
        gap: 10px 15px;
    }

    .benefit-list li {
        font-size: .68rem;
    }

    .cosmic-stage {
        min-height: 430px;
        margin-top: 4px;
    }

    .cosmic-stage::before {
        width: 105%;
    }

    .character-wrap {
        width: 112%;
        margin-left: -6%;
    }

    .floating-note {
        display: none;
    }

    .stage-orbit-one {
        width: 104%;
    }

    .stage-orbit-two {
        width: 69%;
        height: 88%;
    }

    .ritual-section {
        padding: 82px 18px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h2,
    .final-cta h2 {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .ritual-card {
        min-height: 215px;
        padding: 23px;
        border-radius: 22px;
    }

    .final-cta {
        width: calc(100% - 36px);
        margin: 58px auto;
        padding: 28px 23px;
        border-radius: 25px;
    }

    .site-footer {
        width: calc(100% - 36px);
        padding-bottom: 94px;
        align-items: flex-start;
        flex-direction: column;
    }

    .chat-launcher {
        right: max(14px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        min-height: 50px;
        padding: 0 16px 0 14px;
        border-radius: 16px;
    }

    .chat-backdrop {
        display: none;
    }

    .chat-container {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        transform: translateY(100%);
        transform-origin: bottom center;
    }

    .chat-container.is-open {
        transform: translateY(0);
    }

    .chat-header {
        min-height: 74px;
        padding-top: max(13px, env(safe-area-inset-top));
    }

    .chat-statusbar {
        min-height: 32px;
    }

    .chat-messages {
        padding: 18px 14px 14px;
    }

    .message {
        max-width: 86%;
    }

    .chat-composer {
        padding-right: 11px;
        padding-left: 11px;
    }

    .composer-meta span:first-child {
        display: none;
    }

    .composer-meta {
        justify-content: flex-end;
    }
}

@media (max-width: 380px) {
    .header-cta .status-dot {
        display: none;
    }

    .hero h1 {
        font-size: 2.65rem;
    }

    .benefit-list {
        max-width: 280px;
    }

    .online-badge {
        display: none;
    }

    .chat-header-actions {
        gap: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

/* ===== Mónesvol Pro 3.6: personaje, páginas legales, contacto y cookies ===== */
.header-link {
    text-decoration: none;
}

.main-nav a[aria-current="page"] {
    color: var(--text);
}

.main-nav a[aria-current="page"]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.character-wrap {
    width: min(100%, 830px);
    animation: stageFloat 8.2s ease-in-out infinite;
}

.monesvol-svg {
    filter: drop-shadow(0 38px 80px rgba(0, 0, 0, .48));
}

.svg-orbits ellipse {
    stroke: rgba(200, 208, 255, .11);
}

.svg-orbits ellipse:nth-child(3) {
    animation: svgOrbit 22s linear infinite reverse;
}

.stalk,
.tentacle,
.smile,
.smile-shadow,
.astro-body {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stalk {
    stroke: url(#stalkMain);
    stroke-width: 22;
}

.stalk-shadow {
    fill: none;
    stroke: rgba(76, 37, 12, .36);
    stroke-width: 30;
    stroke-linecap: round;
}

.tentacle {
    stroke: url(#noodleMain);
    transform-box: fill-box;
    transform-origin: center;
}

.back-layer .tentacle {
    stroke-width: 19;
    opacity: .94;
}

.mid-layer .tentacle {
    stroke-width: 21;
}

.front-layer .tentacle {
    stroke-width: 23;
}

.arm-a, .arm-f, .arm-k, .arm-p, .arm-u, .arm-z { animation: armSwayA 6.3s ease-in-out infinite; }
.arm-b, .arm-g, .arm-l, .arm-q, .arm-v { animation: armSwayB 7.1s ease-in-out -.7s infinite; }
.arm-c, .arm-h, .arm-m, .arm-r, .arm-w { animation: armSwayC 6.7s ease-in-out -.2s infinite; }
.arm-d, .arm-i, .arm-n, .arm-s, .arm-x { animation: armSwayD 7.6s ease-in-out -.9s infinite; }
.arm-e, .arm-j, .arm-o, .arm-t, .arm-y { animation: armSwayE 5.9s ease-in-out -.4s infinite; }

.eye-stalk-left {
    transform-origin: 82% 92%;
    animation: eyeBobLeft 5.2s ease-in-out infinite;
}

.eye-stalk-right {
    transform-origin: 18% 92%;
    animation: eyeBobRight 5.6s ease-in-out -.5s infinite;
}

.eye {
    animation: blink 8.6s infinite;
}

.eye-white {
    fill: url(#eyeWhite);
    stroke: rgba(70, 44, 24, .3);
    stroke-width: 2.2;
}

.eye-pupil {
    fill: #111118;
}

.eye-shine {
    fill: #ffffff;
}

.meatball {
    fill: url(#meatballFill);
    transform-box: fill-box;
    transform-origin: center;
    animation: meatballPulse 6.4s ease-in-out infinite;
}

.meatball-shine {
    fill: rgba(255, 207, 158, .17);
    transform: rotate(-18deg);
}

.meatball-speckles circle {
    fill: rgba(32, 11, 6, .3);
}

.smile-shadow {
    stroke: rgba(87, 42, 12, .36);
    stroke-width: 22;
}

.smile {
    stroke: #f2bf60;
    stroke-width: 12;
    animation: smileMove 7.4s ease-in-out infinite;
}

.cheek {
    fill: rgba(246, 146, 113, .38);
    filter: blur(1px);
}

.astronaut {
    transform-box: fill-box;
    transform-origin: center;
}

.astro-head {
    fill: #fbfcff;
    stroke: #c8d1ff;
    stroke-width: 2;
}

.astro-body {
    stroke: #fbfcff;
    stroke-width: 7;
}

.astro-1 { animation: tinyOrbit 7.4s ease-in-out infinite; }
.astro-2 { animation: tinyOrbitReverse 8.1s ease-in-out .4s infinite; }
.astro-3 { animation: tinyOrbit 8.6s ease-in-out .7s infinite; }
.astro-4 { animation: tinyOrbitReverse 9.2s ease-in-out .2s infinite; }
.astro-5 { animation: tinyOrbit 7.8s ease-in-out .3s infinite; }
.astro-6 { animation: tinyOrbitReverse 8.4s ease-in-out .9s infinite; }

.site-footer {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
    gap: 26px;
}

.footer-main,
.footer-meta {
    display: grid;
    gap: 12px;
}

.footer-main p {
    max-width: 480px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-links a,
.footer-inline-button {
    color: var(--muted-strong);
    font-size: .82rem;
    font-weight: 600;
    background: none;
    padding: 0;
    cursor: pointer;
}

.footer-links a:hover,
.footer-inline-button:hover {
    color: var(--gold-light);
}

.footer-inline-button {
    appearance: none;
}

.footer-credits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    color: var(--muted);
    font-size: .78rem;
}

.footer-credits a {
    color: var(--gold-light);
}

.text-page {
    padding-top: calc(var(--header-height) + 42px);
}

.content-shell {
    width: min(calc(100% - 48px), 1080px);
    margin: 0 auto;
}

.page-hero {
    padding: 92px 0 32px;
}

.page-hero--small {
    padding-top: 120px;
}

.page-hero h1 {
    margin: 16px 0 0;
    font-size: clamp(2.3rem, 4vw, 4.5rem);
    line-height: .98;
    letter-spacing: -.05em;
    text-wrap: balance;
}

.page-hero p {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.04rem;
    line-height: 1.72;
}

.legal-stack,
.contact-layout {
    padding-bottom: 88px;
    display: grid;
    gap: 18px;
}

.text-card {
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(18, 24, 49, .76), rgba(8, 11, 24, .66));
    box-shadow: var(--shadow-soft);
}

.text-card h2 {
    margin: 0 0 16px;
    font-size: 1.55rem;
    letter-spacing: -.03em;
}

.text-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.text-card p,
.text-card li {
    color: var(--muted);
    line-height: 1.76;
}

.text-card ul {
    margin: 0;
    padding-left: 20px;
}

.text-card a {
    color: var(--gold-light);
}

.contact-layout {
    grid-template-columns: .9fr 1.1fr;
    align-items: start;
}

.contact-data {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.notice {
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: .94rem;
}

.notice ul {
    margin: 10px 0 0;
}

.notice-success {
    border: 1px solid rgba(119, 226, 173, .26);
    color: #dffff0;
    background: rgba(46, 118, 83, .18);
}

.notice-error {
    border: 1px solid rgba(255, 143, 159, .24);
    color: #ffe5e9;
    background: rgba(115, 37, 52, .18);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.field label {
    font-size: .9rem;
    font-weight: 650;
}

.field label span {
    color: var(--muted);
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid rgba(174, 190, 255, .18);
    border-radius: 16px;
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field textarea {
    resize: vertical;
    min-height: 180px;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(245, 189, 85, .5);
    box-shadow: 0 0 0 4px rgba(245, 189, 85, .08);
    background: rgba(255, 255, 255, .06);
}

.field-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-actions {
    display: grid;
    gap: 14px;
}

.form-disclaimer {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
}

.recaptcha-wrap {
    min-height: 78px;
}

.cookie-banner {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 180;
    width: min(calc(100% - 32px), 560px);
    padding: 18px;
    display: grid;
    gap: 16px;
    border: 1px solid rgba(174, 190, 255, .18);
    border-radius: 24px;
    background: rgba(9, 13, 27, .92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    backdrop-filter: blur(18px);
}

.cookie-banner__text strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
}

.cookie-banner__text p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-button.secondary-button,
.cookie-button.primary-button {
    min-height: 44px;
    padding-inline: 18px;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 190;
    display: none;
}

.cookie-modal.is-visible {
    display: block;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 19, .72);
    backdrop-filter: blur(6px);
}

.cookie-modal__panel {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), 720px);
    margin: min(11vh, 80px) auto;
    padding: 26px;
    border: 1px solid rgba(174, 190, 255, .18);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(19, 24, 49, .96), rgba(8, 11, 24, .94));
    box-shadow: 0 24px 80px rgba(0, 0, 0, .48);
}

.cookie-modal__header,
.cookie-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cookie-modal__header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.cookie-modal__body {
    margin: 24px 0;
    display: grid;
    gap: 16px;
}

.cookie-option {
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: start;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: rgba(255, 255, 255, .03);
}

.cookie-option h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.cookie-option p {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.6;
}

.switch {
    position: relative;
    width: 54px;
    height: 32px;
    flex: 0 0 auto;
}

.switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    transition: background .2s ease;
}

.switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}

.switch input:checked + span {
    background: rgba(245, 189, 85, .55);
}

.switch input:checked + span::after {
    transform: translateX(22px);
}

body.cookie-modal-open {
    overflow: hidden;
}

@keyframes armSwayA {
    0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
    50% { transform: rotate(1.6deg) translate3d(4px, -4px, 0); }
}

@keyframes armSwayB {
    0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
    50% { transform: rotate(-2deg) translate3d(-5px, 4px, 0); }
}

@keyframes armSwayC {
    0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
    50% { transform: rotate(1.3deg) translate3d(3px, 6px, 0); }
}

@keyframes armSwayD {
    0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
    50% { transform: rotate(-1.4deg) translate3d(-4px, -3px, 0); }
}

@keyframes armSwayE {
    0%, 100% { transform: rotate(0deg) translate3d(0, 0, 0); }
    50% { transform: rotate(2deg) translate3d(5px, 1px, 0); }
}

@media (max-width: 960px) {
    .site-footer,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .cookie-modal__header,
    .cookie-modal__footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 720px) {
    .page-hero--small {
        padding-top: 96px;
    }

    .content-shell {
        width: min(calc(100% - 28px), 1080px);
    }

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

    .cookie-banner {
        right: 14px;
        bottom: 14px;
        width: calc(100% - 28px);
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .cookie-button {
        width: 100%;
        justify-content: center;
    }

    .cookie-option {
        grid-template-columns: 1fr;
    }
}

/* El atributo hidden debe imponerse sobre el display:grid del banner. */
.cookie-banner[hidden] {
    display: none !important;
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions .header-cta {
    justify-self: auto;
    white-space: nowrap;
}

.language-switcher {
    height: 42px;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
    border: 1px solid rgba(174, 190, 255, .14);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .055),
        0 8px 24px rgba(0, 0, 0, .12);
}

.language-switcher a {
    min-width: 34px;
    height: 32px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .06em;
    transition:
        color .2s ease,
        background .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.language-switcher a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, .065);
}

.language-switcher a.is-active {
    color: #241600;
    background:
        linear-gradient(
            180deg,
            var(--gold-light),
            var(--gold)
        );
    box-shadow:
        0 5px 14px rgba(216, 135, 38, .2),
        inset 0 1px 0 rgba(255, 255, 255, .5);
}

.language-switcher a:not(.is-active):active {
    transform: scale(.95);
}

@media (max-width: 640px) {
    .header-actions {
        gap: 7px;
    }

    .language-switcher {
        height: 36px;
        padding: 3px;
        border-radius: 11px;
    }

    .language-switcher a {
        min-width: 29px;
        height: 28px;
        padding: 0 7px;
        border-radius: 8px;
        font-size: .63rem;
    }
}

@media (max-width: 380px) {
    .header-actions {
        gap: 5px;
    }

    .language-switcher a {
        min-width: 27px;
        padding: 0 5px;
    }

    .header-cta {
        padding-right: 10px;
        padding-left: 10px;
    }
}