:root {
    --gold: #FFD700;
    --gold-light: #FFEB3B;
    --gold-dark: #D4AF37;
    --gold-accent: #FFC107;
    --white: #FFFFFF;
    --off-white: #F8F8F8;
    --text-dark: #0A0A0A;
    --text-gray: #666666;
    --shadow-gold: rgba(255, 215, 0, 0.25);
    --shadow-crisp: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background:
        radial-gradient(ellipse 120% 100% at 50% 50%, rgba(255, 215, 0, 0.04) 0%, transparent 70%),
        linear-gradient(135deg,
            #E8E8E8 0%,
            #F5F5F5 25%,
            #FAFAFA 40%,
            #FFFFFF 50%,
            #FAFAFA 60%,
            #F5F5F5 75%,
            #E8E8E8 100%);
    background-size: 100% 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    padding: 20px;
    position: relative;
    overflow: hidden;
    animation: backgroundBreath 12s ease-in-out infinite;
}

/* Subtle dot grid pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.06) 1.5px, transparent 0);
    background-size: 32px 32px;
    background-position: 0 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    animation: dotFade 10s ease-in-out infinite;
}

/* Bold triangle - top left */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 480px;
    height: 480px;
    background:
        radial-gradient(ellipse 80% 80% at 20% 20%, rgba(255, 215, 0, 0.25) 0%, transparent 60%),
        linear-gradient(135deg,
            rgba(212, 175, 55, 0.65) 0%,
            rgba(255, 215, 0, 0.5) 25%,
            rgba(255, 215, 0, 0.35) 45%,
            rgba(255, 215, 0, 0.2) 65%,
            transparent 100%);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    box-shadow:
        inset -40px -40px 80px rgba(255, 215, 0, 0.2),
        0 0 120px rgba(255, 215, 0, 0.15),
        0 0 60px rgba(212, 175, 55, 0.1);
    z-index: 0;
    animation: triangleGlow 8s ease-in-out infinite;
}

.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

/* Bold triangle - bottom right */
.background-pattern::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 480px;
    height: 480px;
    background:
        radial-gradient(ellipse 80% 80% at 80% 80%, rgba(255, 215, 0, 0.25) 0%, transparent 60%),
        linear-gradient(-45deg,
            rgba(212, 175, 55, 0.65) 0%,
            rgba(255, 215, 0, 0.5) 25%,
            rgba(255, 215, 0, 0.35) 45%,
            rgba(255, 215, 0, 0.2) 65%,
            transparent 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    box-shadow:
        inset 40px 40px 80px rgba(255, 215, 0, 0.2),
        0 0 120px rgba(255, 215, 0, 0.15),
        0 0 60px rgba(212, 175, 55, 0.1);
    animation: triangleGlow 8s ease-in-out 4s infinite;
}

.background-pattern::after {
    display: none;
}

.corner-accents {
    display: none;
}

footer::before,
footer::after {
    display: none;
}

.container::before {
    display: none;
}

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

/* Ambient glow behind card */
.container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center,
        rgba(255, 215, 0, 0.18) 0%,
        rgba(255, 215, 0, 0.1) 30%,
        rgba(255, 215, 0, 0.05) 50%,
        transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
    animation: cardGlow 6s ease-in-out infinite;
}

.content {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 80px 70px;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.3),
        0 20px 40px -12px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.9),
        0 0 0 5px rgba(255, 215, 0, 0.5),
        0 0 120px -10px rgba(255, 215, 0, 0.35),
        inset 0 2px 0 0 rgba(255, 255, 255, 1);
    animation: fadeIn 1s ease-out;
    border: 3px solid rgba(212, 175, 55, 0.7);
    position: relative;
}

.content::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 2px solid rgba(230, 230, 230, 1);
    border-radius: 18px;
    pointer-events: none;
}

.logo-section {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--shadow-gold) 0%, transparent 65%);
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

.title {
    font-size: 6.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 40%, var(--gold-light) 80%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -4px;
    animation: fadeInDown 1s ease-out;
    position: relative;
    margin-bottom: 0;
}

.subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.description {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-gray);
    margin-bottom: 50px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.signup-section {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.signup-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.3) 50%,
        transparent 100%);
    margin-bottom: 30px;
}

.cta-form {
    margin-top: 30px;
    margin-bottom: 0;
}

.disclaimer {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-gray);
    opacity: 0.65;
    margin-top: 16px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.4;
}

.hidden {
    display: none;
}

.cta {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

#email {
    flex: 1;
    padding: 22px 32px;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    background: var(--off-white);
    color: var(--text-dark);
    font-size: 1.05rem;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: all 0.2s ease-out;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.9);
}

#email::placeholder {
    color: #999;
    transition: color 0.2s ease;
}

#email:hover {
    border-color: rgba(0, 0, 0, 0.18);
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.9);
}

#email:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow:
        0 0 0 4px rgba(255, 215, 0, 0.15),
        0 4px 12px rgba(255, 215, 0, 0.12),
        inset 0 1px 2px 0 rgba(255, 255, 255, 1);
}

#email:focus::placeholder {
    color: #bbb;
}

#email:-webkit-autofill,
#email:-webkit-autofill:hover,
#email:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--off-white) inset;
    -webkit-text-fill-color: var(--text-dark);
    transition: background-color 5000s ease-in-out 0s;
}

#notify-btn {
    padding: 22px 48px;
    background: linear-gradient(to bottom,
        rgba(255, 235, 59, 0.15) 0%,
        rgba(255, 215, 0, 0.12) 100%);
    color: var(--gold-dark);
    border: 3px solid rgba(212, 175, 55, 0.6);
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow:
        0 3px 8px rgba(212, 175, 55, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

#notify-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(255, 235, 59, 0.2) 0%,
        rgba(255, 215, 0, 0.25) 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

#notify-btn:hover {
    border-color: var(--gold);
    background: linear-gradient(to bottom,
        rgba(255, 235, 59, 0.25) 0%,
        rgba(255, 215, 0, 0.2) 100%);
    box-shadow:
        0 0 0 4px rgba(255, 215, 0, 0.15),
        0 5px 14px rgba(212, 175, 55, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.9);
}

#notify-btn:hover::before {
    opacity: 1;
}

#notify-btn:active {
    background: linear-gradient(to bottom,
        rgba(255, 235, 59, 0.18) 0%,
        rgba(255, 215, 0, 0.15) 100%);
    box-shadow:
        0 0 0 4px rgba(255, 215, 0, 0.2),
        0 1px 4px rgba(212, 175, 55, 0.25),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: scale(0.98);
    transition: all 0.1s ease;
}

#notify-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
}

#notify-btn:disabled:hover {
    transform: scale(1);
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(to bottom, #FFFFFF 0%, #FEFEFE 100%);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 2px 0 rgba(255, 255, 255, 0.9);
}

#notify-btn:disabled:hover::before {
    opacity: 0;
}

#notify-btn span {
    position: relative;
    z-index: 1;
}

.message {
    min-height: 0;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.35s ease;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    text-align: center;
    transform: translateY(-5px);
    max-height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.message.show {
    opacity: 1;
    margin-top: 0;
    margin-bottom: 16px;
    padding: 12px 20px;
    transform: translateY(0);
    max-height: 100px;
}

.message.success {
    color: var(--gold-dark);
    background: rgba(255, 215, 0, 0.08);
}

.message.error {
    color: #C53030;
    background: rgba(229, 62, 62, 0.08);
}

.message.info {
    color: var(--text-gray);
    background: rgba(0, 0, 0, 0.04);
}

footer {
    margin-top: 50px;
    opacity: 0.6;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-gray);
    letter-spacing: 0.3px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes triangleGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes cardGlow {
    0%, 100% {
        opacity: 0.85;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

@keyframes dotFade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes backgroundBreath {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.02);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body::after {
        width: 340px;
        height: 340px;
    }

    .background-pattern::before {
        width: 340px;
        height: 340px;
    }

    .content {
        padding: 80px 50px;
    }

    .title {
        font-size: 4rem;
        letter-spacing: -2px;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .description {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    body::after {
        width: 260px;
        height: 260px;
    }

    .background-pattern::before {
        width: 260px;
        height: 260px;
    }

    .content {
        padding: 60px 35px;
    }

    .disclaimer {
        font-size: 0.75rem;
    }

    .title {
        font-size: 3rem;
        letter-spacing: -1.5px;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .description {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }

    .cta {
        flex-direction: column;
        gap: 14px;
        max-width: 100%;
    }

    #email,
    #notify-btn {
        width: 100%;
    }

    #notify-btn {
        justify-content: center;
    }
}
