/* TAIN Games - Ultimate Futuristic Design */
:root {
    --bg-dark: #050508;
    --bg-card: rgba(20, 20, 30, 0.6);
    --primary: #00f2ff;
    --secondary: #bd00ff;
    --accent: #ff0055;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-primary: 0 0 20px rgba(0, 242, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(189, 0, 255, 0.5);
    --font-main: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* === 3D Background === */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-dark);
    /* Fallback */
    overflow: hidden;
}

canvas {
    display: block;
}

/* === Typography & Utilities === */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.3);
}

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

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

.section-tag {
    display: inline-block;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
}

.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 40px var(--primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: var(--glow-primary);
}

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

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px var(--primary));
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
    box-shadow: var(--glow-primary);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-connect {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-display);
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-connect:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

/* === Hero Section === */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid rgba(0, 242, 255, 0.3);
    border-radius: 20px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.hero-title {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.float-item {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.float-1 {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--primary);
    animation-delay: 0s;
}

.float-2 {
    bottom: 20%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    animation-delay: -3s;
}

.float-3 {
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: var(--accent);
    transform: translate(-50%, -50%);
    animation-delay: -6s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* === Features Section === */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 16px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(0, 242, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* === Enhanced Tokenomics === */
.tokenomics {
    padding: 100px 0;
}

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

.chart-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 400px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.5;
}

.circle-segment {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% {
        stroke-dasharray: 0 100;
    }
}

.segment-1 {
    stroke: var(--primary);
}

.segment-2 {
    stroke: var(--secondary);
}

.segment-3 {
    stroke: var(--accent);
}

.segment-4 {
    stroke: #00ff88;
}

.segment-5 {
    stroke: #ffaa00;
}

.chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.total-supply {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.supply-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.token-info-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.token-info-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    color: var(--text-muted);
}

.highlight {
    color: #fff;
    font-weight: 600;
}

.contract-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.contract-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    width: 100%;
    border: 1px solid var(--glass-border);
}

.contract-box span {
    font-family: monospace;
    color: var(--primary) !important;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}

.btn-copy:hover {
    color: #fff;
}

.distribution-list {
    display: grid;
    gap: 15px;
}

.dist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-1 {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.dot-2 {
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.dot-3 {
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.dot-4 {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.dot-5 {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

/* === Trade Section (Swap) === */
.trade-section {
    padding: 100px 0;
    background: radial-gradient(circle at center, rgba(0, 242, 255, 0.05), transparent 70%);
}

.trade-container {
    max-width: 500px;
    margin: 0 auto;
}

.trade-header {
    text-align: center;
    margin-bottom: 40px;
}

.swap-card {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.swap-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--bg-card);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.token-input-group {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 15px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.token-input-group:focus-within {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.5);
}

.input-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.input-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-box input {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    width: 100%;
    outline: none;
}

.token-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.token-selector:hover {
    background: rgba(255, 255, 255, 0.2);
}

.token-selector img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.tain-emoji {
    font-size: 20px;
}

.swap-divider {
    display: flex;
    justify-content: center;
    margin: -15px 0;
    position: relative;
    z-index: 2;
}

.swap-icon-circle {
    background: var(--bg-card);
    border: 4px solid var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: 0.3s;
}

.swap-icon-circle:hover {
    transform: rotate(180deg);
    color: #fff;
    background: var(--primary);
}

.price-info {
    display: flex;
    justify-content: space-between;
    padding: 15px 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.btn-swap {
    margin-top: 10px;
    font-size: 16px;
    padding: 16px;
}

/* === Roadmap === */
.roadmap {
    padding: 100px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: 0.3s;
}

.timeline-content:hover {
    transform: scale(1.02);
    border-color: var(--secondary);
    box-shadow: var(--glow-secondary);
}

.timeline-phase {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

/* === Footer === */
.footer {
    background: #000;
    padding: 80px 0 30px;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 10px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

    .chart-container {
        margin-bottom: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 10px !important;
    }

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

    .nav-links {
        display: none;
    }
}