/* ===================================
   HYPER BADDIES - PREMIUM DESIGN
   =================================== */

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

:root {
    /* Hyperliquid Color Palette */
    --cyan-primary: #00ffff;
    --cyan-dark: #00bfbf;
    --cyan-light: #5ffbf1;
    --blue-deep: #0a1929;
    --blue-mid: #0f2942;
    --blue-light: #1a3a52;
    --white: #ffffff;
    --gray-light: #e0f2f1;
    --gray-mid: #94a3b8;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050505;
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* ===================================
   ANIMATED BACKGROUND
   =================================== */

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background: #050505;
    will-change: transform;
    transform: translateZ(0);
}

.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 45%;
    animation: wave-rotate 30s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}

.wave-1 {
    top: -50%;
    left: -50%;
    animation-duration: 25s;
}

.wave-2 {
    top: -30%;
    left: -30%;
    animation-duration: 35s;
    animation-direction: reverse;
    background: radial-gradient(circle, rgba(0, 191, 191, 0.02) 0%, transparent 70%);
}

.wave-3 {
    top: -70%;
    left: -70%;
    animation-duration: 40s;
    background: radial-gradient(circle, rgba(95, 251, 241, 0.015) 0%, transparent 70%);
}

@keyframes wave-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   FLOATING ORBS
   =================================== */

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
    transform: translateZ(0);
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--cyan-primary), transparent);
    top: 10%;
    right: -10%;
    animation: float-1 20s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--cyan-light), transparent);
    bottom: 20%;
    left: -5%;
    animation: float-2 25s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--cyan-dark), transparent);
    top: 50%;
    left: 50%;
    animation: float-3 30s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-100px, 50px) scale(1.1); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, -60px) scale(0.9); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-60%, -40%) scale(1.15); }
}

/* ===================================
   MAIN WRAPPER
   =================================== */

.main-wrapper {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

/* ===================================
   LOGO SECTION
   =================================== */

.logo-section {
    text-align: center;
    animation: fade-in-down 1s ease-out;
    margin-bottom: var(--spacing-md);
}

.brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin: 0;
}

.brand-hyper {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.brand-baddies {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--cyan-light) 50%, var(--white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===================================
   HERO BANNER
   =================================== */

.hero-banner {
    width: 100%;
    max-width: 700px;
    animation: fade-in-up 1s ease-out 0.2s both;
}

.banner-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #050505;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-frame:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(0, 255, 255, 0.15),
        0 0 80px rgba(0, 255, 255, 0.08);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 24px;
    position: relative;
    z-index: 1;
    mix-blend-mode: lighten;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: transparent;
    pointer-events: none;
    z-index: 2;
}

/* ===================================
   TAGLINE SECTION
   =================================== */

.tagline-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    animation: fade-in 1s ease-out 0.4s both;
}

.tagline-text {
    font-size: 1.25rem;
    color: var(--gray-mid);
    font-weight: 400;
}

.hyperliquid-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15), rgba(0, 191, 191, 0.1));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hyperliquid-badge:hover {
    transform: scale(1.05);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.badge-icon {
    font-size: 1.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

.badge-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

/* ===================================
   SIGNUP CARD
   =================================== */

.signup-card {
    width: 100%;
    max-width: 500px;
    background: rgba(15, 41, 66, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 24px;
    padding: var(--spacing-lg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: fade-in-up 1s ease-out 0.6s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.signup-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 25px 70px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.card-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--white) 0%, var(--cyan-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--gray-mid);
    font-weight: 400;
}

/* ===================================
   FORM STYLES
   =================================== */

.signup-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    font-size: 1.25rem;
    color: var(--cyan-primary);
    z-index: 2;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    background: rgba(10, 25, 41, 0.6);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 16px;
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    font-weight: 400;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-mid);
}

.form-input:focus {
    border-color: var(--cyan-primary);
    background: rgba(10, 25, 41, 0.8);
    box-shadow: 
        0 0 0 4px rgba(0, 255, 255, 0.1),
        0 0 30px rgba(0, 255, 255, 0.2);
}

.form-input:focus + .input-icon {
    transform: scale(1.1);
}

.input-wrapper:focus-within .input-icon {
    transform: scale(1.1);
}

/* ===================================
   WALLET SECTION
   =================================== */

.wallet-section {
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.wallet-divider {
    text-align: center;
    position: relative;
    margin-bottom: 1.5rem;
}

.wallet-divider span {
    background: transparent;
    padding: 0 1rem;
    color: var(--gray-mid);
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.wallet-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.2), transparent);
}

.wallet-btn {
    width: 100%;
    padding: 1.125rem 1.75rem;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.08), rgba(0, 191, 255, 0.04));
    border: 1.5px solid rgba(0, 191, 255, 0.25);
    border-radius: 14px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.wallet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 191, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.wallet-btn:hover::before {
    left: 100%;
}

.wallet-btn:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.15), rgba(0, 191, 255, 0.08));
    border-color: rgba(0, 191, 255, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 191, 255, 0.25),
                0 0 0 1px rgba(0, 191, 255, 0.1);
}

.wallet-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 191, 255, 0.2);
}

.wallet-btn.connected {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.2), rgba(0, 191, 255, 0.12));
    border-color: rgba(0, 191, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.15);
}

.wallet-btn.connected:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.25), rgba(0, 191, 255, 0.15));
    border-color: rgba(0, 191, 255, 0.7);
}

.wallet-icon {
    font-size: 1.25rem;
}

.wallet-info {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 191, 255, 0.05);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--cyan-light);
    text-align: center;
    display: none;
}

.wallet-info.show {
    display: block;
    animation: fade-in 0.3s ease;
}

.wallet-info .wallet-address {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--cyan-primary);
}

.wallet-notice {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--gray-mid);
    text-align: center;
    line-height: 1.5;
}

.wallet-notice strong {
    color: var(--cyan-primary);
}

/* ===================================
   SUBMIT BUTTON
   =================================== */

.submit-btn {
    margin-top: var(--spacing-sm);
    padding: 1.375rem 2.25rem;
    background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--cyan-dark) 100%);
    border: none;
    border-radius: 16px;
    color: var(--blue-deep);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 10px 30px rgba(0, 255, 255, 0.25),
        0 0 0 1px rgba(0, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn:hover::after {
    opacity: 1;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 18px 45px rgba(0, 255, 255, 0.3),
        0 0 0 1px rgba(0, 255, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 20px rgba(0, 255, 255, 0.25),
        0 0 0 1px rgba(0, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ===================================
   FORM MESSAGE
   =================================== */

.form-message {
    min-height: 0;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.form-message.success {
    color: var(--cyan-light);
    animation: fade-in 0.3s ease;
}

.form-message.error {
    color: #ff6b6b;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ===================================
   PRIVACY NOTICE
   =================================== */

.privacy-notice {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.privacy-notice p {
    font-size: 0.8rem;
    color: var(--gray-mid);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.privacy-notice p:last-child {
    margin-bottom: 0;
}

.recaptcha-notice {
    font-size: 0.75rem !important;
    opacity: 0.8;
}

.privacy-notice a {
    color: var(--cyan-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-notice a:hover {
    color: var(--cyan-primary);
    text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    margin-top: auto;
    padding: var(--spacing-md) 0;
    animation: fade-in 1s ease-out 0.8s both;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    font-size: 0.95rem;
    color: var(--gray-mid);
}

.footer-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-year {
    font-weight: 600;
    color: var(--cyan-primary);
}

.footer-brand {
    font-weight: 600;
    color: var(--white);
}

.footer-dot {
    opacity: 0.5;
    font-size: 0.8rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray-mid);
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    max-width: 400px;
    line-height: 1.5;
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
}

.footer-link {
    color: var(--gray-mid);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cyan-primary);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--cyan-primary);
}

.footer-link:hover::after {
    width: 100%;
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .main-wrapper {
        padding: var(--spacing-sm);
        gap: var(--spacing-md);
    }

    .brand-hyper {
        font-size: 1.75rem;
    }

    .brand-baddies {
        font-size: 2.25rem;
    }

    .tagline-text {
        font-size: 1rem;
    }

    .badge-text {
        font-size: 1.25rem;
    }

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

    .signup-card {
        padding: var(--spacing-md);
    }

    .form-input {
        padding: 1rem 1rem 1rem 3rem;
        font-size: 0.95rem;
    }

    .input-icon {
        left: 1rem;
        font-size: 1.1rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .privacy-notice {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .privacy-notice p {
        font-size: 0.75rem;
    }

    .recaptcha-notice {
        font-size: 0.7rem !important;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .brand-hyper {
        font-size: 1.5rem;
    }

    .brand-baddies {
        font-size: 2rem;
    }

    .orb {
        display: none;
    }
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    .wave {
        animation-duration: 40s !important;
    }
    
    .wave-1 {
        animation-duration: 35s !important;
    }
    
    .wave-2 {
        animation-duration: 45s !important;
    }
    
    .wave-3 {
        animation-duration: 50s !important;
    }
}

/* ===================================
   COOKIE BANNER
   =================================== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 191, 255, 0.2);
    padding: 1.25rem 2rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cookie-link {
    color: var(--cyan-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: var(--cyan-light);
}

.cookie-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--cyan-primary), var(--cyan-dark));
    border: none;
    border-radius: 8px;
    color: var(--blue-deep);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.25);
}

.cookie-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1rem 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .cookie-text {
        font-size: 0.85rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }

    .cookie-btn {
        padding: 0.65rem 1.5rem;
        font-size: 0.85rem;
    }
}
