:root {
    color-scheme: dark;
    --welcome-ink: #21152f;
    --welcome-purple: #a986e8;
    --welcome-lilac: #d7c4ff;
    --welcome-muted: #bcb0c9;
    --welcome-paper: #fbf9ff;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: #fff;
    background: #21152f;
    font-family: 'Trebuchet MS', sans-serif;
}

a {
    color: inherit;
}

.welcome-shell {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    overflow: hidden;
    padding: 0 clamp(24px, 7.4vw, 112px);
    background:
        radial-gradient(ellipse at 83% 52%, rgba(107, 71, 152, 0.38), transparent 36%),
        radial-gradient(ellipse at 15% 88%, rgba(111, 61, 136, 0.22), transparent 34%),
        #21152f;
}

.welcome-shell::before {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.11) 0.7px, transparent 0.7px);
    background-size: 22px 22px;
    content: '';
    opacity: 0.16;
    pointer-events: none;
}

.welcome-header,
.welcome-hero,
.welcome-footer {
    position: relative;
    z-index: 1;
}

.welcome-header {
    display: flex;
    height: 102px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(239, 228, 255, 0.13);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.055em;
    text-decoration: none;
}

.brand-mark {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 1px solid rgba(228, 208, 255, 0.5);
    border-radius: 11px;
    background: rgba(184, 144, 239, 0.15);
    transform: rotate(-7deg);
}

.brand-mark span {
    width: 3px;
    border-radius: 4px;
    background: #d5b9ff;
}

.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 12px; }

.welcome-nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 43px);
    font-size: 0.91rem;
    font-weight: 600;
}

.sign-in-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: #e8e0f0;
    text-decoration: none;
    transition: color 160ms ease;
}

.sign-in-link:hover,
.sign-in-link:focus-visible {
    color: #c9aaff;
}

.nav-create-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 11px;
    padding: 0 17px;
    border: 1px solid rgba(226, 209, 250, 0.33);
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    transition: background 160ms ease, border-color 160ms ease;
}

.nav-create-link:hover,
.nav-create-link:focus-visible {
    border-color: #c6a3ff;
    background: rgba(182, 143, 239, 0.16);
}

.nav-create-link span {
    color: #d8baff;
    font-size: 1.05rem;
}

.welcome-hero {
    display: grid;
    width: min(100%, 1440px);
    flex: 1;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(38px, 6vw, 98px);
    margin: 0 auto;
    padding: clamp(56px, 8vh, 100px) 0 clamp(64px, 9vh, 112px);
}

.hero-copy {
    max-width: 580px;
    padding-bottom: 12px;
    animation: reveal-up 650ms ease both;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 25px;
    color: #d1c4df;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d5a4ff;
    box-shadow: 0 0 14px rgba(213, 164, 255, 0.85);
}

.hero-copy h1 {
    max-width: 610px;
    margin: 0;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(3.45rem, 6.15vw, 6.15rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 0.99;
}

.hero-copy h1 span {
    color: #c6a5f5;
}

.hero-description {
    max-width: 450px;
    margin: 27px 0 0;
    color: #c3b7ce;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.75;
}

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

.primary-action {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 29px;
    padding: 0 22px;
    background: #d4b8ff;
    color: #28173b;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
    background: #e0ccff;
    box-shadow: 0 10px 32px rgba(179, 139, 236, 0.22);
    transform: translateY(-2px);
}

.primary-action span {
    font-size: 1.15rem;
}

.secondary-action {
    padding: 12px 0;
    color: #e9def5;
    font-size: 0.91rem;
    font-weight: 600;
    text-decoration-color: rgba(233, 222, 245, 0.45);
    text-underline-offset: 5px;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    color: #d2b1ff;
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 60px;
    color: #a99bb6;
    font-size: 0.78rem;
    letter-spacing: 0.015em;
}

.note-line {
    width: 31px;
    height: 1px;
    background: #9676b8;
}

.visual-stage {
    position: relative;
    display: grid;
    min-height: 576px;
    padding-bottom: 56px;
    place-items: center;
    isolation: isolate;
    animation: reveal-up 760ms 100ms ease both;
}

.visual-stage::before {
    position: absolute;
    z-index: -1;
    width: min(76%, 450px);
    aspect-ratio: 1;
    border: 1px solid rgba(211, 179, 250, 0.2);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 106, 196, 0.19), rgba(150, 106, 196, 0.04) 57%, transparent 71%);
    content: '';
}

.stage-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(214, 192, 242, 0.11);
    border-radius: 50%;
    transform: rotate(-23deg);
}

.orbit-one {
    width: 100%;
    height: 48%;
}

.orbit-two {
    width: 80%;
    height: 91%;
    transform: rotate(38deg);
}

.stage-spark {
    position: absolute;
    z-index: 2;
    color: #d1a9ff;
    font-size: 1.4rem;
}

.spark-one { top: 12%; right: 13%; }
.spark-two { bottom: 12%; left: 10%; color: #f1c68d; font-size: 1rem; }

.schedule-card {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 30px 30px 24px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: var(--welcome-paper);
    box-shadow: 0 30px 90px rgba(12, 5, 21, 0.43), 0 3px 0 rgba(255, 255, 255, 0.12) inset;
    color: #2d2435;
    transform: rotate(1.3deg);
}

.schedule-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.card-overline {
    margin: 0 0 11px;
    color: #6f6379;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.schedule-topline h2 {
    margin: 0;
    color: #31233e;
    font-family: Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1.12;
}

.week-chip {
    padding: 7px 9px;
    border: 1px solid #e6dcee;
    color: #75617f;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    margin-top: 25px;
    padding: 12px 0 14px;
    border-top: 1px solid #ece6f0;
    border-bottom: 1px solid #ece6f0;
}

.week-strip div {
    display: flex;
    min-height: 55px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9b8da4;
}

.week-strip span {
    color: #756a80;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.week-strip b {
    color: #493a52;
    font-size: 0.8rem;
    font-weight: 600;
}

.week-strip .day-selected {
    background: #eee4fb;
    color: #674693;
}

.week-strip .day-selected b {
    color: #593b81;
}

.availability-heading {
    display: flex;
    justify-content: space-between;
    margin: 18px 0 11px;
    color: #756a80;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.availability-list {
    display: grid;
    gap: 12px;
}

.availability-row {
    display: grid;
    grid-template-columns: 23px 48px minmax(60px, 1fr) 7px;
    align-items: center;
    gap: 9px;
}

.member-avatar {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    color: #4d3d5b;
    font-size: 0.65rem;
    font-weight: 700;
}

.avatar-violet { background: #e5d9f4; }
.avatar-peach { background: #f5ded5; }
.avatar-blue { background: #dbe7f3; }
.avatar-gold { background: #f2e7ca; }

.member-name {
    color: #63586b;
    font-size: 0.69rem;
    font-weight: 600;
}

.availability-track {
    position: relative;
    height: 6px;
    overflow: hidden;
    background: #eeeaf1;
}

.slot {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #ae8bd1;
}

.slot-maya { left: 25%; width: 37%; }
.slot-jules { left: 41%; width: 43%; background: #d4a98d; }
.slot-alex { left: 18%; width: 51%; background: #9fb7cf; }
.slot-rory { left: 31%; width: 45%; background: #d5c184; }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #83aa83;
}

.rehearsal-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 13px 12px;
    background: #eee7f5;
}

.rehearsal-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    background: #d8c5ea;
    color: #583b72;
    font-size: 1.16rem;
}

.rehearsal-callout b,
.rehearsal-callout small {
    display: block;
}

.rehearsal-callout b {
    color: #43334f;
    font-size: 0.69rem;
}

.rehearsal-callout small {
    margin-top: 3px;
    color: #6f6379;
    font-size: 0.65rem;
}

.callout-arrow {
    margin-left: auto;
    color: #76578e;
    font-size: 0.95rem;
}

.floating-note {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: #fff;
    box-shadow: 0 15px 42px rgba(15, 7, 23, 0.3);
    color: #3b2d46;
}

.note-files {
    top: 17%;
    right: -1%;
    gap: 11px;
    padding: 11px 13px;
    transform: rotate(4deg);
}

.file-note-icon {
    display: grid;
    width: 31px;
    height: 35px;
    place-items: center;
    background: #eee3fa;
    color: #7957a0;
    font-size: 1rem;
}

.note-files b,
.note-files small {
    display: block;
}

.note-files b { font-size: 0.67rem; }
.note-files small { margin-top: 3px; color: #756a80; font-size: 0.65rem; }

.file-note-check {
    display: grid;
    width: 16px;
    height: 16px;
    place-items: center;
    border-radius: 50%;
    background: #b1d5b5;
    color: #315d38;
    font-size: 0.58rem;
}

.note-members {
    bottom: 15%;
    left: -3%;
    gap: 10px;
    padding: 10px 13px;
    color: #65576f;
    font-size: 0.61rem;
    font-weight: 600;
    transform: rotate(-3deg);
}

.mini-avatars {
    display: flex;
    padding-left: 4px;
}

.mini-avatars i {
    display: grid;
    width: 24px;
    height: 24px;
    margin-left: -4px;
    place-items: center;
    border: 2px solid white;
    border-radius: 50%;
    background: #e6d7f0;
    color: #614878;
    font-size: 0.48rem;
    font-style: normal;
}

.mini-avatars i:nth-child(2) { background: #f1ded4; }
.mini-avatars i:nth-child(3) { background: #dce7f0; }
.mini-avatars i:nth-child(4) { background: #ede4cc; }

.stage-caption {
    position: absolute;
    z-index: 2;
    right: 1%;
    bottom: 0;
    left: 1%;
    display: flex;
    justify-content: space-between;
    color: #aa98ba;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.welcome-footer {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(239, 228, 255, 0.13);
    color: #9f91ac;
    font-size: 0.72rem;
}

.footer-mark {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #c8b4de;
    font-family: Georgia, serif;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.footer-mark i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d6b5ff;
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
    .welcome-shell { padding-right: clamp(24px, 5vw, 56px); padding-left: clamp(24px, 5vw, 56px); }
    .welcome-hero { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 25px; }
    .hero-copy h1 { font-size: clamp(3.35rem, 7vw, 5.3rem); }
    .visual-stage { min-height: 526px; }
    .schedule-card { width: min(100%, 410px); padding: 26px 24px 20px; }
}

@media (max-width: 860px) {
    .welcome-header { height: 78px; }
    .welcome-nav { gap: 17px; font-size: 0.82rem; }
    .nav-create-link { min-height: 44px; gap: 7px; padding: 0 11px; }
    .welcome-hero { grid-template-columns: 1fr; gap: 35px; padding: 62px 0 45px; }
    .hero-copy { max-width: 560px; }
    .hero-copy h1 { max-width: 540px; font-size: clamp(3.4rem, 9vw, 5.2rem); }
    .hero-description { max-width: 500px; }
    .hero-note { margin-top: 35px; }
    .visual-stage { width: min(100%, 560px); min-height: 536px; justify-self: center; }
    .schedule-card { width: min(82%, 430px); }
    .floating-note { display: none; }
    .welcome-footer { min-height: 58px; }
}

@media (max-width: 480px) {
    .welcome-shell { padding-right: 20px; padding-left: 20px; }
    .brand { gap: 9px; font-size: 1.03rem; }
    .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
    .welcome-nav { gap: 13px; font-size: 0.76rem; }
    .nav-create-link { min-height: 44px; padding: 0 9px; }
    .welcome-hero { padding-top: 48px; }
    .eyebrow { margin-bottom: 20px; font-size: 0.63rem; }
    .hero-copy h1 { font-size: clamp(3.05rem, 14vw, 4.35rem); }
    .hero-description { margin-top: 21px; font-size: 0.96rem; }
    .hero-actions { gap: 18px; margin-top: 27px; }
    .primary-action { min-height: 52px; gap: 15px; padding: 0 15px; font-size: 0.84rem; }
    .visual-stage { min-height: 516px; }
    .schedule-card { width: 91%; padding: 22px 17px 17px; }
    .schedule-topline h2 { font-size: 1.48rem; }
    .week-strip { gap: 3px; margin-top: 20px; }
    .availability-row { grid-template-columns: 23px 41px minmax(45px, 1fr) 7px; gap: 7px; }
    .stage-caption { bottom: 0; font-size: 0.6rem; }
    .welcome-footer { flex-wrap: wrap; gap: 8px; padding: 12px 0; font-size: 0.64rem; }
    .footer-mark { font-size: 0.6rem; }
}

@media (max-width: 380px) {
    .brand { gap: 6px; font-size: 0.94rem; }
    .brand-mark { width: 27px; height: 27px; }
    .welcome-nav { gap: 8px; font-size: 0.72rem; }
    .nav-create-link { padding: 0 7px; }
    .nav-create-link span { display: none; }
    .stage-caption { font-size: 0.6rem; letter-spacing: 0.08em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
