@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: dark;
    --bg: #172235;
    --bg-deep: #131d2d;
    --bg-start: #121c2d;
    --bg-end: #1b273b;
    --panel: rgba(34, 46, 66, 0.84);
    --panel-strong: rgba(34, 46, 66, 0.96);
    --panel-border: rgba(44, 58, 82, 0.85);
    --text: #d6d0c4;
    --muted: #a9a3b2;
    --text-strong: #f3ebdd;
    --soft: #b6abc8;
    --lilac: #a9c3d7;
    --gold: #d9bc75;
    --gold-deep: #d9bc75;
    --brand-text: #f3ebdd;
    --heading-text: #f3ebdd;
    --hero-accent: #d9bc75;
    --nav-text: #f3ebdd;
    --nav-hover: #ffffff;
    --surface: rgba(34, 46, 66, 0.66);
    --surface-strong: rgba(34, 46, 66, 0.84);
    --surface-border: rgba(44, 58, 82, 0.85);
    --secondary-bg: rgba(34, 46, 66, 0.82);
    --secondary-border: rgba(44, 58, 82, 1);
    --field-bg: rgba(23, 34, 53, 0.92);
    --field-border: rgba(44, 58, 82, 0.95);
    --button-primary: #6f8b6e;
    --button-primary-hover: #5f7458;
    --button-text: #ffffff;
    --hero-illustration-bg:
        radial-gradient(circle at 50% 30%, rgba(217, 188, 117, 0.14), transparent 16%),
        linear-gradient(180deg, rgba(34, 46, 66, 0.76), rgba(23, 34, 53, 0.88));
    --hero-panel-bg:
        linear-gradient(180deg, rgba(34, 46, 66, 0.97), rgba(23, 34, 53, 0.98)),
        radial-gradient(circle at 75% 16%, rgba(169, 195, 215, 0.12), transparent 18%);
    --auth-panel-bg:
        radial-gradient(circle at 18% 18%, rgba(182, 171, 200, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(34, 46, 66, 0.97), rgba(23, 34, 53, 0.98));
    --toggle-bg: rgba(34, 46, 66, 0.9);
    --toggle-border: rgba(44, 58, 82, 1);
    --toggle-thumb: linear-gradient(180deg, #d9bc75, #c9aa61);
    --toggle-icon: rgba(214, 208, 196, 0.74);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    font-family: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme='day'] {
    color-scheme: light;
    --bg: #f8f5ef;
    --bg-deep: #f0ebe2;
    --bg-start: #fbf8f3;
    --bg-end: #f3eee5;
    --panel: rgba(255, 253, 249, 0.9);
    --panel-strong: rgba(255, 253, 249, 0.97);
    --panel-border: rgba(231, 224, 212, 0.96);
    --text: #4f4a43;
    --muted: #7d756b;
    --text-strong: #2f2b26;
    --soft: #c8bdd9;
    --lilac: #a9c3d7;
    --gold: #d9bc75;
    --gold-deep: #d9bc75;
    --brand-text: #2f2b26;
    --heading-text: #2f2b26;
    --hero-accent: #d9bc75;
    --nav-text: #2f2b26;
    --nav-hover: #2f2b26;
    --surface: rgba(255, 253, 249, 0.82);
    --surface-strong: rgba(255, 253, 249, 0.94);
    --surface-border: rgba(231, 224, 212, 1);
    --secondary-bg: rgba(255, 253, 249, 0.95);
    --secondary-border: rgba(231, 224, 212, 1);
    --field-bg: rgba(255, 253, 249, 0.98);
    --field-border: rgba(231, 224, 212, 1);
    --button-primary: #7a9272;
    --button-primary-hover: #5f7458;
    --button-text: #ffffff;
    --hero-illustration-bg:
        radial-gradient(circle at 50% 30%, rgba(217, 188, 117, 0.16), transparent 18%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(248, 245, 239, 0.98));
    --hero-panel-bg:
        linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(248, 245, 239, 0.99)),
        radial-gradient(circle at 75% 16%, rgba(201, 189, 217, 0.16), transparent 18%);
    --auth-panel-bg:
        radial-gradient(circle at 18% 18%, rgba(231, 199, 181, 0.18), transparent 24%),
        linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(248, 245, 239, 0.99));
    --toggle-bg: rgba(255, 253, 249, 0.92);
    --toggle-border: rgba(231, 224, 212, 1);
    --toggle-thumb: linear-gradient(180deg, #7a9272, #5f7458);
    --toggle-icon: rgba(79, 74, 67, 0.74);
    --shadow: 0 24px 60px rgba(101, 75, 43, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 14%, rgba(182, 171, 200, 0.14), transparent 24%),
        radial-gradient(circle at 80% 18%, rgba(169, 195, 215, 0.12), transparent 20%),
        linear-gradient(180deg, var(--bg-start) 0%, var(--bg) 42%, var(--bg-end) 100%);
}

:root[data-theme='day'] body {
    background:
        radial-gradient(circle at 18% 14%, rgba(200, 189, 217, 0.16), transparent 24%),
        radial-gradient(circle at 80% 18%, rgba(169, 195, 215, 0.12), transparent 20%),
        linear-gradient(180deg, var(--bg-start) 0%, var(--bg) 42%, var(--bg-end) 100%);
}

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

.page-shell {
    width: min(1520px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 8px 0 28px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.theme-toggle:hover .theme-toggle-track,
.theme-toggle:focus-visible .theme-toggle-track {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.theme-toggle-track {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 124px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--toggle-border);
    background: var(--toggle-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.theme-toggle-thumb {
    position: absolute;
    top: 5px;
    left: 6px;
    width: 52px;
    height: calc(100% - 10px);
    border-radius: 999px;
    background: var(--toggle-thumb);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

:root[data-theme='day'] .theme-toggle-thumb {
    transform: translateX(58px);
}

.theme-toggle-icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    width: 46px;
    text-align: center;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--toggle-icon);
    opacity: 0.88;
    transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.theme-toggle-icon svg {
    display: block;
    width: 1.4rem;
    height: 1.4rem;
    overflow: visible;
}

.theme-toggle-icon svg circle,
.theme-toggle-icon svg path {
    vector-effect: non-scaling-stroke;
}

.theme-toggle-icon-sun svg {
    filter: drop-shadow(0 0 8px rgba(217, 188, 117, 0.18));
}

.theme-toggle-icon-sun svg circle,
.theme-toggle-icon-sun svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle-icon-moon svg {
    filter: drop-shadow(0 0 8px rgba(169, 195, 215, 0.16));
}

.theme-toggle-icon-moon svg path {
    fill: currentColor;
}

.theme-toggle-icon-moon svg circle {
    fill: currentColor;
    opacity: 0.9;
}

:root[data-theme='night'] .theme-toggle-icon-moon,
:root:not([data-theme='day']) .theme-toggle-icon-moon,
:root[data-theme='day'] .theme-toggle-icon-sun {
    color: var(--button-text);
    opacity: 1;
    transform: scale(1.08);
}

:root[data-theme='night'] .theme-toggle-icon-sun,
:root:not([data-theme='day']) .theme-toggle-icon-sun {
    color: var(--gold);
}

:root[data-theme='day'] .theme-toggle-icon-moon {
    color: var(--heading-text);
}

.theme-toggle:hover .theme-toggle-icon-sun,
.theme-toggle:focus-visible .theme-toggle-icon-sun {
    transform: rotate(-8deg) scale(1.08);
}

.theme-toggle:hover .theme-toggle-icon-moon,
.theme-toggle:focus-visible .theme-toggle-icon-moon {
    transform: rotate(8deg) scale(1.08);
}

.theme-toggle:hover .theme-toggle-thumb,
.theme-toggle:focus-visible .theme-toggle-thumb {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(167, 183, 231, 0.2);
    border-radius: 28px;
    background: var(--hero-panel-bg);
    box-shadow: var(--shadow);
}

.hero-panel::before,
.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto;
    pointer-events: none;
}

.hero-panel::before {
    top: 90px;
    right: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(167, 183, 231, 0.14);
    box-shadow: inset 0 0 0 1px rgba(167, 183, 231, 0.05);
}

.hero-panel::after {
    left: -4%;
    right: -4%;
    bottom: -30px;
    height: 160px;
    background:
        radial-gradient(80% 80% at 50% 0%, rgba(46, 52, 72, 0.4), transparent 72%),
        linear-gradient(180deg, transparent 0%, rgba(9, 12, 18, 0.75) 100%);
    clip-path: polygon(0 55%, 12% 44%, 23% 52%, 35% 40%, 46% 48%, 57% 38%, 69% 53%, 80% 44%, 90% 52%, 100% 45%, 100% 100%, 0 100%);
}

.topbar,
.hero-grid,
.feature-band,
.story-steps,
.closing-banner {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 30px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin-right: -4px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.brand-name {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--brand-text);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 32px;
    color: var(--nav-text);
}

.nav-link {
    position: relative;
    padding: 8px 0;
    font-size: 0.95rem;
    transition: color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--nav-hover);
}

.nav-link.is-active {
    color: var(--gold);
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 6px;
    height: 6px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(249, 217, 152, 0.08);
}

.topbar-actions {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    color: var(--button-text);
    background: linear-gradient(180deg, var(--button-primary), var(--button-primary));
    box-shadow: 0 10px 24px rgba(95, 116, 88, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: linear-gradient(180deg, var(--button-primary-hover), var(--button-primary-hover));
}

.button-secondary {
    border-color: var(--secondary-border);
    background: var(--secondary-bg);
    color: var(--text-strong);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    gap: 18px;
    align-items: start;
    padding: 20px 48px 30px;
}

.hero-grid::before,
.hero-grid::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.hero-grid::before {
    top: 22px;
    right: 120px;
    width: 660px;
    height: 240px;
    background:
        radial-gradient(circle at 10% 70%, rgba(217, 188, 117, 0.95) 0 2px, transparent 2.6px),
        radial-gradient(circle at 18% 38%, rgba(255, 242, 202, 0.9) 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 26% 14%, rgba(217, 188, 117, 0.9) 0 3px, transparent 3.8px),
        radial-gradient(circle at 36% 58%, rgba(255, 242, 202, 0.86) 0 1.5px, transparent 2.1px),
        radial-gradient(circle at 46% 24%, rgba(217, 188, 117, 0.86) 0 2.2px, transparent 2.9px),
        radial-gradient(circle at 58% 8%, rgba(255, 242, 202, 0.92) 0 1.8px, transparent 2.5px),
        radial-gradient(circle at 66% 42%, rgba(217, 188, 117, 0.82) 0 1.6px, transparent 2.2px),
        radial-gradient(circle at 76% 18%, rgba(255, 242, 202, 0.82) 0 2.4px, transparent 3.2px),
        radial-gradient(circle at 88% 54%, rgba(217, 188, 117, 0.78) 0 1.5px, transparent 2.1px),
        radial-gradient(circle at 94% 26%, rgba(255, 242, 202, 0.8) 0 1.8px, transparent 2.4px);
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(217, 188, 117, 0.22));
}

.hero-grid::after {
    top: 42px;
    left: 260px;
    width: 520px;
    height: 180px;
    background:
        radial-gradient(circle at 14% 48%, rgba(217, 188, 117, 0.28) 0 9px, transparent 14px),
        radial-gradient(circle at 36% 22%, rgba(255, 242, 202, 0.2) 0 10px, transparent 15px),
        radial-gradient(circle at 58% 62%, rgba(217, 188, 117, 0.22) 0 8px, transparent 13px),
        radial-gradient(circle at 82% 28%, rgba(255, 242, 202, 0.18) 0 12px, transparent 18px);
    opacity: 0.75;
    filter: blur(7px);
}

.hero-copy {
    max-width: 530px;
    padding: 0 0 32px 8px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 18px;
    font-size: 0.88rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--soft);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(4.15rem, 7.2vw, 6.6rem);
    line-height: 0.88;
    letter-spacing: -0.08em;
    color: var(--heading-text);
}

.hero-copy h1 span {
    position: relative;
    display: inline-block;
    padding-right: 0.06em;
    background: linear-gradient(180deg, #fff6da 0%, var(--gold) 38%, var(--hero-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 18px rgba(217, 188, 117, 0.16);
}

.hero-copy h1 span::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 6%;
    bottom: 0.08em;
    height: 0.32em;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(217, 188, 117, 0.28) 0%, rgba(217, 188, 117, 0.12) 42%, transparent 76%);
    filter: blur(10px);
    z-index: -1;
    pointer-events: none;
}

:root[data-theme='day'] .hero-copy h1 span {
    background: linear-gradient(180deg, #fffdf3 0%, #ead8a2 34%, var(--gold) 70%, #c8a25d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 20px rgba(217, 188, 117, 0.14);
}

:root[data-theme='day'] .hero-copy h1 span::after {
    background: radial-gradient(circle, rgba(217, 188, 117, 0.22) 0%, rgba(217, 188, 117, 0.1) 44%, transparent 76%);
}

.lead {
    max-width: 28rem;
    margin: 24px 0 0;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-strong);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.play-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid currentColor;
    font-size: 0.75rem;
    opacity: 0.92;
}

.hero-illustration {
    position: relative;
    min-height: 430px;
    margin-top: -30px;
    overflow: visible;
    background: transparent;
    z-index: 1;
}

.hero-illustration::after {
    content: "";
    position: absolute;
    right: 58px;
    bottom: 96px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 228, 164, 0.34) 0%, rgba(255, 228, 164, 0.18) 34%, rgba(255, 228, 164, 0.06) 58%, transparent 76%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

.hero-illustration-glow,
.hero-illustration-art {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 720px);
    height: auto;
    transform: translateX(-50%);
    display: block;
    z-index: 1;
}

.hero-illustration-glow {
    opacity: 0.95;
    transform: translateX(-50%) scale(1.04);
    filter:
        sepia(0.42)
        saturate(1.15)
        hue-rotate(-8deg)
        brightness(0.82)
        blur(34px)
        drop-shadow(0 24px 46px rgba(92, 69, 45, 0.16));
}

.hero-illustration-art {
    filter:
        drop-shadow(0 0 10px rgba(102, 77, 52, 0.24))
        drop-shadow(0 3px 0 rgba(72, 52, 34, 0.28))
        drop-shadow(0 8px 0 rgba(58, 42, 28, 0.24))
        drop-shadow(0 18px 34px rgba(43, 33, 22, 0.12));
}

.feature-band,
.story-steps,
.closing-banner {
    padding: 28px 48px 12px;
}

.feature-band {
    padding-top: 12px;
}

.section-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.eyebrow-center {
    margin-bottom: 8px;
    color: var(--heading-text);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 18px 0 12px;
}

.feature-card {
    text-align: center;
    padding: 20px 18px 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--surface-border);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fdc58a;
    font-size: 1.65rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.feature-icon svg {
    width: 2.3rem;
    height: 2.3rem;
    display: block;
}

.feature-icon-illustrated {
    width: 132px;
    height: 100px;
    margin-bottom: 6px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.feature-icon-illustrated img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-card h2,
.step-copy h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--text-strong);
}

.feature-card p,
.step-copy p,
.closing-banner p {
    margin: 10px 0 0;
    line-height: 1.6;
    color: var(--muted);
}

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

.step-card {
    padding: 18px 18px 20px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, var(--panel-strong), var(--surface));
    border: 1px solid var(--surface-border);
}

.step-illustration {
    position: relative;
    height: 150px;
    margin-bottom: 16px;
}

.step-illustration::before,
.step-illustration::after {
    content: "";
    position: absolute;
}

.step-illustration-create::before {
    left: 12px;
    bottom: 20px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #eee4d7 0 32px, transparent 34px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.step-illustration-create::after {
    right: 22px;
    top: 26px;
    width: 84px;
    height: 52px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(253, 197, 138, 0.24), rgba(253, 197, 138, 0.08));
    clip-path: polygon(50% 0, 100% 38%, 70% 100%, 30% 100%, 0 38%);
}

.step-illustration-listen::before {
    left: 26px;
    bottom: 12px;
    width: 88px;
    height: 76px;
    border-radius: 50% 50% 40% 40%;
    background: linear-gradient(180deg, #eee4d7, #d9cbbd);
    box-shadow: inset 0 -8px 0 rgba(211, 190, 167, 0.28);
}

.step-illustration-listen::after {
    right: 26px;
    top: 18px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(253, 197, 138, 0.18), transparent 62%),
        radial-gradient(circle at 50% 50%, transparent 34px, rgba(253, 197, 138, 0.7) 34px 38px, transparent 38px);
}

.step-illustration-dream::before {
    left: 18px;
    bottom: 24px;
    width: 112px;
    height: 58px;
    border-radius: 50px;
    background:
        radial-gradient(circle at 26% 40%, #eee4d7 0 17px, transparent 18px),
        radial-gradient(circle at 58% 36%, #eee4d7 0 19px, transparent 20px),
        radial-gradient(circle at 82% 50%, #f3e5c9 0 11px, transparent 12px),
        linear-gradient(180deg, rgba(63, 78, 101, 0.75), rgba(36, 42, 58, 0.95));
}

.step-illustration-dream::after {
    right: 30px;
    top: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f8d08a;
    box-shadow:
        -34px 16px 0 0 #f8d08a,
        -18px 42px 0 0 #f8d08a,
        -56px 34px 0 0 rgba(203, 181, 232, 0.7);
}

.closing-banner {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 210px;
    gap: 18px;
    align-items: center;
    margin: 18px 48px 0;
    padding: 18px 22px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
}

.closing-badge {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #fdc58a;
    font-size: 1.6rem;
}

.closing-banner p {
    margin-top: 0;
    font-size: 1.05rem;
    color: var(--text-strong);
}

.closing-art {
    height: 72px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 18% 52%, rgba(253, 197, 138, 0.45) 0 9px, transparent 10px),
        radial-gradient(circle at 56% 48%, rgba(167, 183, 231, 0.24) 0 14px, transparent 15px),
        radial-gradient(circle at 80% 36%, rgba(203, 181, 232, 0.2) 0 8px, transparent 9px),
        linear-gradient(180deg, rgba(46, 52, 72, 0.82), rgba(28, 33, 46, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.auth-panel {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 24px;
    padding: 24px;
    border-radius: 32px;
    border: 1px solid rgba(167, 183, 231, 0.14);
    background: var(--auth-panel-bg);
    box-shadow: var(--shadow);
}

.auth-copy {
    padding: 22px 18px 22px 10px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.auth-copy .theme-toggle {
    margin-bottom: 28px;
}

.auth-brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    margin-right: -4px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.auth-brand-name {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.045em;
    color: var(--brand-text);
}

.auth-copy h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(3.2rem, 5.6vw, 5.4rem);
    line-height: 0.93;
    letter-spacing: -0.07em;
    color: var(--heading-text);
}

.auth-lead {
    max-width: 28rem;
    margin: 20px 0 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--muted);
}

.auth-form {
    display: grid;
    align-content: center;
}

.auth-card {
    padding: 28px;
    border-radius: 28px;
    background: var(--surface-strong);
    border: 1px solid var(--surface-border);
}

.auth-card h2 {
    margin: 0 0 18px;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

.auth-error {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 132, 132, 0.12);
    border: 1px solid rgba(255, 132, 132, 0.22);
    color: #ffd6d6;
}

.auth-success {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(120, 214, 161, 0.12);
    border: 1px solid rgba(120, 214, 161, 0.22);
    color: #d7ffe6;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

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

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid var(--field-border);
    border-radius: 16px;
    background: var(--field-bg);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field input:focus {
    border-color: rgba(203, 181, 232, 0.62);
    box-shadow: 0 0 0 4px rgba(203, 181, 232, 0.12);
}

.auth-submit {
    width: 100%;
    margin-top: 10px;
}

.profile-panel {
    align-items: stretch;
}

.profile-card {
    display: grid;
    gap: 22px;
}

.avatar-section {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.avatar-current {
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid rgba(203, 181, 232, 0.38);
    background:
        radial-gradient(circle at 34% 24%, rgba(253, 197, 138, 0.24), transparent 38%),
        linear-gradient(145deg, rgba(126, 111, 183, 0.56), rgba(17, 23, 34, 0.9));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.avatar-current img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-current span {
    font-size: 2.7rem;
    font-weight: 700;
    color: #f6d99b;
}

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

.avatar-form h2 {
    margin-bottom: 8px;
}

.avatar-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.file-picker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--secondary-border);
    background: var(--secondary-bg);
    color: var(--text-strong);
    font-weight: 600;
    cursor: pointer;
}

.file-picker input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.avatar-cropper {
    position: relative;
    width: min(320px, 100%);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
}

.avatar-canvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
    touch-action: none;
}

.avatar-canvas:active {
    cursor: grabbing;
}

.avatar-mask {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 50%;
    box-shadow:
        0 0 0 999px rgba(10, 14, 22, 0.46),
        inset 0 0 0 2px rgba(249, 217, 152, 0.72);
}

.avatar-zoom {
    display: grid;
    gap: 8px;
    max-width: 320px;
}

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

.avatar-zoom input {
    accent-color: #cbb5e8;
}

.profile-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.profile-list div {
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
}

.profile-list dt {
    margin: 0 0 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(203, 181, 232, 0.82);
}

.profile-list dd {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-strong);
}

.profile-actions {
    margin: 0;
}

:root[data-theme='day'] .hero-panel {
    border-color: rgba(109, 90, 64, 0.16);
}

:root[data-theme='day'] .hero-panel::before {
    border-color: rgba(109, 90, 64, 0.12);
    box-shadow: inset 0 0 0 1px rgba(109, 90, 64, 0.04);
}

:root[data-theme='day'] .hero-panel::after {
    background:
        radial-gradient(80% 80% at 50% 0%, rgba(180, 151, 118, 0.22), transparent 72%),
        linear-gradient(180deg, transparent 0%, rgba(214, 194, 164, 0.42) 100%);
}

:root[data-theme='day'] .nav-link.is-active::after {
    box-shadow: 0 0 0 6px rgba(183, 116, 44, 0.1);
}

:root[data-theme='day'] .feature-icon,
:root[data-theme='day'] .closing-badge {
    background: rgba(95, 73, 53, 0.08);
    color: var(--hero-accent);
}

:root[data-theme='day'] .closing-art {
    background:
        radial-gradient(circle at 18% 52%, rgba(201, 138, 73, 0.42) 0 9px, transparent 10px),
        radial-gradient(circle at 56% 48%, rgba(168, 133, 109, 0.2) 0 14px, transparent 15px),
        radial-gradient(circle at 80% 36%, rgba(202, 165, 143, 0.18) 0 8px, transparent 9px),
        linear-gradient(180deg, rgba(251, 244, 233, 0.96), rgba(236, 223, 202, 0.98));
    box-shadow: inset 0 0 0 1px rgba(109, 90, 64, 0.08);
}

:root[data-theme='day'] .auth-panel {
    border-color: rgba(109, 90, 64, 0.14);
}

:root[data-theme='day'] .auth-error {
    background: rgba(197, 84, 76, 0.08);
    border-color: rgba(197, 84, 76, 0.16);
    color: #8f342d;
}

:root[data-theme='day'] .auth-success {
    background: rgba(88, 148, 92, 0.08);
    border-color: rgba(88, 148, 92, 0.16);
    color: #2d6237;
}

:root[data-theme='day'] .avatar-mask {
    box-shadow:
        0 0 0 999px rgba(244, 235, 223, 0.54),
        inset 0 0 0 2px rgba(183, 116, 44, 0.72);
}

@media (max-width: 1180px) {
    .topbar {
        flex-wrap: wrap;
    }

    .nav {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        gap: 22px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .topbar-actions {
        align-items: flex-end;
    }

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

    .hero-grid::before {
        top: 8px;
        right: 40px;
        width: 460px;
        height: 180px;
        opacity: 0.82;
    }

    .hero-grid::after {
        top: 30px;
        left: auto;
        right: 120px;
        width: 320px;
        height: 120px;
        opacity: 0.6;
    }

    .hero-copy {
        max-width: none;
        padding-right: 0;
    }

    .hero-illustration {
        min-height: 380px;
        margin-top: 0;
    }

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

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

    .closing-banner {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .closing-art {
        grid-column: 1 / -1;
    }

    .auth-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .theme-toggle-track {
        min-width: 110px;
        gap: 8px;
        padding: 6px 10px;
    }

    .theme-toggle-thumb {
        width: 46px;
    }

    :root[data-theme='day'] .theme-toggle-thumb {
        transform: translateX(44px);
    }

    .theme-toggle-icon {
        width: 40px;
        font-size: 1.15rem;
    }

    .theme-toggle-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }

    .page-shell {
        width: min(100vw, calc(100vw - 16px));
        padding-top: 4px;
    }

    .hero-panel {
        border-radius: 22px;
    }

    .topbar,
    .hero-grid,
    .feature-band,
    .story-steps {
        padding-left: 18px;
        padding-right: 18px;
    }

    .brand-name {
        font-size: 1.55rem;
    }

    .hero-copy h1 {
        font-size: clamp(3rem, 15vw, 4.2rem);
    }

    .lead {
        font-size: 1rem;
    }

    .hero-illustration {
        min-height: 320px;
        margin-top: 6px;
    }

    .hero-grid::before {
        top: 20px;
        right: 8px;
        width: 250px;
        height: 112px;
        opacity: 0.68;
    }

    .hero-grid::after {
        display: none;
    }

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

    .closing-banner {
        margin: 18px 18px 0;
    }

    .auth-shell {
        padding: 14px 8px;
    }

    .auth-panel {
        padding: 14px;
        border-radius: 24px;
    }

    .auth-copy {
        padding: 10px 6px 18px;
    }

    .auth-copy h1 {
        max-width: none;
        font-size: clamp(2.7rem, 11vw, 4rem);
    }

    .avatar-section {
        grid-template-columns: 1fr;
    }
}
