:root {
    --bg-dark: #050810;
    --bg-darker: #030508;
    --coral-bright: #ff4757;
    --coral-light: #ff6b7a;
    --cyan-glow: #00e5cc;
    --text-primary: #ffffff;
    --text-secondary: #a8a8a8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.stars::before,
.stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 
        100px 200px white,
        300px 100px white,
        500px 300px white,
        700px 150px white,
        200px 400px white,
        600px 350px white,
        150px 50px white,
        800px 250px white,
        400px 450px white,
        250px 150px rgba(255, 255, 255, 0.5),
        550px 200px rgba(255, 255, 255, 0.5),
        350px 350px rgba(255, 255, 255, 0.5),
        650px 100px rgba(0, 229, 204, 0.4),
        850px 400px rgba(0, 229, 204, 0.3),
        450px 250px rgba(255, 71, 87, 0.3);
    animation: twinkle 2s infinite alternate ease-in-out;
}

.stars::after {
    animation-delay: 1s;
    box-shadow: 
        200px 150px white,
        450px 50px white,
        600px 250px white,
        800px 350px white,
        150px 300px white,
        700px 450px white,
        250px 100px white,
        900px 200px white,
        350px 400px white,
        550px 150px rgba(255, 255, 255, 0.5),
        750px 300px rgba(255, 255, 255, 0.5),
        400px 200px rgba(255, 255, 255, 0.5),
        300px 350px rgba(0, 229, 204, 0.4),
        500px 450px rgba(255, 71, 87, 0.3);
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    25% { opacity: 0.8; }
    50% { opacity: 0.4; }
    75% { opacity: 1; }
    100% { opacity: 0.3; }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero {
    text-align: center;
    padding: 2rem 0;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.3));
    animation: float 3s ease-in-out infinite;
}

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

.claw-left,
.claw-right {
    animation: clawSnap 2s ease-in-out infinite;
}

.claw-left {
    transform-origin: 20px 50px;
}

.claw-right {
    transform-origin: 100px 50px;
    animation-delay: 1s;
}

@keyframes clawSnap {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-5deg); }
}

.antenna {
    animation: antennaWave 1.5s ease-in-out infinite;
}

@keyframes antennaWave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(3deg); }
}

.eye-glow {
    animation: eyePulse 2s ease-in-out infinite;
}

@keyframes eyePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.title-open {
    background: linear-gradient(135deg, var(--coral-bright) 0%, var(--coral-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background 0.3s ease;
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.cta-section {
    margin: 2.5rem 0;
}

.connect-button {
    background: linear-gradient(135deg, var(--coral-bright) 0%, var(--coral-light) 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 30px rgba(255, 71, 87, 0.3);
    font-family: inherit;
    position: relative;
}

.connect-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 71, 87, 0.4);
}

.connect-button:active {
    transform: translateY(0);
}

.walletconnect-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
}

.button-main-text {
    font-size: 1.05rem;
    font-weight: 600;
}

.button-verified {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    opacity: 0.95;
    font-weight: 500;
}

.verified-icon {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.button-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.cta-subtext {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan-glow) 0%, white 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-section {
    margin-top: 4rem;
}

.info-section h2 {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, border-color 0.2s;
}

.info-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 71, 87, 0.3);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.2s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-content h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.wallet-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.wallet-option:hover {
    border-color: var(--coral-bright);
    background: rgba(255, 71, 87, 0.05);
    transform: translateX(4px);
}

.wallet-option img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.disclaimer-modal {
    max-width: 550px;
}

.disclaimer-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.disclaimer-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.disclaimer-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--cyan-glow);
}

.disclaimer-content > p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.disclaimer-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.disclaimer-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.disclaimer-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cyan-glow);
    font-weight: bold;
}

.trading-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.control-group input[type="number"] {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.control-group input[type="number"]:focus {
    outline: none;
    border-color: var(--cyan-glow);
}

.control-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.control-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--cyan-glow);
}

.control-checkbox span {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.start-trading-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--cyan-glow) 0%, #00b8a9 100%);
    color: var(--bg-dark);
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
    margin-top: 1rem;
}

.start-trading-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 229, 204, 0.3);
}

.disclaimer-note {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(0, 229, 204, 0.05);
    border-left: 3px solid var(--cyan-glow);
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.disclaimer-note strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .features {
        flex-direction: column;
        align-items: stretch;
    }
    
    .feature-badge {
        justify-content: center;
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
    
    .stats {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .disclaimer-modal {
        max-width: 95%;
    }
    
    .connect-button {
        padding: 1.25rem 1.5rem;
        gap: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    
    .walletconnect-logo {
        width: 24px;
        height: 24px;
    }
    
    .button-main-text {
        font-size: 0.95rem;
    }
    
    .button-verified {
        font-size: 0.7rem;
    }
    
    .button-icon {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 60px;
        height: 60px;
    }
    
    .disclaimer-content {
        padding: 1.25rem;
    }
    
    .disclaimer-list li {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 0.6rem 0.9rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.1rem;
    }
    
    .info-card p {
        font-size: 0.9rem;
    }
    
    .modal-content h3 {
        font-size: 1.5rem;
    }
    
    .disclaimer-icon {
        font-size: 2.5rem;
    }
}