/* tanso.markets - Cyberpunk Carbon Trading Platform */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter */

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --neon-cyan: #00e5ff;
    --neon-pink: #ff006e;
    --neon-purple: #7b2ff7;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", sans-serif;
    background: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
}

.section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #e8b84b;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 16px;
    border: 1px solid rgba(232, 184, 75, 0.3);
    border-radius: 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    background: linear-gradient(135deg, #f5f0e8, #4a90d9, #e8b84b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* HERO SECTION */
.section--hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 40%, #1a0a2e 70%, #1a1a2e 100%);
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(74, 144, 217, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(232, 184, 75, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(123, 47, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 144, 217, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 144, 217, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px;
}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    color: #e8b84b;
    border: 1px solid rgba(232, 184, 75, 0.4);
    padding: 8px 24px;
    border-radius: 24px;
    margin-bottom: 32px;
    text-shadow: 0 0 20px rgba(232, 184, 75, 0.3);
}

.hero-title {
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
}

.title-line { display: block; }

.title-line--1 {
    background: linear-gradient(90deg, #4a90d9, #00e5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 40px rgba(74, 144, 217, 0.4));
}

.title-line--2 {
    background: linear-gradient(90deg, #e8b84b, #f5f0e8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(232, 184, 75, 0.3));
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.7);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(74, 144, 217, 0.08);
    border: 1px solid rgba(74, 144, 217, 0.2);
    border-radius: 16px;
    padding: 24px 32px;
    min-width: 160px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stat-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.stat-card[data-reveal="left"] { transition-delay: 0s; }
.stat-card[data-reveal="center"] { transition-delay: 0.15s; }
.stat-card[data-reveal="right"] { transition-delay: 0.3s; }

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #e8b84b;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-cta {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, #4a90d9, #7b2ff7);
    color: #f5f0e8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 30px rgba(74, 144, 217, 0.3);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(74, 144, 217, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: opacity 0.3s ease;
}

.scroll-indicator-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, #4a90d9, transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* MARKETS SECTION */
.section--markets {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f20 50%, #1a1a2e 100%);
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .market-grid { grid-template-columns: 1fr; }
}

.market-panel {
    position: relative;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid rgba(74, 144, 217, 0.15);
    border-radius: 20px;
    padding: 28px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.market-panel[data-slide="left"] { transform: translateX(-60px); }
.market-panel[data-slide="right"] { transform: translateX(60px); }
.market-panel.revealed { opacity: 1; transform: translateX(0); }

.panel-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.panel-glow--blue { background: rgba(74, 144, 217, 0.15); }
.panel-glow--gold { background: rgba(232, 184, 75, 0.12); }

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-meta { flex: 1; }

.panel-name {
    font-size: 18px;
    font-weight: 700;
    color: #f5f0e8;
}

.panel-region {
    font-size: 12px;
    color: #6c757d;
}

.panel-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
}

.panel-trend--up { color: #4a90d9; }
.panel-trend--down { color: #6c757d; }

.panel-price {
    font-size: 36px;
    font-weight: 900;
    color: #f5f0e8;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(245, 240, 232, 0.1);
}

.panel-chart {
    height: 80px;
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.panel-chart canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6c757d;
}

.panel-change { color: #4a90d9; font-weight: 600; }

/* PRODUCTS SECTION */
.section--products {
    background: linear-gradient(180deg, #1a1a2e 0%, #120a20 50%, #1a1a2e 100%);
}

.products-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-card {
    display: flex;
    align-items: center;
    gap: 48px;
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 24px;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.product-card[data-slide="left"] { transform: translateX(-60px); }
.product-card[data-slide="right"] { transform: translateX(60px); }
.product-card.revealed { opacity: 1; transform: translateX(0); }

@media (max-width: 768px) {
    .product-card { flex-direction: column; gap: 24px; padding: 24px; }
}

.product-render {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.render-sphere {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
}

.sphere-core {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.3), transparent 60%);
}

.sphere-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid;
    animation: sphereRotate 8s linear infinite;
}

.sphere-ring--2 {
    inset: -20px;
    animation-duration: 12s;
    animation-direction: reverse;
}

.render-sphere--blue {
    background: radial-gradient(circle at 35% 35%, #4a90d9, #1a3a5c);
    box-shadow: 0 0 40px rgba(74, 144, 217, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.render-sphere--blue .sphere-ring { border-color: rgba(74, 144, 217, 0.3); }

.render-sphere--gold {
    background: radial-gradient(circle at 35% 35%, #e8b84b, #7a5a1a);
    box-shadow: 0 0 40px rgba(232, 184, 75, 0.4), inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.render-sphere--gold .sphere-ring { border-color: rgba(232, 184, 75, 0.3); }

.render-sphere--mixed {
    background: radial-gradient(circle at 35% 35%, #4a90d9, #e8b84b, #1a1a2e);
    box-shadow: 0 0 40px rgba(74, 144, 217, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.render-sphere--mixed .sphere-ring { border-color: rgba(123, 47, 247, 0.3); }

@keyframes sphereRotate {
    0% { transform: rotateX(60deg) rotateZ(0deg); }
    100% { transform: rotateX(60deg) rotateZ(360deg); }
}

.product-info { flex: 1; }

.product-name {
    font-size: 24px;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 15px;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    gap: 24px;
    align-items: center;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #e8b84b;
}

.product-rating {
    font-size: 12px;
    font-weight: 600;
    color: #4a90d9;
    padding: 4px 12px;
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 12px;
    letter-spacing: 1px;
}

/* GLOBAL SECTION */
.section--global {
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a1a 50%, #1a1a2e 100%);
}

.globe-container {
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.globe-visual {
    position: relative;
    width: 340px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
}

.globe-ring--outer {
    width: 320px;
    height: 320px;
    border-color: rgba(74, 144, 217, 0.15);
    animation: globeSpin 20s linear infinite;
}

.globe-ring--middle {
    width: 240px;
    height: 240px;
    border-color: rgba(232, 184, 75, 0.12);
    animation: globeSpin 15s linear infinite reverse;
}

.globe-ring--inner {
    width: 160px;
    height: 160px;
    border-color: rgba(74, 144, 217, 0.2);
    animation: globeSpin 10s linear infinite;
}

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

.globe-center {
    position: relative;
    z-index: 2;
    text-align: center;
}

.globe-count {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: #e8b84b;
    text-shadow: 0 0 30px rgba(232, 184, 75, 0.3);
}

.globe-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.globe-node {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.node-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a90d9;
    box-shadow: 0 0 10px rgba(74, 144, 217, 0.6);
}

.node-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(245, 240, 232, 0.7);
    letter-spacing: 1px;
}

.participant-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.p-stat {
    text-align: center;
    min-width: 160px;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.p-stat[data-slide="left"] { transform: translateX(-40px); }
.p-stat[data-slide="center"] { transform: translateY(30px); }
.p-stat[data-slide="right"] { transform: translateX(40px); }
.p-stat.revealed { opacity: 1; transform: translate(0, 0); }

.p-stat-icon {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.p-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #f5f0e8;
    margin-bottom: 4px;
}

.p-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* CTA / FOOTER SECTION */
.section--cta {
    min-height: auto;
    background: linear-gradient(180deg, #1a1a2e 0%, #0d0d1a 100%);
    display: flex;
    flex-direction: column;
}

.ticker-bar {
    width: 100%;
    overflow: hidden;
    background: rgba(74, 144, 217, 0.05);
    border-top: 1px solid rgba(74, 144, 217, 0.1);
    border-bottom: 1px solid rgba(74, 144, 217, 0.1);
    padding: 12px 0;
}

.ticker-track {
    display: flex;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
}

.ticker-item {
    font-size: 14px;
    font-weight: 500;
    color: #f5f0e8;
    padding: 0 16px;
}

.ticker-item em {
    font-style: normal;
    font-weight: 700;
}

.ticker-item em.up { color: #4a90d9; }
.ticker-item em.down { color: #6c757d; }

.ticker-separator {
    color: rgba(232, 184, 75, 0.4);
    font-size: 10px;
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.cta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.cta-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    background: linear-gradient(135deg, #f5f0e8, #4a90d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 16px;
    color: rgba(245, 240, 232, 0.6);
    max-width: 500px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    border-radius: 12px;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn--primary {
    background: linear-gradient(135deg, #4a90d9, #7b2ff7);
    color: #f5f0e8;
    box-shadow: 0 4px 24px rgba(74, 144, 217, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(74, 144, 217, 0.5);
}

.btn--secondary {
    background: transparent;
    color: #e8b84b;
    border: 1px solid rgba(232, 184, 75, 0.4);
}

.btn--secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 24px rgba(232, 184, 75, 0.2);
    border-color: rgba(232, 184, 75, 0.8);
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-top: 1px solid rgba(74, 144, 217, 0.1);
}

.footer-brand {
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, #4a90d9, #e8b84b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copy {
    font-size: 12px;
    color: #6c757d;
}

/* RESPONSIVE */
@media (max-width: 640px) {
    .section-inner { padding: 60px 20px; }
    .hero-stats { flex-direction: column; align-items: center; }
    .participant-stats { flex-direction: column; align-items: center; }
    .footer-bar { flex-direction: column; gap: 8px; text-align: center; }
    .cta-content { padding: 60px 20px; }
}
