:root {
    --bg: #07110d;
    --bg2: #0e1a15;
    --card: rgba(12, 20, 17, 0.82);
    --card-strong: rgba(16, 26, 22, 0.92);
    --line: rgba(201, 227, 195, 0.15);
    --text: #edf2e8;
    --muted: #b8c5b6;
    --accent: #94c973;
    --accent-2: #cdbb88;
    --danger: #d78282;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

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

body {
    background: linear-gradient(180deg, var(--bg), var(--bg2));
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
}

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

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 10, 8, 0.72);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
}

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

.user-pill {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 40px;
}

.hero-card,
.nav-card,
.auth-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 26px;
    margin-bottom: 22px;
}

.hero-card h1,
.nav-card h2,
.auth-card h1 {
    margin-top: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.nav-card {
    padding: 20px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.nav-card:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 201, 115, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.96rem;
    transition: all 0.18s ease;
    cursor: pointer;
}

.btn-primary {
    background: rgba(148, 201, 115, 0.14);
    border-color: rgba(148, 201, 115, 0.45);
    color: #eef8e8;
}

.btn-primary:hover {
    background: rgba(148, 201, 115, 0.22);
}

.btn-secondary,
.btn-subtle {
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
}

.btn-hidden {
    opacity: 0.18;
    background: rgba(255, 255, 255, 0.03);
    color: #cad4c3;
}

.btn-hidden:hover {
    opacity: 0.55;
}

.landing-body {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.landing-bg,
.landing-overlay {
    position: fixed;
    inset: 0;
}

.landing-bg {
    background-image: url('/assets/background.png');
    background-size: cover;
    background-position: center center;
    filter: brightness(0.62) saturate(0.95);
    transform: scale(1.02);
}

.landing-overlay {
    background:
        radial-gradient(circle at center, rgba(20, 39, 30, 0.10), rgba(3, 7, 6, 0.78)),
        linear-gradient(180deg, rgba(5, 10, 8, 0.28), rgba(5, 10, 8, 0.85));
}

.landing-stage {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    align-items: stretch;
    padding: 28px;
}

.scroll-column {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 56px);
}

.scroll-track {
    position: absolute;
    inset: 0;
    mask-image: linear-gradient(
        to top,
        transparent 0%,
        transparent 28%,
        rgba(0, 0, 0, 0.35) 30%,
        rgba(0, 0, 0, 0.75) 34%,
        black 40%,
        black 86%,
        rgba(0, 0, 0, 0.45) 90%,
        transparent 96%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to top,
        transparent 0%,
        transparent 28%,
        rgba(0, 0, 0, 0.35) 30%,
        rgba(0, 0, 0, 0.75) 34%,
        black 40%,
        black 86%,
        rgba(0, 0, 0, 0.45) 90%,
        transparent 96%,
        transparent 100%
    );
}

.scroll-text {
    position: absolute;
    left: 50%;
    width: min(72%, 980px);
    transform: translateX(-50%);
    bottom: -22%;
    text-align: center;
    color: rgba(244, 235, 213, 0.92);
    font-family: "Apple Chancery", "URW Chancery L", "Palatino Linotype", "Book Antiqua", "Lucida Calligraphy", cursive;
    font-size: clamp(2rem, 2.8vw, 3.5rem);
    line-height: 1.7;
    letter-spacing: 0.02em;
    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.45),
        0 0 18px rgba(0, 0, 0, 0.18);
    animation: storyScroll 85s linear infinite;
}

.scroll-text p {
    margin: 0 0 1.35em;
}

@keyframes storyScroll {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    100% {
        transform: translateX(-50%) translateY(-165%);
    }
}

.landing-ui {
    position: absolute;
    right: 28px;
    bottom: 34px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 18px;
}

.landing-footer-brand {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 3;
    width: min(92%, 900px);
    text-align: center;
    font-size: clamp(1.5rem, 2vw, 2.4rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 237, 215, 0.88);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.landing-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auth-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.auth-wrap {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    padding: 24px;
}

.auth-card label {
    display: block;
    margin-bottom: 16px;
}

.auth-card label span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.auth-card input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
}

.auth-card input:focus {
    border-color: rgba(148, 201, 115, 0.55);
    box-shadow: 0 0 0 3px rgba(148, 201, 115, 0.08);
}

.auth-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.alert-error {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(215, 130, 130, 0.12);
    border: 1px solid rgba(215, 130, 130, 0.35);
    color: #f0c1c1;
}

@media (max-width: 900px) {
    .landing-stage {
        grid-template-columns: 1fr;
    }

.landing-ui {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: 58px;
    transform: translateX(-50%);
    align-items: center;
}

.landing-actions {
    justify-content: center;
}

.landing-footer-brand {
    bottom: 16px;
    width: 94%;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    letter-spacing: 0.12em;
}



    .scroll-text {
        left: 4%;
        right: 6%;
        font-size: clamp(1.4rem, 5vw, 2.2rem);
    }
}