﻿/* ============================================================
   GibiSwap — style.css
   ============================================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary:       #050b18;
    --bg-secondary:     #0a1628;
    --bg-card:          #0e1c33;
    --bg-card-hover:    #122040;
    --accent:           #FFD602;
    --accent-rgb:       255, 214, 2;
    --accent2:          #FF8C00;
    --accent2-rgb:      255, 140, 0;
    --text-primary:     #f0f6ff;
    --text-secondary:   #8899b8;
    --text-muted:       #4a5a7a;
    --border:           rgba(255, 214, 2, 0.14);
    --border-hover:     rgba(255, 214, 2, 0.40);
    --gradient:         linear-gradient(135deg, #FFD602 0%, #FF8C00 100%);
    --gradient-soft:    linear-gradient(135deg, rgba(255,214,2,0.15), rgba(255,140,0,0.15));
    --shadow:           0 4px 24px rgba(0, 0, 0, 0.5);
    --shadow-accent:    0 0 48px rgba(255, 214, 2, 0.14);
    --radius:           16px;
    --radius-sm:        10px;
    --radius-xs:        6px;
    --transition:       0.3s ease;
    --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --navbar-height:    72px;
    --container-max:    1180px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

button {
    cursor: pointer;
    font-family: var(--font);
    border: none;
    background: none;
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Image placeholder — shows a styled box until real images are placed */
.img-placeholder {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px dashed rgba(255, 214, 2, 0.2);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder::after {
    content: attr(data-label);
    position: absolute;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.img-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
}

/* Hide label when image loads */
.img-placeholder img[src]:not([src=""]) + .img-placeholder::after,
.img-placeholder:has(img[src]:not([src=""]))::after {
    display: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: #091830;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 214, 2, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 214, 2, 0.40);
    color: #091830;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 11, 24, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--border);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    flex-shrink: 0;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: transparent;
}

.navbar-name {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition);
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.navbar-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.35s ease;
    transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.navbar-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(5, 11, 24, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 28px;
    z-index: 999;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu .nav-link {
    padding: 13px 16px;
    font-size: 1rem;
    border-radius: 10px;
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: ;
    border: 1px solid ;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--navbar-height) + 60px) 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient( 1px, transparent 1px),
        linear-gradient(90deg,  1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    pointer-events: none;
}

.hero-glow-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -150px;
    background: var(--accent);
}

.hero-glow-2 {
    width: 600px;
    height: 600px;
    bottom: -150px;
    right: -100px;
    background: var(--accent2);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height));
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: ;
    border: 1px solid ;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: pulse-dot 2.2s infinite ease-in-out;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 ; }
    50%       { opacity: 0.7; box-shadow: 0 0 0 6px ; }
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.stat-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 4px;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .hero-visual {
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    .hero .container {
        text-align: center;
    }
    .hero-badge,
    .hero-cta {
        justify-content: center;
    }
    .hero-subtitle {
        max-width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
}

.hero-visual .img-placeholder {
    width: 100%;
    max-width: 540px;
    box-shadow: var(--shadow-accent);
}

/* ============================================================
   FEATURE CARDS (what-is section)
   ============================================================ */
.cards-grid {
    margin-bottom: 52px;
}

.card {
    height: 100%;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: ;
    border: 1px solid ;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    transition: all var(--transition);
}

.card:hover .card-icon {
    background: ;
    box-shadow: 0 0 20px ;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.68;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps-wrap {
    align-items: center;
}

.steps {
    display: flex;
    flex-direction: column;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
    color: #091830;
    box-shadow: 0 0 24px rgba(255, 214, 2, 0.3);
}

.step-content {
    padding-bottom: 4px;
}

.step-content h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 5px;
    margin-top: 8px;
}

.step-content p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.step-connector {
    margin-left: 20px;
    width: 2px;
    height: 28px;
    background: linear-gradient(to bottom, , );
    flex-shrink: 0;
}

.steps-visual .img-placeholder {
    width: 100%;
}

/* ============================================================
   TRUST GRID (why)
   ============================================================ */
.trust-grid {
    align-items: center;
}

.trust-visual .img-placeholder {
    width: 100%;
}

.trust-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.trust-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.trust-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: ;
    border: 1px solid ;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all var(--transition);
}

.trust-item:hover .trust-icon {
    background: ;
    box-shadow: 0 0 16px ;
}

.trust-icon svg {
    width: 20px;
    height: 20px;
}

.trust-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.trust-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.68;
}

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.arch-card {
    height: 100%;
}

.arch-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.arch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity var(--transition);
}

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

.arch-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-accent);
}

.arch-num {
    font-size: 2.4rem;
    font-weight: 900;
    color: ;
    letter-spacing: -2px;
    margin-bottom: 10px;
    line-height: 1;
}

.arch-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.arch-card p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.arch-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    background: ;
    border: 1px solid ;
    color: var(--accent);
    font-size: 0.73rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.3px;
}

/* ============================================================
   ECOSYSTEM
   ============================================================ */
.eco-grid {
    margin-bottom: 18px;
}

.eco-card {
    height: 100%;
}

.eco-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eco-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-accent);
}

.eco-card-featured {
    border-color: ;
    background: linear-gradient(160deg, var(--bg-card), );
}

.eco-logo {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.eco-logo-ph {
    width: 140px;
    height: 72px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
}

.eco-partner-logo {
    max-height: 72px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    filter: brightness(1.05);
}

.eco-logo-main-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-main-logo {
    height: 68px;
    width: auto;
    background: transparent;
    border-radius: 0;
    filter: drop-shadow(0 0 20px rgba(255, 214, 2, 0.4));
}

.eco-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.eco-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
}

.eco-role {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.eco-role-main {
    background: ;
    border-color: ;
    color: var(--accent);
}

.eco-extra-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: all var(--transition);
}

.eco-extra-card:hover {
    border-color: var(--border-hover);
}

.eco-extra-icon {
    flex-shrink: 0;
    height: 44px;
    display: flex;
    align-items: center;
}

.eco-extra-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

.eco-extra-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.eco-extra-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.68;
}

/* ============================================================
   TOKENOMICS
   ============================================================ */
.token-meta {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 860px;
    margin: 0 auto 60px;
    background: var(--bg-card);
}

.token-meta-item {
    flex: 1;
    padding: 22px 20px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.token-meta-item:last-child {
    border-right: none;
}

.token-meta-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
    font-weight: 600;
}

.token-meta-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

.token-meta-value.accent {
    color: var(--accent);
    font-size: 1.2rem;
}

.tokenomics-content {
    align-items: start;
    margin-bottom: 48px;
}

.tokenomics-chart-wrap {
    position: relative;       /* reference point for the info card */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-bottom: 216px;    /* reserved space for the info card */
}

.tokenomics-chart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.donut-chart {
    width: 280px;
    height: 280px;
    transform: rotate(-90deg);
    overflow: visible;
}

.donut-center {
    position: absolute;
    text-align: center;
    pointer-events: none;
}

.donut-center-pct {
    display: block;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    transition: color 0.3s ease;
}

.donut-center-name {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    max-width: 90px;
    text-align: center;
    line-height: 1.3;
}

.tokenomics-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.legend-item:hover,
.legend-item.is-active {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.legend-item.is-active {
    box-shadow: 0 0 0 1px var(--border-hover) inset;
}

.legend-item.is-dimmed {
    opacity: 0.35;
    transition: opacity 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.legend-info {
    flex: 1;
}

.legend-name {
    font-weight: 600;
    font-size: 0.88rem;
    display: block;
}

.legend-detail {
    font-size: 0.76rem;
    color: var(--text-secondary);
    display: block;
    margin-top: 2px;
}

.legend-pct {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

/* Chart info card — absolute positioning: no layout impact */
.chart-info-card {
    position: absolute;
    bottom: 8px;               /* anchored to the bottom of the wrap padding-bottom area */
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    z-index: 2;
}

.chart-info-card.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.chart-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.chart-info-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
    transition: background 0.25s ease;
}

.chart-info-title {
    font-size: 0.9rem;
    font-weight: 700;
    flex: 1;
}

.chart-info-badge {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.chart-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    margin-bottom: 7px;
}

.chart-info-row:last-child {
    margin-bottom: 0;
}

.chart-info-key {
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.chart-info-val {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    line-height: 1.4;
}

/* Burn box */
.burn-box {
    background: linear-gradient(135deg,
        rgba(239, 68, 68, 0.06) 0%,
         100%);
    border: 1px solid rgba(239, 68, 68, 0.18);
    border-radius: var(--radius);
    padding: 30px 32px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
    margin-bottom: 48px;
    transition: all var(--transition);
}

.burn-box:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.burn-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
}

.burn-icon svg {
    width: 24px;
    height: 24px;
}

.burn-text h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.burn-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Allocation table */
.table-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.table-scroll {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.allocation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
    min-width: 580px;
}

.allocation-table th {
    padding: 13px 16px;
    text-align: left;
    background: var(--bg-card);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.allocation-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    vertical-align: middle;
    white-space: nowrap;
}

.allocation-table td:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.allocation-table tr:last-child td {
    border-bottom: none;
}

.allocation-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition);
}

.faq-item.open {
    border-color: ;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition);
    line-height: 1.4;
}

.faq-q:hover {
    color: var(--accent);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.35s ease, color var(--transition);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-a p {
    padding: 0 22px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-inner {
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 0;
}

.footer-name {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 14px;
}

.footer-disclaimer-inline {
    display: inline-block;
    font-size: 0.76rem;
    color: var(--text-muted);
    padding: 5px 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
}


.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    padding: 4px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

/* Form layout */
.contact-form {
    max-width: 840px;
    margin: 0 auto;
}

.form-grid {
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
}

.form-group-full {
    /* spans both columns when inside grid — handled outside grid */
}

/* Labels */
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.req-mark {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

.optional-mark {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Inputs & Textarea */
.contact-form input,
.contact-form textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.92rem;
    padding: 13px 16px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(255, 214, 2, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 214, 2, 0.08);
    background: var(--bg-card-hover);
}

.contact-form textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.65;
}

/* Error state */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/* Valid state */
.form-group.is-valid input,
.form-group.is-valid textarea {
    border-color: rgba(16, 185, 129, 0.5);
}

/* Error messages */
.field-error {
    display: none;
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 2px;
}

.form-group.has-error .field-error {
    display: block;
}

/* Character counter */
.char-counter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.char-bar-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 100px;
    overflow: hidden;
}

.char-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 100px;
    background: #ef4444;
    transition: width 0.2s ease, background 0.4s ease;
}

/* Bar states — set by JS via data attribute */
.char-bar-track[data-state="under"]  .char-bar-fill { background: #ef4444; }
.char-bar-track[data-state="valid"]  .char-bar-fill { background: #FFD602; }
.char-bar-track[data-state="warn"]   .char-bar-fill { background: #FF8C00; }
.char-bar-track[data-state="full"]   .char-bar-fill { background: #ef4444; }

.char-count {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
    transition: color 0.3s ease;
}

.char-count.under { color: #ef4444; }
.char-count.valid { color: var(--accent); }
.char-count.warn  { color: var(--accent2); }

/* Form footer */
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Success state */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 56px 24px;
    max-width: 480px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease forwards;
}

.form-success[aria-hidden="false"] {
    display: flex;
}

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

.form-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 214, 2, 0.1);
    border: 2px solid rgba(255, 214, 2, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.form-success-icon svg {
    width: 28px;
    height: 28px;
}

.form-success h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.form-success p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============================================================
   OFFICIAL CHANNELS — CAROUSEL
   ============================================================ */
.channel-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
    flex-shrink: 0;
}

.channel-arrow:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--accent);
}

.channel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.channel-viewport {
    flex: 1;
    overflow: hidden;
}

.channel-track {
    display: flex;
    gap: 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.channel-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    flex-shrink: 0;
    width: 108px;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.channel-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--accent);
    transform: translateY(-3px);
}

.channel-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.channel-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}

@media (min-width: 992px) {
    .channel-arrow {
        display: none;
    }
    .channel-viewport {
        overflow: visible;
        flex: none;
        width: 100%;
    }
    .channel-track {
        flex-wrap: wrap;
        justify-content: center;
        transform: none !important;
    }
}

/* ============================================================
   SUBSCRIBE SECTION
   ============================================================ */
.subscribe-section {
    background: var(--bg-secondary);
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.subscribe-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
}

.subscribe-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 214, 2, 0.04) 0%,
        rgba(255, 140, 0, 0.04) 100%);
    pointer-events: none;
}

.subscribe-text {
    min-width: 0;
}

.subscribe-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.25;
}

.subscribe-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
}

.subscribe-form-wrap {
    width: 100%;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.subscribe-input-wrap {
    display: flex;
    gap: 10px;
}

.subscribe-input {
    flex: 1;
    min-width: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 13px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.subscribe-input::placeholder {
    color: var(--text-muted);
}

.subscribe-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.subscribe-input.has-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.subscribe-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 13px 24px;
}

.subscribe-error {
    font-size: 0.8rem;
    color: #ef4444;
    min-height: 1.2em;
    display: block;
}

.subscribe-success {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(255, 214, 2, 0.08);
    border: 1px solid rgba(255, 214, 2, 0.25);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
}

.subscribe-success[aria-hidden="false"] {
    display: flex;
}

.subscribe-success svg {
    flex-shrink: 0;
}

/* ============================================================
   FOOTER SOCIAL ROW
   ============================================================ */
.footer-social-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    color: var(--accent);
    transform: translateY(-2px);
}

.social-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 900;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #091830;
    box-shadow: 0 4px 20px rgba(255, 214, 2, 0.35);
    opacity: 0;
    transform: translateY(16px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top-btn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.scroll-top-btn:hover {
    box-shadow: 0 6px 28px rgba(255, 214, 2, 0.55);
    transform: translateY(-2px) scale(1.05);
}

.scroll-top-btn:active {
    transform: translateY(0) scale(0.97);
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    /* Single-column view: chart-wrap stacks, info card stays absolute */
    .tokenomics-chart-wrap {
        padding-bottom: 224px;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .chart-info-card {
        width: 100%;
        max-width: 340px;
    }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    .navbar-nav {
        display: none;
    }

    .navbar-toggle {
        display: flex;
    }

    .section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .channel-carousel-wrap {
        gap: 10px;
    }

    .subscribe-card {
        padding: 36px 32px;
    }

    .footer-social-row {
        gap: 8px;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .form-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .eco-extra-card {
        flex-direction: column;
    }

    .token-meta {
        flex-direction: column;
    }

    .token-meta-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .token-meta-item:last-child {
        border-bottom: none;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .btn {
        width: 100%;
    }

    .donut-chart {
        width: 240px;
        height: 240px;
    }

    .channel-arrow {
        width: 32px;
        height: 32px;
    }
    .channel-item {
        /* (100vw - 32px container padding - 80px arrows - 20px carousel gaps - 24px item gaps) / 3 */
        width: calc((100vw - 156px) / 3);
        min-width: 56px;
        max-width: 90px;
        padding: 12px 8px;
    }
    .channel-name {
        white-space: normal;
        font-size: 0.65rem;
    }

    .subscribe-card {
        padding: 28px 20px;
    }

    .subscribe-input-wrap {
        flex-direction: column;
    }

    .subscribe-btn {
        width: 100%;
        justify-content: center;
    }

    .social-link span {
        display: none;
    }

    .social-link {
        padding: 10px;
        border-radius: 50%;
    }

    .social-icon {
        width: 18px;
        height: 18px;
    }
}
