/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #ffffff;
    background: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    letter-spacing: -0.01em;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 255, 128, 0.3) 0%, 
        rgba(0, 204, 102, 0.3) 25%, 
        rgba(51, 255, 153, 0.3) 50%, 
        rgba(0, 255, 204, 0.3) 75%, 
        rgba(0, 255, 128, 0.3) 100%);
    background-size: 400% 400%;
    animation: rainbowShift 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    padding: 16px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.logo-text {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #00FF80, #00CC66, #33FF99, #00FFCC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.05em;
    font-family: 'Orbitron', 'Space Grotesk', 'Inter', sans-serif;
    text-shadow: 0 0 20px rgba(0, 255, 128, 0.4);
    position: relative;
    margin-left: 12px;
    animation: logoGlow 3s ease-in-out infinite alternate;
}

.logo-text::before {
    content: 'PerpFun';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #00FF80, #00CC66, #33FF99, #00FFCC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(2px);
    opacity: 0.6;
    z-index: -1;
    animation: logoGlow 3s ease-in-out infinite alternate-reverse;
}

@keyframes logoGlow {
    0% {
        text-shadow: 0 0 20px rgba(0, 255, 128, 0.4);
    }
    100% {
        text-shadow: 0 0 30px rgba(51, 255, 153, 0.6), 0 0 40px rgba(0, 255, 204, 0.3);
    }
}


.connect-wallet-btn {
    background: linear-gradient(135deg, #00FF80, #00CC66, #33FF99, #00FFCC);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: -0.005em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.connect-wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 255, 153, 0.5);
    background: linear-gradient(135deg, #00FF80, #33FF99, #00FFCC, #00CC66);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.gradient-text {
    background: linear-gradient(135deg, #00FF80, #00CC66, #33FF99, #00FFCC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    color: #a0a0a0;
    margin-bottom: 40px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #00FF80, #00CC66, #33FF99, #00FFCC);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    letter-spacing: -0.005em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(51, 255, 153, 0.5);
    background: linear-gradient(135deg, #00FF80, #33FF99, #00FFCC, #00CC66);
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 14px 32px;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.005em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: #33FF99;
    color: #33FF99;
}

/* Prediction Stack - Tinder Style */
.prediction-stack {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.prediction-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    backdrop-filter: blur(24px);
    overflow: hidden;
    cursor: grab;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
    z-index: 1;
    user-select: none;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.prediction-card:not(.active) {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    z-index: 1;
}

.prediction-card.active {
    display: block;
    opacity: 1;
    transform: scale(1);
    z-index: 10;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(0, 255, 128, 0.12) 0%, 
        rgba(0, 204, 102, 0.08) 25%, 
        rgba(51, 255, 153, 0.15) 50%, 
        rgba(0, 255, 204, 0.10) 75%, 
        rgba(0, 255, 128, 0.12) 100%);
    background-size: 300% 300%;
    animation: gradientShift 12s ease-in-out infinite;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(0, 255, 128, 0.15) 0%, 
        rgba(0, 204, 102, 0.10) 30%,
        rgba(51, 255, 153, 0.20) 60%, 
        rgba(0, 255, 204, 0.12) 100%);
    opacity: 0.8;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-category {
    background: linear-gradient(135deg, rgba(51, 255, 153, 0.25), rgba(0, 255, 128, 0.20));
    color: #33FF99;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    width: fit-content;
    margin-bottom: 20px;
    border: 1px solid rgba(51, 255, 153, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(51, 255, 153, 0.2);
}

.event-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 36px;
    letter-spacing: -0.02em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: linear-gradient(135deg, #ffffff, #f0f0f0, #e8e8e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.prediction-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.stat {
    flex: 1;
    text-align: center;
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(51, 255, 153, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #33FF99;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(51, 255, 153, 0.2);
}

.stat:hover::before {
    left: 100%;
}

.stat-value {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: #33FF99;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    text-shadow: 0 2px 8px rgba(51, 255, 153, 0.3);
    position: relative;
    z-index: 2;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    z-index: 2;
}

.auto-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.progress-bar {
    width: 220px;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00FF80, #00CC66, #33FF99, #00FFCC, #00FF80);
    background-size: 300% 100%;
    border-radius: 3px;
    width: 0%;
    box-shadow: 0 0 12px rgba(51, 255, 153, 0.4);
    position: relative;
    /* Animation will be controlled by JavaScript */
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes progressFill {
    0% { width: 0%; }
    100% { width: 100%; }
}


/* System Introduction Section */
.system-intro {
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.02);
}

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


/* System Visualization - Professional Architecture Diagram */
.system-visualization {
    padding: 20px 0;
    background: radial-gradient(1200px 600px at 20% 10%, rgba(0, 255, 128, 0.06), transparent 60%),
                radial-gradient(900px 500px at 80% 40%, rgba(0, 255, 204, 0.05), transparent 60%),
                rgba(255, 255, 255, 0.02);
}

.architecture-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left side: Layered Architecture */
.flow-diagram {
    position: relative;
    background: linear-gradient(180deg, rgba(5, 35, 29, 0.9), rgba(6, 40, 33, 0.9));
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Architecture Layers */
.architecture-layer {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 4px;
}

.layer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.layer-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.user-dots {
    display: flex;
    gap: 4px;
}

.user-dots span {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

/* Client modules styling */
.client-modules {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.client-module {
    background: rgba(51, 255, 153, 0.1);
    border: 1px solid rgba(51, 255, 153, 0.2);
    border-radius: 8px;
    padding: 6px 8px;
    flex: 1;
    min-width: 60px;
}

.module-title {
    font-size: 10px;
    font-weight: 700;
    color: #33FF99;
    margin-bottom: 2px;
}

.module-subtitle {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

/* L2 Layer */
.l2-layer {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(51, 255, 153, 0.2);
}

.l2-components {
    display: flex;
    gap: 8px;
}

.l2-component {
    flex: 1;
    background: rgba(51, 255, 153, 0.1);
    border: 1px solid rgba(51, 255, 153, 0.2);
    border-radius: 8px;
    padding: 8px;
}

.component-title {
    font-size: 12px;
    font-weight: 700;
    color: #33FF99;
    margin-bottom: 2px;
}

.component-subtitle {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.component-features {
    display: flex;
    gap: 4px;
}

.feature-tag {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(51, 255, 153, 0.15);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(51, 255, 153, 0.3);
}

/* Module tags within components */
.component-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.module-tag {
    font-size: 9px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 255, 128, 0.12);
    border: 1px solid rgba(0, 255, 128, 0.28);
    padding: 4px 6px;
    border-radius: 6px;
}

.dex-badges {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.dex-badge {
    font-size: 9px;
    color: #0b1f18;
    background: #33FF99;
    border: 1px solid rgba(51, 255, 153, 0.8);
    padding: 3px 6px;
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(51, 255, 153, 0.35);
}

/* Confirmation Layer */
.confirmation-layer {
    background: rgba(51, 255, 153, 0.05);
    border-color: rgba(51, 255, 153, 0.3);
    border-width: 2px;
}

.confirmation-core {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirmation-component {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(51, 255, 153, 0.3);
    border-radius: 8px;
    padding: 8px;
}

.confirmation-arrow {
    font-size: 16px;
    color: #33FF99;
    font-weight: 700;
}

.network-nodes {
    display: flex;
    gap: 3px;
    margin-top: 4px;
}

.node {
    width: 6px;
    height: 6px;
    background: #33FF99;
    border-radius: 50%;
    animation: nodePulse 2s ease-in-out infinite;
}

.node:nth-child(2) { animation-delay: 0.2s; }
.node:nth-child(3) { animation-delay: 0.4s; }
.node:nth-child(4) { animation-delay: 0.6s; }

.resolution-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.stat-tag {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 255, 128, 0.1);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid rgba(0, 255, 128, 0.2);
}

/* L1 Layer */
.l1-layer {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.1);
}

.l1-components {
    display: flex;
    gap: 8px;
}

.l1-component {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
}

/* Connection Arrows */
.connection-arrows {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
}

.arrow {
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, #00FF80, #33FF99);
    border-radius: 2px;
    animation: arrowFlow 2s ease-in-out infinite;
}

.arrow-1 {
    top: 50px;
    bottom: 50px;
    left: 20px;
    animation-delay: 0s;
}

.arrow-2 {
    top: 100px;
    bottom: 30px;
    left: 30px;
    animation-delay: 0.5s;
}

.arrow-3 {
    top: 150px;
    bottom: 10px;
    left: 25px;
    animation-delay: 1s;
}

/* Disable legacy connectors that conflict with layered layout */
.flow-arrows,
.connection-lines,
.data-flow-indicators {
    display: none !important;
}

/* Auto-aligned layer connectors (like Espresso diagram) */
.architecture-layer {
    z-index: 1;
}

.architecture-layer:not(.l1-layer)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    width: 3px;
    height: 26px;
    background: linear-gradient(180deg, #00FF80, #33FF99, #00FFCC);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(51, 255, 153, 0.45);
}

.architecture-layer:not(.l1-layer)::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #00FF99;
    filter: drop-shadow(0 0 6px rgba(51, 255, 153, 0.6));
}

/* End user band */
.end-users {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 12px 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    position: relative;
}

.end-users-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.end-users-dots {
    display: grid;
    grid-template-columns: repeat(18, 8px);
    gap: 8px;
}

.end-users-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

.end-users::after {
    content: '';
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 8px;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 8px, transparent 8px 16px);
    opacity: 0.6;
}

.end-users::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid #33FF99;
    border-bottom: 2px solid #33FF99;
    transform: translateX(-50%) rotate(45deg);
    box-shadow: 0 0 8px rgba(51, 255, 153, 0.4);
}

/* Bands */
.band {
    position: relative;
    padding: 8px 8px;
    margin-top: 4px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02), 0 8px 24px rgba(0,0,0,0.35);
    z-index: 1;
}

.band-title {
    position: absolute;
    top: -8px;
    left: 12px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    color: #000;
    background: linear-gradient(135deg, #00FF80, #33FF99);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(51, 255, 153, 0.35), inset 0 -1px 0 rgba(255,255,255,0.4);
}

.diagram-layer {
    margin-bottom: 6px;
    position: relative;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    flex: 1;
    z-index: 2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.diagram-layer:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(51, 255, 153, 0.2);
}

.layer-label {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    margin-bottom: 6px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(51, 255, 153, 0.15), rgba(0, 255, 128, 0.1));
    border-radius: 6px;
    border: 1px solid rgba(51, 255, 153, 0.35);
    display: inline-block;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(0, 255, 128, 0.18);
}

.layer-content {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* User layer - L2 */
.user-clients {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    justify-content: center;
}

.client-dot {
    width: 14px;
    height: 14px;
    background: #33FF99;
    border-radius: 50%;
    animation: clientPulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(51, 255, 153, 0.4);
}

.client-dot:nth-child(2) { animation-delay: 0.2s; }
.client-dot:nth-child(3) { animation-delay: 0.4s; }
.client-dot:nth-child(4) { animation-delay: 0.6s; }

.user-label {
    text-align: center;
    color: #a0a0a0;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
}

.trading-types {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.trading-type {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    transition: all 0.3s ease;
}

.trading-type:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 255, 153, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.trading-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    text-align: center;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.trading-components {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trading-component {
    background: rgba(51, 255, 153, 0.1);
    color: #33FF99;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(51, 255, 153, 0.2);
}

/* Protocol layer - Confirmation layer */
.protocol-core {
    text-align: center;
}

.protocol-header {
    margin-bottom: 24px;
}

.protocol-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    font-size: 32px;
    animation: logoRotate 4s ease-in-out infinite;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: #33FF99;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.protocol-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    justify-content: center;
}

.protocol-badge {
    background: rgba(51, 255, 153, 0.15);
    color: #33FF99;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(51, 255, 153, 0.3);
    transition: all 0.3s ease;
}

.protocol-badge:hover {
    background: rgba(51, 255, 153, 0.25);
    transform: scale(1.05);
}

.protocol-network {
    margin-bottom: 20px;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 200px;
    margin: 0 auto;
}

.network-node {
    width: 12px;
    height: 12px;
    background: #33FF99;
    border-radius: 50%;
    animation: networkPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(51, 255, 153, 0.4);
}

.network-node:nth-child(2) { animation-delay: 0.2s; }
.network-node:nth-child(3) { animation-delay: 0.4s; }
.network-node:nth-child(4) { animation-delay: 0.6s; }
.network-node:nth-child(5) { animation-delay: 0.8s; }
.network-node:nth-child(6) { animation-delay: 1s; }

.protocol-status {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.status-block {
    width: 20px;
    height: 10px;
    background: linear-gradient(90deg, #00FF80, #33FF99);
    border-radius: 5px;
    animation: statusBlink 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(51, 255, 153, 0.3);
}

.status-block:nth-child(2) { animation-delay: 0.3s; }
.status-block:nth-child(3) { animation-delay: 0.6s; }
.status-block:nth-child(4) { animation-delay: 0.9s; }

/* Infrastructure layer */
.infrastructure-components {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.infra-component {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    flex: 1;
    transition: all 0.3s ease;
}

.infra-component:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 255, 153, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.component-label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.component-sub {
    font-size: 12px;
    color: #a0a0a0;
    font-weight: 500;
}

/* Flow arrows */
.flow-arrows {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
}

.flow-arrow {
    position: absolute;
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, #00FF80, #33FF99, #00FFCC);
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: arrowFlow 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(51, 255, 153, 0.4);
}

.arrow-1 {
    top: 60px;
    animation-delay: 0s;
}

.arrow-2 {
    top: 120px;
    animation-delay: 0.5s;
}

.arrow-3 {
    top: 180px;
    animation-delay: 1s;
}

.arrow-4 {
    top: 240px;
    animation-delay: 1.5s;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #33FF99;
}

/* Connection lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(51, 255, 153, 0.3), transparent);
    border-radius: 1px;
    animation: connectionPulse 3s ease-in-out infinite;
}

.line-1 {
    top: 200px;
    left: 20%;
    right: 20%;
    animation-delay: 0s;
}

.line-2 {
    top: 400px;
    left: 15%;
    right: 15%;
    animation-delay: 1s;
}

.line-3 {
    top: 600px;
    left: 25%;
    right: 25%;
    animation-delay: 2s;
}

/* Data flow indicators */
.data-flow-indicators {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 4;
}

.flow-indicator {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(51, 255, 153, 0.3);
    backdrop-filter: blur(4px);
}

.indicator-dot {
    width: 4px;
    height: 4px;
    background: #33FF99;
    border-radius: 50%;
    animation: indicatorPulse 2s ease-in-out infinite;
}

.indicator-label {
    font-size: 8px;
    color: #33FF99;
    font-weight: 600;
    white-space: nowrap;
}

.indicator-1 {
    top: 160px;
    left: 10%;
    animation-delay: 0s;
}

.indicator-2 {
    top: 360px;
    right: 10%;
    animation-delay: 0.5s;
}

.indicator-3 {
    top: 560px;
    left: 15%;
    animation-delay: 1s;
}

.indicator-4 {
    top: 760px;
    right: 15%;
    animation-delay: 1.5s;
}

/* Right side: Explanations */
.explanations {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: linear-gradient(180deg, rgba(5, 35, 29, 0.7), rgba(6, 40, 33, 0.7));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}

.explanation-item {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    align-items: flex-start;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.explanation-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(51, 255, 153, 0.2);
    transform: translateX(8px);
}

.explanation-item + .explanation-item {
    border-top: 1px dashed rgba(255,255,255,0.05);
}

.explanation-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00FF80, #33FF99);
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    box-shadow: 0 4px 12px rgba(51, 255, 153, 0.3), 0 0 0 6px rgba(51,255,153,0.12);
}

.explanation-text {
    color: #a0a0a0;
    line-height: 1.7;
    font-size: 15px;
    padding-top: 6px;
    font-weight: 400;
}

/* Interface Styles */
.interface-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.interface-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.interface-stats {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-size: 9px;
}

.stat-row .stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.stat-row .stat-value {
    color: #33FF99;
    font-weight: 600;
    font-family: 'Space Grotesk', monospace;
}

.contract-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.contract-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.contract-features {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.feature-item {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(51, 255, 153, 0.1);
    padding: 1px 4px;
    border-radius: 2px;
    border: 1px solid rgba(51, 255, 153, 0.2);
}

.source-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.source-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.logic-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.logic-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.token-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.token-title {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
}

.contract-specs {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 3px;
}

.spec-item {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(51, 255, 153, 0.1);
    padding: 1px 3px;
    border-radius: 2px;
    border: 1px solid rgba(51, 255, 153, 0.2);
}

.network-stats {
    display: flex;
    gap: 8px;
    margin-top: 3px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-size: 9px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.stat-value {
    color: #33FF99;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}

.step-icon {
    font-size: 10px;
    width: 12px;
    text-align: center;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0px;
}

.step-detail {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.platform-badge {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 2px 4px;
    background: rgba(51, 255, 153, 0.1);
    border: 1px solid rgba(51, 255, 153, 0.2);
    border-radius: 4px;
    font-size: 9px;
}

.platform-name {
    font-weight: 600;
    color: #33FF99;
}

.platform-status {
    color: rgba(255, 255, 255, 0.6);
    font-size: 7px;
}

.data-flow {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.flow-item {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 255, 128, 0.1);
    padding: 1px 3px;
    border-radius: 2px;
    border: 1px solid rgba(0, 255, 128, 0.2);
}

.platform-weight {
    font-size: 7px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0px;
}

.logic-specs {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 3px;
}

.settlement-specs {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 3px;
}

.token-metrics {
    display: flex;
    gap: 6px;
    margin-top: 3px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0px;
    font-size: 9px;
}

.metric-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.metric-value {
    color: #33FF99;
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
}

/* Enhanced Animations */
@keyframes clientPulse {
    0%, 100% { 
        opacity: 0.6; 
        transform: scale(1); 
        box-shadow: 0 0 10px rgba(51, 255, 153, 0.4);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3); 
        box-shadow: 0 0 20px rgba(51, 255, 153, 0.8);
    }
}

@keyframes networkPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

@keyframes statusBlink {
    0%, 100% { 
        opacity: 0.6; 
        transform: scaleX(1);
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1.2);
    }
}

@keyframes arrowFlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scaleY(0.8);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.3);
    }
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 0.6;
        transform: scaleX(1.2);
    }
}

@keyframes indicatorPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

@keyframes nodePulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.markets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.market-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00FF80, #00CC66, #33FF99, #00FFCC);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.market-card:hover::before {
    opacity: 1;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.market-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.market-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.market-category {
    background: rgba(51, 255, 153, 0.3);
    color: #33FF99;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.market-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    color: #a0a0a0;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.005em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.market-options {
    display: flex;
    gap: 12px;
}

.option-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: -0.005em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.option-btn:hover {
    background: rgba(51, 255, 153, 0.2);
    border-color: #33FF99;
    color: #33FF99;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.feature-description {
    color: #a0a0a0;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-description {
    color: #a0a0a0;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    justify-content: end;
    margin-left: auto;
    width: fit-content;
}

.link-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.005em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.footer-link {
    display: block;
    color: #a0a0a0;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #33FF99;
}

.footer-link.disabled {
    color: #666666;
    cursor: not-allowed;
    opacity: 0.5;
}

.footer-link.disabled:hover {
    color: #666666;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright {
    color: #a0a0a0;
    font-size: 14px;
}

/* Testing badge */
.testing-badge {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 9999;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 0 8px rgba(51,255,153,0.25);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .prediction-stack {
        max-width: 320px;
        height: 400px;
        margin: 0 auto;
    }

    .card-content {
        padding: 20px;
    }

    .event-title {
        font-size: 20px;
    }

    .prediction-stats {
        gap: 16px;
        margin-bottom: 24px;
    }

    .stat {
        padding: 12px;
    }

    .stat-value {
        font-size: 24px;
    }

    .progress-bar {
        width: 180px;
        height: 5px;
    }
    
    .event-category {
        padding: 8px 16px;
        font-size: 11px;
        letter-spacing: 0.6px;
    }
    
    .stat {
        padding: 16px 12px;
    }
    
    .stat-value {
        font-size: 28px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .system-content {
        flex-direction: column;
    }

    .architecture-diagram {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flow-diagram {
        padding: 20px;
    }

    .diagram-layer {
        margin-bottom: 15px;
        padding: 15px;
    }

    .layer-content {
        padding: 15px;
    }

    .trading-types {
        flex-direction: column;
        gap: 16px;
    }

    .protocol-badges {
        flex-direction: column;
        gap: 12px;
    }

    .infrastructure-components {
        flex-direction: column;
        gap: 12px;
    }

    .l1-component {
        padding: 16px;
    }

    .explanation-item {
        gap: 16px;
        margin-bottom: 15px;
        padding: 12px;
    }

    .explanation-number {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .explanation-text {
        font-size: 14px;
    }

    .flow-arrow {
        height: 30px;
    }

    .arrow-1 {
        top: 140px;
    }

    .arrow-2 {
        top: 280px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 24px;
        justify-content: start;
        margin-left: 0;
        width: 100%;
    }

    .market-stats {
        flex-direction: column;
        gap: 12px;
    }

    .market-options {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section-title {
        font-size: 28px;
    }

    .prediction-stack {
        max-width: 350px;
        height: 450px;
    }

    .card-content {
        padding: 24px;
    }

    .event-title {
        font-size: 24px;
    }

    .stat-value {
        font-size: 28px;
    }

    .action-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

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

.market-card,
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00FF80, #00CC66, #33FF99, #00FFCC);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00FF80, #00CC66, #33FF99, #00FFCC);
}
