:root {
    --color-bg: #0D0B1A;
    --color-surface: #1A1630;
    --color-purple-deep: #2D1B69;
    --color-purple-mid: #6B46C1;
    --color-purple-light: #9F7AEA;
    --color-gold: #D4A843;
    --color-gold-light: #F0C96A;
    --color-midnight: #0A0818;
    --color-text: #F7F3FF;
    --color-text-muted: #A89EC4;
    --color-border: #2D2550;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--color-midnight);
    color: var(--color-text);
    font-family: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Ambient animated background — slow gentle abstract light/wave */
.cove {
    position: relative;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 2rem;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(107, 70, 193, 0.35), transparent 60%),
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(45, 27, 105, 0.5), transparent 60%),
        var(--color-bg);
}

/* Slow drifting glow layer */
.cove::before {
    content: "";
    position: absolute;
    inset: -20%;
    z-index: -1;
    background:
        radial-gradient(circle at 30% 40%, rgba(159, 122, 234, 0.18), transparent 35%),
        radial-gradient(circle at 70% 60%, rgba(212, 168, 67, 0.10), transparent 40%);
    filter: blur(40px);
    animation: drift 24s ease-in-out infinite alternate;
}

/* Subtle horizontal wave */
.cove::after {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 0;
    height: 50%;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 100%, rgba(107, 70, 193, 0.25), transparent 70%);
    animation: wave 18s ease-in-out infinite alternate;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(4%, -3%) scale(1.05); }
}

@keyframes wave {
    0%   { transform: translateY(0) scaleX(1); opacity: 0.8; }
    100% { transform: translateY(-4%) scaleX(1.1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .cove::before, .cove::after { animation: none; }
    .wordmark .dot { animation: none; }
}

.stage {
    width: 100%;
    max-width: 560px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: center;
}

/* Wordmark */
.wordmark {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 300;
    font-size: clamp(3rem, 9vw, 5rem);
    letter-spacing: 0.06em;
    line-height: 1;
    color: var(--color-text);
    margin: 0;
}

.wordmark .dot {
    color: var(--color-gold);
    display: inline-block;
    margin: 0 0.15em;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { color: var(--color-gold); text-shadow: 0 0 12px rgba(212, 168, 67, 0.4); }
    50%      { color: var(--color-gold-light); text-shadow: 0 0 20px rgba(240, 201, 106, 0.7); }
}

.region-label {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 500;
}

.tagline {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    color: var(--color-text);
    margin: 0;
    opacity: 0.95;
}

.subcopy {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 38ch;
}

/* Form */
.subscribe {
    width: 100%;
    max-width: 440px;
    margin-top: 0.5rem;
}

.subscribe-row {
    display: flex;
    gap: 0.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.35rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-row:focus-within {
    border-color: var(--color-purple-light);
    box-shadow: 0 0 0 3px rgba(159, 122, 234, 0.18);
}

.subscribe-row input[type="email"] {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--color-text);
    font: inherit;
    padding: 0.6rem 1rem;
    min-width: 0;
}

.subscribe-row input[type="email"]::placeholder {
    color: var(--color-text-muted);
}

.subscribe-row button {
    background: var(--color-gold);
    color: var(--color-midnight);
    border: 0;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.subscribe-row button:hover { background: var(--color-gold-light); }
.subscribe-row button:active { transform: scale(0.98); }
.subscribe-row button:disabled { opacity: 0.6; cursor: progress; }

/* Honeypot — hidden from humans, visible to dumb bots */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.subscribe-status {
    margin-top: 0.85rem;
    min-height: 1.4em;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.subscribe-status.success { color: var(--color-gold-light); }
.subscribe-status.error { color: #ff8a8a; }

/* Region toggle link */
.region-toggle {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.region-toggle a {
    color: var(--color-purple-light);
    text-decoration: none;
    border-bottom: 1px dotted rgba(159, 122, 234, 0.5);
    padding-bottom: 1px;
}

.region-toggle a:hover {
    color: var(--color-gold-light);
    border-bottom-color: var(--color-gold-light);
}

/* Footer */
.cove-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem 1rem 2rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}
