/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --fire: #E8641A;
    --earth: #D4952B;
    --light: #FFD240;
    --air: #30E868;
    --water: #2878C8;
    --void: #7030A0;

    --bg: #06080d;
    --bg-subtle: #12131a;
    --text: #E8E8EC;
    --text-muted: #8888A0;
    --text-dim: #55556A;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg) url('bg-texture.png') repeat;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}


/* === Main Content === */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

/* Subtle ambient glow behind content — single smooth fade, no hard stops */
main::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        ellipse at center,
        rgba(232, 100, 26, 0.04) 0%,
        rgba(232, 100, 26, 0.02) 30%,
        transparent 65%
    );
    pointer-events: none;
}

.content {
    text-align: center;
    max-width: 640px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* === Typography === */
.title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        var(--light) 15%,
        var(--fire) 25%,
        var(--air) 44%,
        var(--earth) 50%,
        var(--water) 63%,
        var(--void) 75%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

/* === Worldseed Seal === */
.seal-container {
    width: 100%;
    max-width: 480px;
    margin: 1.5rem auto 0.5rem;
    position: relative;
}

.seal {
    width: 100%;
    height: auto;
    display: block;
}

/* === Site Nav === */
.site-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 1.5rem;
}

.site-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.status {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

/* === Signup Form === */
.signup-form {
    margin-bottom: 2.5rem;
}

.form-group {
    display: flex;
    gap: 0;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease;
}

.form-group:focus-within {
    border-color: rgba(232, 100, 26, 0.4);
    box-shadow: 0 0 20px rgba(232, 100, 26, 0.08);
}

.form-group input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-subtle);
    border: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    min-width: 0;
}

.form-group input::placeholder {
    color: var(--text-dim);
}

.form-group button {
    padding: 14px 24px;
    background: var(--fire);
    border: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.form-group button:hover {
    background: #D4580F;
}

.form-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 12px;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.form-message.success {
    color: #6BC96B;
}

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

/* === Social Links === */
.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.socials a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.socials a svg {
    width: 18px;
    height: 18px;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 24px;
    color: var(--text-dim);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* === Responsive === */
@media (max-width: 600px) {
    main {
        padding: 30px 16px;
    }

    .seal-container {
        max-width: 360px;
    }

    .form-group {
        flex-direction: column;
        border-radius: 8px;
    }

    .form-group input {
        border-radius: 0;
        text-align: center;
    }

    .form-group button {
        padding: 14px;
    }

    .socials {
        gap: 14px;
    }

    .socials a {
        width: 38px;
        height: 38px;
    }

    .socials a svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .seal-container {
        max-width: 300px;
    }
}
