:root {
    --bg-color: #080808;
    --bg-secondary: #0f0f0f;
    --text-color: #f0f0f0;
    --text-muted: #666;
    --text-subtle: #444;
    --accent-color: #bfecac;
    --accent-hover: #a8d896;
    --accent-glow: rgba(191, 236, 172, 0.15);
    --accent-glow-sm: rgba(191, 236, 172, 0.08);
    --input-bg: rgba(255, 255, 255, 0.04);
    --input-border: rgba(255, 255, 255, 0.08);
    --input-border-focus: rgba(191, 236, 172, 0.4);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow-x: hidden;
}

/* Subtle background grid */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(191, 236, 172, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(191, 236, 172, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Radial glow behind content */
body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, var(--accent-glow-sm) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    padding: 48px 24px;
    animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Header ── */
header {
    margin-bottom: 52px;
    animation: fadeUp 0.7s 0.1s ease both;
}

header .logo {
    width: 80px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 20px var(--accent-glow));
}

header h1 {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    opacity: 0.7;
}

/* ── Main ── */
main {
    animation: fadeUp 0.7s 0.2s ease both;
}

.tagline {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Form Card ── */
.form-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.input-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.input-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    padding-left: 2px;
}

.input-wrapper input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.input-wrapper input::placeholder {
    color: var(--text-subtle);
}

.input-wrapper input:focus {
    border-color: var(--input-border-focus);
    background: rgba(191, 236, 172, 0.04);
    box-shadow: 0 0 0 3px rgba(191, 236, 172, 0.06);
}

.optional-tag {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.65rem;
    color: var(--text-subtle);
    font-weight: 500;
    pointer-events: none;
}

/* Push optional tag down to account for label */
.input-wrapper .optional-tag {
    top: calc(50% + 11px);
}

button[type="submit"] {
    width: 100%;
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    letter-spacing: 0.01em;
}

button[type="submit"]:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(191, 236, 172, 0.2);
}

button[type="submit"]:active {
    transform: translateY(0);
}

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

.form-note {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-subtle);
    line-height: 1.5;
}

/* ── Message ── */
.message {
    margin-top: 16px;
    font-size: 0.875rem;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 12px 16px;
    border-radius: 8px;
}

.message.show {
    display: block;
    opacity: 1;
}

.message.success {
    color: var(--accent-color);
    background: rgba(191, 236, 172, 0.08);
    border: 1px solid rgba(191, 236, 172, 0.2);
}

.message.error {
    color: #ff8080;
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.message.loading {
    color: var(--text-muted);
    background: var(--input-bg);
    border: 1px solid var(--input-border);
}

/* ── Footer ── */
footer {
    margin-top: 56px;
    animation: fadeUp 0.7s 0.3s ease both;
}

.social-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.social-icon {
    color: var(--text-subtle);
    text-decoration: none;
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.social-icon:hover {
    color: var(--accent-color);
    background: var(--accent-glow-sm);
}

footer p {
    font-size: 0.75rem;
    color: var(--text-subtle);
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .container {
        padding: 32px 16px;
    }

    .tagline {
        font-size: 2rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .form-card {
        padding: 20px 16px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}
