:root {
    --bg-page: #f7f8f5;
    --bg-card: #ffffff;
    --text-primary: #1a1f1c;
    --text-muted: #5c665e;
    --accent: #2f5d50;
    --accent-hover: #244a40;
    --accent-soft: #e8f0ec;
    --border: #e2e8e4;
    --shadow: 0 25px 50px -12px rgba(26, 31, 28, 0.12);
    --deco-1: #a8c3b0;
    --deco-2: #c4a574;
    --radius-card: 32px;
    --radius-pill: 999px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-page);
    line-height: 1.6;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Page layout --- */
.page {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    overflow: hidden;
    background: radial-gradient(ellipse at top left, #f0f5f1 0%, var(--bg-page) 55%),
        radial-gradient(ellipse at bottom right, #f5f0e8 0%, var(--bg-page) 55%);
}

/* --- Decorative blobs --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.blob-1 {
    width: 320px;
    height: 320px;
    background: var(--deco-1);
    top: -80px;
    left: -60px;
    animation: float-1 18s ease-in-out infinite;
}

.blob-2 {
    width: 280px;
    height: 280px;
    background: var(--deco-2);
    bottom: -70px;
    right: -50px;
    animation: float-2 22s ease-in-out infinite;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: var(--deco-1);
    bottom: 10%;
    left: 15%;
    opacity: 0.3;
    animation: float-3 26s ease-in-out infinite;
}

@keyframes float-1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 40px) scale(1.1);
    }
}

@keyframes float-2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-25px, -35px) scale(1.08);
    }
}

@keyframes float-3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, -25px) scale(0.95);
    }
}

/* --- Card --- */
.card {
    position: relative;
    z-index: 1;
    max-width: 680px;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    padding: 56px 48px;
    text-align: center;
    animation: card-fade-in 0.7s ease-out;
}

@keyframes card-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Motif icon --- */
.motif {
    margin-bottom: 16px;
    opacity: 0.8;
}

/* --- Brand --- */
.brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 8px;
}

/* --- Eyebrow --- */
.eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 24px;
}

/* --- Headline --- */
.card h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 16px;
}

/* --- Lead & hint --- */
.lead {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hint {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Form --- */
.form-row {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

input[type="email"] {
    flex: 1;
    padding: 16px 24px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-page);
    border: 2px solid var(--border);
    border-radius: var(--radius-pill);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]::placeholder {
    color: #9aa39c;
}

input[type="email"]:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

button[type="submit"] {
    padding: 16px 32px;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    color: #ffffff;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

button[type="submit"]:hover:not(:disabled) {
    background: var(--accent-hover);
}

button[type="submit"]:active:not(:disabled) {
    transform: scale(0.97);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* --- Form message --- */
.form-message {
    margin-top: 16px;
    font-size: 0.9375rem;
    font-weight: 500;
}

.form-message.success {
    color: var(--accent);
}

.form-message.error {
    color: #c0392b;
}

.form-message.success::before {
    content: '✓ ';
    font-weight: 700;
}

/* --- Social --- */
.social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.social-link {
    color: #9aa39c;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .card {
        padding: 40px 24px;
    }

    .brand {
        font-size: 2.25rem;
    }

    .card h1 {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
    }

    button[type="submit"] {
        width: 100%;
    }
}