:root {
    color-scheme: light;
    --bg: #f4efe6;
    --bg-accent: #dde8f5;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --text: #1b2430;
    --muted: #5d6a7a;
    --line: rgba(27, 36, 48, 0.12);
    --primary: #0f766e;
    --primary-dark: #115e59;
    --secondary: #22304a;
    --shadow: 0 24px 70px rgba(27, 36, 48, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.15), transparent 34%),
        radial-gradient(circle at top right, rgba(34, 48, 74, 0.14), transparent 30%),
        linear-gradient(180deg, var(--bg), #f9f7f3 55%, var(--bg-accent));
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(27, 36, 48, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 36, 48, 0.03) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 80%);
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.status-banner {
    margin-bottom: 18px;
    padding: 14px 18px;
    border: 1px solid rgba(27, 36, 48, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--secondary);
    box-shadow: 0 10px 30px rgba(27, 36, 48, 0.08);
}

.hero,
.content-grid,
.profile-card {
    animation: float-in 700ms ease-out both;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
}

.hero-copy,
.hero-panel,
.panel {
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.hero-copy {
    border-radius: 32px;
    padding: 40px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 94, 89, 0.1);
    color: var(--primary-dark);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.75rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-copy p,
.panel p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 1.02rem;
}

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

.hero-panel {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 28px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 108px;
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--surface-strong);
    border: 1px solid rgba(27, 36, 48, 0.08);
}

.stat-label {
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stat-card strong {
    font-size: 1.4rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.panel {
    border-radius: 28px;
    padding: 28px;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--secondary);
}

input {
    width: 100%;
    border: 1px solid rgba(27, 36, 48, 0.14);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

input::placeholder {
    color: #8a96a6;
}

input:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.24);
}

.button-primary:hover {
    background: var(--primary-dark);
}

.button-secondary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 14px 30px rgba(34, 48, 74, 0.18);
}

.button-secondary:hover {
    background: #172033;
}

.button-ghost {
    background: transparent;
    border-color: rgba(27, 36, 48, 0.14);
    color: var(--secondary);
}

.full-width {
    width: 100%;
}

.profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.profile-output {
    margin: 18px 0 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(27, 36, 48, 0.1);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92rem;
    line-height: 1.55;
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .hero,
    .content-grid,
    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-copy,
    .panel,
    .hero-panel {
        padding: 24px;
        border-radius: 24px;
    }
}

@media (max-width: 560px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 20px;
    }

    h1 {
        font-size: 2.75rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }
}
