:root {
    color-scheme: dark;
    --bg-dark-1: #090b11;
    --bg-dark-2: #151528;
    --bg-dark-3: #231934;
    --surface-color: rgba(19, 23, 39, 0.72);
    --surface-border: rgba(249, 214, 231, 0.15);
    --text-color: #f4f5fb;
    --muted-text: #c1c6d6;
    --accent-color: #f9d6e7;
    --accent-strong: #2d0f1e;
    --max-width: min(92vw, 960px);
    --radius-xl: 1.75rem;
    --shadow-soft: 0 18px 55px rgba(5, 6, 12, 0.45);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background: radial-gradient(120% 120% at 15% 15%, rgba(152, 83, 255, 0.1) 0%, transparent 45%),
        radial-gradient(110% 110% at 85% 20%, rgba(255, 90, 196, 0.12) 0%, transparent 50%),
        linear-gradient(130deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 45%, var(--bg-dark-3) 100%);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: stretch;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.app-shell {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
    min-height: 100vh;
}

.hero {
    width: var(--max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.glass-panel {
    width: 100%;
    padding: clamp(2rem, 6vw, 4rem);
    border-radius: var(--radius-xl);
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.muted {
    color: var(--muted-text);
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(249, 214, 231, 0.95) 0%, rgba(236, 166, 205, 0.9) 100%);
    color: var(--accent-strong);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(244, 177, 211, 0.3);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(244, 177, 211, 0.38);
}

/* Disabled buttons: greyed out and static */
.button[disabled],
.button:disabled,
.button[aria-disabled="true"] {
    background: rgba(249, 214, 231, 0.18);
    border-color: rgba(249, 214, 231, 0.22);
    color: rgba(45, 15, 30, 0.55);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: 0.7;
}

.button[disabled]:hover,
.button[disabled]:focus,
.button:disabled:hover,
.button:disabled:focus,
.button[aria-disabled="true"]:hover,
.button[aria-disabled="true"]:focus {
    transform: none;
    box-shadow: none;
}

.button.button--ghost {
    background: transparent;
    border-color: rgba(249, 214, 231, 0.4);
    color: var(--accent-color);
    box-shadow: none;
}

/* Variant: no shadow / flat button */
.button.button--flat {
    box-shadow: none;
    background: rgba(249, 214, 231, 0.22);
    border-color: rgba(249, 214, 231, 0.35);
}
.button.button--flat:hover,
.button.button--flat:focus {
    transform: none;
    box-shadow: none;
    background: rgba(249, 214, 231, 0.3);
}

.button.button--ghost:hover,
.button.button--ghost:focus {
    background: rgba(249, 214, 231, 0.08);
    border-color: rgba(249, 214, 231, 0.6);
    box-shadow: 0 10px 26px rgba(244, 177, 211, 0.2);
}
