/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1b3a 0%, #2d1b69 100%);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 27, 58, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(26, 27, 58, 0.98);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a855f7;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.nav-links a.active {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 27, 58, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    padding: 1rem 0;
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav a:hover {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
    border-left-color: #a855f7;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.ai-bot {
    text-align: center;
    position: relative;
}


.bot-label {
    color: #a855f7;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: transparent;
    color: #a855f7;
    border: 2px solid #a855f7;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: #a855f7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

/* ===== TOKEN DISPLAY ===== */
.token-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    transition: all 0.3s ease;
}

.token-display:hover {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.token-label {
    font-weight: 600;
    color: #a855f7;
    font-size: 0.95rem;
}

.contract-address {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-btn {
    background: #a855f7;
    color: white;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: #9333ea;
    transform: scale(1.05);
}

/* ===== SECTIONS ===== */
.how-it-works, .platform-preview, .token-section {
    padding: 6rem 0;
}

.how-it-works {
    background: rgba(0, 0, 0, 0.2);
}

.how-it-works h2, .platform-preview h2, .token-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.safety-section {
    padding: 4rem 0;
}

.safety-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.safety-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== CARDS & GRIDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Make all cards same height */
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex; /* Make card a flex container */
    flex-direction: column; /* Stack content vertically */
    height: 100%; /* Take full height */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #9333ea);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.1);
}

.card h3 {
    color: #a855f7;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.card p {
    flex-grow: 1; /* Take up remaining space */
    margin-bottom: 0; /* Remove default margin */
}

/* ===== FORMS ===== */
.preview-form {
    max-width: 600px;
    margin: 3rem auto 0; /* Add top margin for spacing */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
}

.preview-form h3 {
    margin-bottom: 1rem;
    color: #a855f7;
}

.preview-form p {
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #a855f7;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* ===== TOKEN SECTION ===== */
.token-info {
    max-width: 800px;
    margin: 0 auto;
}

.token-details {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
}

.token-details h3 {
    color: #a855f7;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.token-stats {
    margin: 2rem 0;
}

.stat {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.address-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.address-display code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    flex: 1;
    word-break: break-all;
    font-size: 0.9rem;
}

.address-display button {
    background: #a855f7;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.address-display button:hover {
    background: #9333ea;
    transform: scale(1.1);
}

.disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 4rem 0;
    background: rgba(0, 0, 0, 0.2);
}

.faq-section h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 1.5rem;
    text-align: left;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.1);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: #a855f7;
}

.faq-arrow.rotated {
    transform: rotate(180deg);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h4 {
    color: #a855f7;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.footer-brand p {
    opacity: 0.8;
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: flex-end;
    align-items: center;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.footer-links a:hover {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contract-footer {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== RESEARCH SECTION ===== */
.research-section {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.15);
}

.research-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.research-intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
    opacity: 0.9;
    line-height: 1.7;
}

.research-intro em {
    color: #a855f7;
    font-style: italic;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: stretch; /* Make all cards same height */
}

.research-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex; /* Make card a flex container */
    flex-direction: column; /* Stack content vertically */
    height: 100%; /* Take full height */
}

.research-card.featured {
    border: 2px solid rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.05);
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #9333ea);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.research-card:hover::before {
    transform: scaleX(1);
}

.research-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.research-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.research-header h3 {
    color: #a855f7;
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.research-badge {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.research-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    flex-grow: 1; /* Take up remaining space to push buttons down */
}

.research-stats {
    margin-bottom: 1.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item strong {
    color: #a855f7;
    font-weight: 600;
}

.research-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: auto; /* Push buttons to bottom */
}

.research-btn {
    background: #a855f7;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.research-btn:hover {
    background: #9333ea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.research-btn.secondary {
    background: transparent;
    color: #a855f7;
    border: 2px solid #a855f7;
}

.research-btn.secondary:hover {
    background: #a855f7;
    color: white;
}

/* ===== RESEARCH DEMO MODAL ===== */
.research-demo {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.demo-content {
    background: linear-gradient(145deg, rgba(26, 27, 58, 0.98), rgba(45, 27, 105, 0.95));
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    margin: auto;
    position: relative;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(168, 85, 247, 0.1) inset,
        0 2px 4px rgba(168, 85, 247, 0.2) inset;
    overflow: hidden;
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    background: rgba(168, 85, 247, 0.05);
    position: relative;
}

.demo-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(168, 85, 247, 0.5),
        transparent
    );
}

.demo-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.demo-close {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.demo-close:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.5);
    color: #a855f7;
    transform: scale(1.05);
}

.demo-body {
    padding: 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

/* ===== DEMO LAYOUT ===== */
.demo-overview {
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.demo-overview p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.demo-controls {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.control-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.demo-btn {
    background: linear-gradient(135deg, #a855f7, #9333ea);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
}

.demo-btn.secondary {
    background: transparent;
    border: 2px solid rgba(168, 85, 247, 0.5);
    color: #a855f7;
}

.demo-btn.secondary:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: #a855f7;
    color: white;
}

/* ===== DEMO STATS & VISUALIZATION ===== */
.demo-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.demo-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-box {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #a855f7;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.demo-visualization {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.demo-visualization::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        rgba(168, 85, 247, 0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
}

#affordanceCanvas {
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.demo-status {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.status-indicator, .scan-status {
    font-size: 0.95rem;
    font-weight: 600;
    color: #a855f7;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.scan-status {
    padding: 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 6px;
    margin-top: 1rem;
}

.learning-progress {
    width: 100%;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #9333ea, #06b6d4);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-label {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* ===== DEMO INSIGHTS ===== */
.demo-insights {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
}

.insight-header h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.insight-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateX(4px);
}

.insight-indicator, .insight-icon {
    font-size: 1.2rem;
    min-width: 30px;
    text-align: center;
    color: #a855f7;
    font-weight: bold;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.insight-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.insight-text strong {
    color: #a855f7;
    font-weight: 600;
}

/* ===== DATA ANALYSIS DASHBOARD ===== */
.data-analysis-dashboard {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
}

.metric-card h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #a855f7;
    margin-bottom: 0.5rem;
}

.metric-change {
    font-size: 0.8rem;
    color: #10b981;
    margin-bottom: 1rem;
    font-weight: 500;
}

.metric-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #9333ea);
    border-radius: 3px;
    transition: width 1s ease;
}

.research-findings {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
}

.research-findings h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.finding-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.finding-item:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
    transform: translateY(-2px);
}

.finding-icon {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.finding-content strong {
    color: #a855f7;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.finding-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== COMING SOON STYLES ===== */
.coming-soon-display {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 2px dashed rgba(168, 85, 247, 0.3);
    margin-bottom: 2rem;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.coming-soon-display h3 {
    color: #a855f7;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.coming-soon-display p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.research-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.highlight-item {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.highlight-item strong {
    color: #a855f7;
}

/* ===== AFFORDANCE DEMO CONTROLS ===== */
.control-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.control-group label {
    font-weight: 600;
    color: #a855f7;
    font-size: 0.95rem;
}

.control-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.control-group select:focus {
    outline: none;
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.affordance-viz {
    text-align: center;
}

/* ===== PROFESSIONAL DETECTION RESULTS ===== */
.results-feed {
    max-height: 250px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.results-placeholder {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.detection-result {
    margin-bottom: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid #a855f7;
    font-family: 'Inter', monospace;
}

.detection-result.scanning {
    border-left-color: #f59e0b;
}

.detection-result.detection {
    border-left-color: #06b6d4;
}

.detection-result.analysis {
    border-left-color: #8b5cf6;
}

.detection-result.detected {
    border-left-color: #10b981;
}

.detection-result.complete {
    border-left-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
}

.result-type {
    font-weight: 600;
    color: #a855f7;
}

.result-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
}

.result-message {
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.analysis-results h4 {
    color: #a855f7;
    margin-bottom: 1rem;
}

.system-metrics, .metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.system-metrics {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.metric-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.metric-value {
    color: #a855f7;
    font-weight: 600;
}

.technical-specifications {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.technical-specifications h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item {
    padding: 0.75rem;
    background: rgba(168, 85, 247, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.15);
    font-size: 0.9rem;
    line-height: 1.4;
}

.spec-item strong {
    color: #a855f7;
    font-weight: 600;
}

/* ===== SCROLLBARS ===== */
.demo-body::-webkit-scrollbar,
.results-feed::-webkit-scrollbar {
    width: 6px;
}

.demo-body::-webkit-scrollbar-track,
.results-feed::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

.demo-body::-webkit-scrollbar-thumb,
.results-feed::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.demo-body::-webkit-scrollbar-thumb:hover,
.results-feed::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.6);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero .container {
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .research-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .demo-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .findings-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .token-display {
        justify-content: center;
    }

    .bot-face {
        font-size: 4rem;
    }

    .how-it-works h2, .platform-preview h2, .token-section h2 {
        font-size: 2rem;
    }

    /* Ensure platform section has proper bottom spacing */
    .platform-preview {
        padding: 4rem 0 2rem; /* Reduce bottom padding, form margin will handle spacing */
    }

    .cards-grid, .research-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card, .research-card {
        padding: 1.5rem;
    }

    .preview-form {
        margin: 4rem auto 0; /* Increase top margin on mobile */
        padding: 2rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 1rem;
    }

    .research-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .research-badge {
        align-self: flex-start;
    }

    .research-links {
        flex-direction: column;
    }

    .research-btn {
        width: 100%;
        text-align: center;
    }

    .demo-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }

    .demo-header, .demo-body {
        padding: 1.5rem;
    }

    .control-buttons {
        flex-direction: column;
    }

    .demo-btn {
        width: 100%;
    }

    .demo-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-box {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .demo-controls {
        padding: 1.5rem;
    }

    .insight-list {
        gap: 1rem;
    }

    .insight-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .insight-indicator, .insight-icon {
        font-size: 1.25rem;
        min-width: 35px;
    }

    .insight-text {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .research-demo {
        padding: 1rem;
        align-items: stretch;
    }

    .demo-content {
        margin: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .demo-body {
        flex: 1;
        overflow-y: auto;
        max-height: calc(100vh - 100px);
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }

    .metric-card {
        padding: 1rem;
    }

    .metric-value {
        font-size: 1.5rem;
    }

    .finding-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .finding-icon {
        font-size: 1.25rem;
        min-width: 30px;
    }
}



@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .token-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contract-address {
        word-break: break-all;
        font-size: 0.75rem;
    }

    .how-it-works h2, .platform-preview h2, .token-section h2 {
        font-size: 1.75rem;
    }

    .research-section h2 {
        font-size: 2rem;
    }

    .research-intro {
        font-size: 1rem;
        margin-bottom: 3rem;
    }

    .research-card {
        padding: 1.25rem;
    }

    .research-header h3 {
        font-size: 1.1rem;
    }

    .research-links {
        flex-direction: column;
    }

    .research-btn {
        width: 100%;
    }

    .preview-form {
        margin: 3rem auto 0; /* Adjust for smaller screens */
        padding: 1.5rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .platform-preview .cards-grid {
        margin-bottom: 4rem;
    }
    
    /* Adjust section padding for better mobile spacing */
    .platform-preview {
        padding: 4rem 0 1rem;
    }

    .card {
        padding: 1.25rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .demo-header {
        padding: 1rem;
    }

    .demo-body {
        padding: 1rem;
    }

    .demo-header h3 {
        font-size: 1.1rem;
    }

    .demo-controls {
        padding: 1rem;
    }

    .demo-stats {
        grid-template-columns: 1fr;
    }

    .control-buttons {
        gap: 0.75rem;
    }

    .demo-visualization {
        padding: 1rem;
    }

    .spec-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .spec-item {
        padding: 0.75rem;
    }

    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .metric-card h4 {
        font-size: 0.8rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .coming-soon-display {
        padding: 2rem 1rem;
    }

    .coming-soon-icon {
        font-size: 3rem;
    }

    .findings-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .bot-face {
        animation: none;
    }
}

@media (prefers-contrast: high) {
    .card, .research-card {
        border-width: 2px;
    }

    .demo-content {
        border-width: 2px;
    }
}

@supports selector(:focus-visible) {
    .demo-btn:focus:not(:focus-visible),
    .research-btn:focus:not(:focus-visible),
    .btn-primary:focus:not(:focus-visible),
    .btn-secondary:focus:not(:focus-visible) {
        outline: none;
    }

    .demo-btn:focus-visible,
    .research-btn:focus-visible,
    .btn-primary:focus-visible,
    .btn-secondary:focus-visible {
        outline: 2px solid #a855f7;
        outline-offset: 2px;
    }
}

@supports (-webkit-backdrop-filter: blur(10px)) {
    .demo-content {
        -webkit-backdrop-filter: blur(15px);
    }

    .card, .research-card, .token-display {
        -webkit-backdrop-filter: blur(10px);
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (max-width: 768px) {
    .demo-btn, .research-btn, .btn-primary, .btn-secondary {
        min-height: 44px;
        touch-action: manipulation;
    }

    .demo-close {
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }
}

canvas {
    max-width: 100%;
    height: auto;
    display: block;
}

#affordanceCanvas {
    width: 100% !important;
    height: auto !important;
    max-width: 400px;
}

@media (max-width: 480px) {
    #affordanceCanvas {
        max-width: 280px;
    }
}



/* ===== FINAL UTILITY CLASSES ===== */
.research-demo {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    isolation: isolate;
}

.demo-content {
    overflow-x: hidden;
    overflow: visible;
}

.card, .research-card {
    will-change: transform;
}

.demo-btn, .research-btn {
    will-change: transform;
}

@media print {
    .research-demo {
        display: none !important;
    }

    .header {
        position: static;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===== HERO VISUAL WITH IMAGE ===== */
.bot-image {
    width: 450px;
    height: 450px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.2));
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.1));
    padding: 1rem;
    transition: all 0.3s ease;
}

.bot-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(168, 85, 247, 0.3));
}

/* Remove the old bot-face emoji styles - delete or comment out: */
/*
.bot-face {
    font-size: 6rem;
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(168, 85, 247, 0.2));
    color: #a855f7;
}
*/

/* ===== RESPONSIVE IMAGE STYLES ===== */
@media (max-width: 768px) {
    .bot-image {
        width: 150px;
        height: 150px;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .bot-image {
        width: 120px;
        height: 120px;
        padding: 0.5rem;
    }
}

/* ===== IMAGE OPTIMIZATION ===== */
.bot-image {
    /* Add these for better performance */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* ===== ENHANCED VISUAL EFFECTS ===== */
.ai-bot {
    text-align: center;
    position: relative;
}

.ai-bot::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}
