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

:root {
    --primary-color: #4a4a4a;
    --secondary-color: #6b6b6b;
    --accent-color: #a8a8a8;
    --accent-glow: #c0c0c0;
    --bg-gradient-start: #1a1a1a;
    --bg-gradient-end: #2d2d2d;
    --text-color: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(150, 150, 150, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.title {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 700;
    color: var(--accent-color);
    text-shadow:
        0 0 10px rgba(192, 192, 192, 0.5),
        0 0 20px rgba(192, 192, 192, 0.3),
        0 0 30px rgba(192, 192, 192, 0.2);
    margin-bottom: 0.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow:
            0 0 10px rgba(192, 192, 192, 0.5),
            0 0 20px rgba(192, 192, 192, 0.3),
            0 0 30px rgba(192, 192, 192, 0.2);
    }
    to {
        text-shadow:
            0 0 20px rgba(192, 192, 192, 0.8),
            0 0 30px rgba(192, 192, 192, 0.5),
            0 0 40px rgba(192, 192, 192, 0.3);
    }
}

.tagline {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #ccc;
    margin-bottom: 3rem;
}

/* Rock Container */
.rock-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Speech Bubble */
.speech-bubble {
    position: absolute;
    top: -80px;
    background: white;
    color: #333;
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    max-width: 280px;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.speech-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: white transparent transparent;
}

/* Rock Character */
.rock-character {
    cursor: pointer;
    transition: transform 0.1s ease;
    animation: idle-bob 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rock-character:hover {
    transform: scale(1.1);
}

.rock-character:active {
    transform: scale(0.95);
}

.rock-character.clicked {
    animation: bounce 0.5s ease;
}

.rock-emoji {
    font-size: 8rem;
    filter: drop-shadow(0 4px 15px rgba(100, 100, 100, 0.6));
    display: block;
}

/* Idle Animation */
@keyframes idle-bob {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Bounce Animation */
@keyframes bounce {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(0.95) rotate(5deg);
    }
    75% {
        transform: scale(1.05) rotate(-3deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* Arm Wave Animation */
.stick-character.clicked .right-arm {
    animation: wave-arm 0.5s ease;
    transform-origin: 50px 70px;
}

@keyframes wave-arm {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-30deg);
    }
}

/* Eye Animation */
.eye-pupil {
    animation: look-around 4s ease-in-out infinite;
}

@keyframes look-around {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(2px);
    }
    75% {
        transform: translateX(-2px);
    }
}

.click-prompt {
    font-size: 1rem;
    color: #888;
    margin-top: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Tokenomics Section */
.tokenomics {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.tokenomics h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-color);
    margin-bottom: 2rem;
}

.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 3rem;
}

.token-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.token-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 100, 100, 0.3);
}

.token-card h3 {
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.token-value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.token-label {
    font-size: 0.9rem;
    color: #aaa;
}

/* Contract Section */
.contract-section {
    max-width: 600px;
    margin: 0 auto;
}

.contract-section h3 {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 1rem;
}

.contract-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

#contractAddress {
    font-family: monospace;
    font-size: clamp(0.7rem, 2vw, 1rem);
    word-break: break-all;
}

.copy-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-feedback {
    color: #4CAF50;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.visible {
    opacity: 1;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    border-radius: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(100, 100, 100, 0.4);
}

.social-icon {
    font-size: 1.2rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.copyright {
    font-size: 0.9rem;
    color: #888;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .stick-character {
        width: 120px;
        height: 240px;
    }

    .speech-bubble {
        top: -70px;
        max-width: 220px;
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .tokenomics-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contract-box {
        flex-direction: column;
    }
}

/* Floating particles (decorative) */
.hero::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image:
        radial-gradient(circle, rgba(192, 192, 192, 0.1) 1px, transparent 1px),
        radial-gradient(circle, rgba(100, 100, 100, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 25px 25px;
    animation: float-particles 20s linear infinite;
    pointer-events: none;
}

@keyframes float-particles {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50px);
    }
}

/* AI Analysis Section */
.ai-analysis-section {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(192, 192, 192, 0.2);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.analysis-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.analysis-icon {
    font-size: 3rem;
    animation: wiggle 2s ease-in-out infinite;
}

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

.analysis-title h2 {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    text-align: left;
}

.analysis-subtitle {
    color: #888;
    font-size: 0.95rem;
    text-align: left;
}

.wallet-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Rock Verdict (AI response) */
.rock-verdict {
    color: #888;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(100, 100, 100, 0.15);
    border-radius: 15px;
    border-left: 4px solid var(--accent-color);
    display: none;
    text-align: left;
    position: relative;
}

.rock-verdict::before {
    content: '🪨';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.rock-verdict.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.rock-verdict.success {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4CAF50;
}

.rock-verdict.warning {
    color: #FFA726;
    background: rgba(255, 167, 38, 0.1);
    border-left-color: #FFA726;
}

.rock-verdict.error {
    color: #EF5350;
    background: rgba(239, 83, 80, 0.1);
    border-left-color: #EF5350;
}

/* Connect Wallet Button */
.connect-wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 100, 100, 0.4);
}

.connect-wallet-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(100, 100, 100, 0.5);
}

.connect-wallet-btn:active {
    transform: translateY(0) scale(0.98);
}

.connect-wallet-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

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

/* Wallet Info (when connected) */
.wallet-info {
    display: none;
}

.wallet-info.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.wallet-address-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.wallet-label {
    color: #888;
    font-size: 0.9rem;
}

.wallet-address {
    font-family: monospace;
    color: var(--accent-color);
    font-size: 0.95rem;
}

.disconnect-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.disconnect-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    color: #ff6666;
}

/* Holdings Grid */
.holdings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.holding-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.holding-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 100, 100, 0.3);
}

.holding-card h3 {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.holding-value {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.holding-label {
    font-size: 0.85rem;
    color: #aaa;
}

/* Mobile Responsiveness for AI Analysis */
@media (max-width: 768px) {
    .ai-analysis-section {
        margin-top: 2rem;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .analysis-header {
        flex-direction: column;
        text-align: center;
    }

    .analysis-title h2,
    .analysis-subtitle {
        text-align: center;
    }

    .analysis-icon {
        font-size: 2.5rem;
    }

    .wallet-address-box {
        flex-wrap: wrap;
        justify-content: center;
    }

    .holdings-grid {
        grid-template-columns: 1fr;
    }

    .connect-wallet-btn {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }

    .rock-emoji {
        font-size: 6rem;
    }

    .rock-verdict {
        padding-left: 2rem;
    }

    .rock-verdict::before {
        left: 0.5rem;
        font-size: 1.2rem;
    }
}

/* Wallet Selection Modal */
.wallet-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wallet-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.wallet-modal {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(192, 192, 192, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.wallet-modal-overlay.visible .wallet-modal {
    transform: scale(1) translateY(0);
}

.wallet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wallet-modal-header h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin: 0;
}

.wallet-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.wallet-modal-close:hover {
    color: white;
}

.wallet-modal-subtitle {
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

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

.wallet-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Fredoka', sans-serif;
}

.wallet-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.wallet-option:active {
    transform: translateX(5px) scale(0.98);
}

.wallet-option.not-installed {
    opacity: 0.5;
}

.wallet-option.not-installed:hover {
    opacity: 0.8;
}

.wallet-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(255, 255, 255, 0.1);
}

.wallet-icon-phantom {
    background: linear-gradient(135deg, #ab9ff2 0%, #7c3aed 100%);
}

.wallet-icon-solflare {
    background: linear-gradient(135deg, #fc7f4b 0%, #f43f5e 100%);
}

.wallet-icon-backpack {
    background: linear-gradient(135deg, #e44c4c 0%, #b91c1c 100%);
}

.wallet-icon-coinbase {
    background: linear-gradient(135deg, #0052ff 0%, #1e40af 100%);
}

.wallet-option-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-align: left;
}

.wallet-option-status {
    font-size: 0.8rem;
    color: #888;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.wallet-option-status.detected {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.wallet-option-status.not-detected {
    color: #888;
}

/* Mobile responsiveness for wallet modal */
@media (max-width: 768px) {
    .wallet-modal {
        padding: 1.5rem;
        max-width: 95%;
    }

    .wallet-modal-header h3 {
        font-size: 1.3rem;
    }

    .wallet-option {
        padding: 0.875rem 1rem;
    }

    .wallet-option-icon {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .wallet-option-name {
        font-size: 1rem;
    }
}
