/* ========================================
   Boot Sequence Animation - Terminal/Code Style (kept)
======================================== */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.boot-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.boot-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

.boot-content {
    max-width: 700px;
    width: 90%;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.boot-ascii {
    color: #D4A500;
    font-size: clamp(6px, 1.2vw, 10px);
    line-height: 1.2;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0;
    animation: bootFadeIn 0.5s ease forwards;
    white-space: pre;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(212, 165, 0, 0.5);
}

.boot-version {
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-bottom: 40px;
    opacity: 0;
    animation: bootFadeIn 0.3s ease 0.3s forwards;
}

.boot-version span {
    color: #D4A500;
}

.boot-terminal-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    opacity: 0;
    animation: bootFadeIn 0.3s ease 0.5s forwards;
    position: relative;
}

/* Large Logo Shadow Behind Terminal */
.boot-logo-shadow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: logoShadowFadeIn 1s ease 0.8s forwards;
}

.boot-logo-shadow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.06;
    filter: blur(20px);
}

@keyframes logoShadowFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.boot-terminal {
    background: #1a1a1a;
    border: 1px solid rgba(212, 165, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    width: 380px;
    position: relative;
    z-index: 1;
}

/* Connected Modules Styles */
.boot-modules {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    padding-left: 25px;
}

.module-connection {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Grey base line */
.module-connection::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #333;
    z-index: 0;
}

/* Golden line overlay - grows with steps */
.module-connection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: #D4A500;
    z-index: 1;
    transition: height 0.4s ease;
}

.module-connection.step-1::after {
    height: 33px;
}

.module-connection.step-2::after {
    height: 123px;
}

.module-connection.step-3::after {
    height: 100%;
}

.connection-line {
    display: none;
}

.connection-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #333;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s ease;
}

/* Position nodes to align with modules - fixed positions */
.connection-node.node-1 {
    top: 28px; /* Center of first module */
}

.connection-node.node-2 {
    top: 118px; /* Center of second module */
}

.connection-node.node-3 {
    bottom: 0; /* This one extends with terminal */
}

.connection-node.active {
    background: #4ade80;
    border-color: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.connection-node.node-1.active {
    background: #D4A500;
    border-color: #D4A500;
    box-shadow: 0 0 10px rgba(212, 165, 0, 0.5);
}

.connection-node.node-2.active {
    background: #D4A500;
    border-color: #D4A500;
    box-shadow: 0 0 10px rgba(212, 165, 0, 0.5);
}

.connection-node.node-3.active {
    background: #D4A500;
    border-color: #D4A500;
    box-shadow: 0 0 10px rgba(212, 165, 0, 0.5);
}

.boot-module {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(212, 165, 0, 0.3);
    border-radius: 20px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    opacity: 0.3;
    transform: translateX(10px);
    transition: all 0.4s ease;
    min-width: 180px;
    backdrop-filter: blur(10px);
}

.boot-module.connected {
    opacity: 1;
    transform: translateX(0);
    border-color: #4ade80;
}

.boot-module.module-polymarket.connected {
    border-color: #D4A500;
}

.boot-module.module-kalshi.connected {
    border-color: #D4A500;
}

.boot-module.module-telegram.connected {
    border-color: #D4A500;
}

.module-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.boot-module.module-polymarket .module-glow {
    background: radial-gradient(ellipse at center, rgba(212, 165, 0, 0.15) 0%, transparent 70%);
}

.boot-module.module-kalshi .module-glow {
    background: radial-gradient(ellipse at center, rgba(212, 165, 0, 0.15) 0%, transparent 70%);
}

.boot-module.module-telegram .module-glow {
    background: radial-gradient(ellipse at center, rgba(212, 165, 0, 0.15) 0%, transparent 70%);
}

.boot-module.connected .module-glow {
    opacity: 1;
}

.module-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    flex-shrink: 0;
}

.module-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.module-icon svg {
    width: 24px;
    height: 24px;
    color: #D4A500;
}

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

.module-status .status-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aaa;
    margin-right: 6px;
    transition: all 0.3s ease;
}

.boot-module.connected .status-dot {
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

.boot-module.module-polymarket.connected .status-dot {
    background: #D4A500;
    box-shadow: 0 0 8px rgba(212, 165, 0, 0.6);
}

.boot-module.module-kalshi.connected .status-dot {
    background: #D4A500;
    box-shadow: 0 0 8px rgba(212, 165, 0, 0.6);
}

.boot-module.module-telegram.connected .status-dot {
    background: #D4A500;
    box-shadow: 0 0 8px rgba(212, 165, 0, 0.6);
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.module-status .status-text {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 10px;
    color: #666;
    transition: color 0.3s ease;
}

.boot-module.connected .status-text {
    color: #4ade80;
}

.boot-module.module-polymarket.connected .status-text {
    color: #D4A500;
}

.boot-module.module-kalshi.connected .status-text {
    color: #D4A500;
}

.boot-module.module-telegram.connected .status-text {
    color: #D4A500;
}

/* Responsive for boot modules */
@media (max-width: 768px) {
    .boot-terminal-wrapper {
        flex-direction: column;
    }

    .boot-modules {
        flex-direction: row;
        justify-content: center;
        padding-left: 0;
        padding-top: 20px;
        gap: 12px;
        flex-wrap: wrap;
    }

    .module-connection {
        display: none;
    }

    .boot-module {
        margin-bottom: 0;
        min-width: auto;
        padding: 10px 14px;
    }

    .module-icon {
        width: 32px;
        height: 32px;
    }

    .module-status .status-text {
        font-size: 9px;
    }
}

/* Boot screen responsive - tablets */
@media (max-width: 900px) {
    .boot-content {
        max-width: 90%;
        padding: 30px 20px;
    }

    .boot-ascii {
        font-size: clamp(4px, 1vw, 8px);
        margin-bottom: 20px;
    }

    .boot-terminal {
        padding: 16px;
        min-height: 160px;
    }
}

/* Boot screen responsive - mobile */
@media (max-width: 600px) {
    .boot-content {
        max-width: 95%;
        padding: 20px 16px;
    }

    .boot-ascii {
        font-size: 3.5px;
        letter-spacing: 0.5px;
        margin-bottom: 16px;
        transform: scale(1);
        overflow: hidden;
    }

    .boot-version {
        font-size: 10px;
        margin-bottom: 24px;
    }

    .boot-terminal {
        padding: 12px;
        min-height: 140px;
    }

    .boot-line {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .boot-modules {
        gap: 8px;
    }

    .boot-module {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 14px;
    }

    .module-icon {
        width: 28px;
        height: 28px;
    }

    .module-status .status-text {
        font-size: 8px;
    }

    .boot-progress-text {
        font-size: 9px;
    }

    .boot-logo-shadow {
        width: 250px;
        height: 250px;
    }
}

/* Boot screen responsive - very small mobile */
@media (max-width: 400px) {
    .boot-ascii {
        font-size: 2.8px;
        letter-spacing: 0.3px;
    }

    .boot-version {
        font-size: 9px;
    }

    .boot-module {
        padding: 6px 10px;
    }

    .module-icon {
        width: 24px;
        height: 24px;
    }

    .boot-logo-shadow {
        width: 180px;
        height: 180px;
    }
}

.boot-line {
    display: flex;
    align-items: flex-start;
    margin-bottom: 6px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(5px);
}

.boot-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.boot-prompt {
    color: #D4A500;
    margin-right: 8px;
    flex-shrink: 0;
}

.boot-text {
    color: #888;
}

.boot-text.success {
    color: #10b981;
}

.boot-text.primary {
    color: #D4A500;
}

.boot-text.warning {
    color: #f59e0b;
}

.boot-text.highlight {
    color: #E5B800;
    text-shadow: 0 0 10px rgba(212, 165, 0, 0.5);
}

.boot-market {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 4px 0;
}

.boot-market-name {
    color: #888;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 20px;
}

.boot-market-odds {
    color: #a5b4fc;
    font-weight: 600;
    flex-shrink: 0;
}

.boot-market-odds.green {
    color: #10b981;
}

.boot-market-odds.red {
    color: #ef4444;
}

.boot-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #D4A500;
    animation: bootBlink 1s infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes bootBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

.boot-progress {
    margin-top: 20px;
    opacity: 0;
    animation: bootFadeIn 0.3s ease 0.7s forwards;
}

.boot-progress-bar {
    height: 2px;
    background: #1e1e2e;
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 8px;
}

.boot-progress-fill {
    height: 100%;
    background: #D4A500;
    width: 0%;
    transition: width 0.1s ease;
}

.boot-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #64748b;
}

.boot-progress-text span:last-child {
    color: #a5b4fc;
}

/* Hide scrollbar during boot */
body.booting {
    overflow: hidden;
}

/* ========================================
   CSS Variables & Reset - Modern Style with Colors
======================================== */
:root {
    --color-bg: #f5f5f0;
    --color-bg-secondary: #eaeae5;
    --color-bg-tertiary: #e0e0db;
    --color-text: #1a1a1a;
    --color-text-secondary: #4a4a4a;
    --color-text-muted: #7a7a7a;
    --color-primary: #D4A500;
    --color-primary-dim: #B8900A;
    --color-primary-light: #E5B800;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-border: #d0d0c8;
    --color-border-light: #e5e5dd;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(212, 165, 0, 0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Utility Classes
======================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    color: var(--color-primary);
}

/* ========================================
   Code Style Elements
======================================== */
.code-comment {
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-weight: 600;
}

.code-keyword {
    color: #569CD6;
    font-family: var(--font-mono);
    font-weight: 500;
}

.code-var {
    color: #9CDCFE;
    font-family: var(--font-mono);
    font-weight: 500;
}

.code-func {
    color: #DCDCAA;
    font-family: var(--font-mono);
    font-weight: 500;
}

.code-operator {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.code-paren {
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
}

.code-string {
    color: #CE9178;
    font-family: var(--font-mono);
}

/* ========================================
   Buttons - Modern Style
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: transparent;
}

.btn-primary:hover {
    background: var(--color-primary-dim);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(212, 165, 0, 0.1);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 15px;
}

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

/* ========================================
   Navigation - Modern Style
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: all var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 18px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
}

.logo-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.lang-toggle:hover {
    border-color: var(--color-primary);
}

.lang-active {
    color: var(--color-primary);
}

.lang-separator {
    color: var(--color-text-muted);
}

.lang-inactive {
    color: var(--color-text-muted);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(245, 245, 240, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 20px;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    z-index: 999;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: var(--color-bg-secondary);
    color: var(--color-primary);
}

.mobile-menu .btn {
    margin-top: 12px;
    text-align: center;
    justify-content: center;
}

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

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: -1;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(212, 165, 0, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(224, 224, 219, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.hero-badge .code-comment {
    margin-right: 4px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 17px;
    color: var(--color-text-secondary);
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.telegram-highlight {
    color: var(--color-primary);
    font-weight: 600;
    animation: telegramGlow 2s ease-in-out infinite;
}

@keyframes telegramGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 165, 0, 0.3);
    }
    50% {
        text-shadow: 0 0 25px rgba(212, 165, 0, 0.8), 0 0 40px rgba(212, 165, 0, 0.4);
    }
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
}

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

.stat-value {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text);
}

.stat-label {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* Phone Mockup - Telegram Style */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.phone-mockup {
    width: 320px;
    background: #1a1a1a;
    border-radius: 40px;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    padding: 12px;
}

.phone-mockup.tg-style {
    background: #1a1a1a;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #000;
    border-radius: 20px;
    z-index: 100;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #2a2a2a;
    border-radius: 50%;
}

.phone-screen {
    background: var(--color-bg);
    border-radius: 32px;
    overflow: hidden;
}

/* Telegram Header */
.tg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 12px 12px 12px;
    background: var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-border-light);
}

.tg-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tg-back-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.tg-back-btn:hover {
    background: var(--color-bg-tertiary);
}

.tg-back-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
}

.tg-avatar {
    width: 40px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tg-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tg-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tg-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
}

.tg-status {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tg-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

.tg-header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tg-header-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.tg-header-btn:hover {
    background: var(--color-bg-tertiary);
}

.tg-header-btn svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-secondary);
}

/* Telegram Messages Area */
.tg-messages {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 420px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--color-bg);
}

.tg-messages::-webkit-scrollbar {
    width: 3px;
}

.tg-messages::-webkit-scrollbar-track {
    background: transparent;
}

.tg-messages::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

/* Telegram Message Bubbles */
.message {
    padding: 8px 12px;
    max-width: 85%;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    font-family: var(--font-body);
}

.message.bot {
    background: var(--color-bg-secondary);
    border-radius: 4px 18px 18px 18px;
    align-self: flex-start;
    color: var(--color-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.message.bot::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--color-bg-secondary);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.message.user {
    background: var(--color-primary);
    color: #fff;
    border-radius: 18px 4px 18px 18px;
    align-self: flex-end;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(212, 165, 0, 0.3);
}

.message.user::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Message timestamp */
.message .msg-time {
    font-size: 10px;
    opacity: 0.6;
    margin-left: 8px;
    float: right;
    margin-top: 2px;
}

.message.user .msg-time {
    color: rgba(255, 255, 255, 0.7);
}

.message.bot .msg-time {
    color: var(--color-text-muted);
}

/* Read checks for user messages */
.message.user .msg-check {
    display: inline-block;
    margin-left: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
}

/* Telegram Input Area */
.tg-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border-light);
}

.tg-attach-btn,
.tg-send-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tg-attach-btn svg {
    width: 22px;
    height: 22px;
    color: var(--color-text-muted);
}

.tg-attach-btn:hover {
    background: var(--color-bg-tertiary);
}

.tg-attach-btn:hover svg {
    color: var(--color-text-secondary);
}

.tg-send-btn {
    background: var(--color-primary);
    width: 38px;
    height: 38px;
}

.tg-send-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
    margin-left: 2px;
}

.tg-send-btn:hover {
    background: var(--color-primary-dim);
    transform: scale(1.05);
}

.tg-input-field {
    flex: 1;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 8px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    min-height: 38px;
    display: flex;
    align-items: center;
}

.tg-input-text {
    color: var(--color-text);
}

.tg-cursor {
    color: var(--color-primary);
    animation: blink 1s infinite;
    margin-left: 1px;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Legacy chat styles - hidden for new TG style */
.chat-header {
    display: none;
}

.chat-messages {
    display: none;
}

.chat-input {
    display: none;
}

.chat-cursor {
    display: none;
}

/* Terminal Response Styles */
.terminal-line {
    padding: 2px 0;
    font-size: 10px;
    line-height: 1.5;
}

.term-label {
    color: var(--color-text-muted);
}

.term-value {
    color: var(--color-primary);
    font-weight: 600;
}

.term-mono {
    color: var(--color-text-secondary);
    font-size: 9px;
}

.term-success {
    color: var(--color-success);
    font-weight: 600;
}

.term-error {
    color: var(--color-error);
    font-weight: 600;
}

.term-muted {
    color: var(--color-text-muted);
    font-size: 9px;
}

.term-cmd {
    color: var(--color-primary);
}

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

/* ========================================
   Section Styles - Modern
======================================== */
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(224, 224, 219, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.section-badge .code-comment {
    margin-right: 4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ========================================
   Features Section - Modern
======================================== */
.features {
    padding: 100px 0;
    background: var(--color-bg);
}

.feature-command {
    display: inline-block;
    padding: 8px 14px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-primary);
}

/* ========================================
   How It Works Section - Modern
======================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 850px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    opacity: 0;
    transform: translateY(16px);
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(212, 165, 0, 0.3);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    max-width: 180px;
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--color-primary);
    margin-top: 30px;
    border-radius: 1px;
}

/* ========================================
   Affiliation Page Styles - Gaming
======================================== */
.affiliation-hero {
    position: relative;
    padding: 140px 0 80px;
}

.affiliation-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: -1;
}

.affiliation-hero-content {
    max-width: 650px;
    text-align: center;
    margin: 0 auto;
}

.affiliation-hero-content .hero-title {
    font-size: clamp(28px, 4vw, 44px);
}

.affiliation-hero-content .hero-description {
    max-width: 100%;
    margin: 0 auto 36px;
}

/* Commission Tiers */
.commission-tiers {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

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

.tier-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
}

.tier-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

.tier-card.tier-1 {
    border-color: var(--color-primary);
}

.tier-level {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.tier-percentage-large {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.tier-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tier-description {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.tier-example {
    padding: 12px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
}

.example-label {
    color: var(--color-text-muted);
}

.example-value {
    color: var(--color-primary);
    display: block;
    margin-top: 6px;
    font-weight: 600;
}

/* Visual Section - Gaming */
.visual-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.visual-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.visual-text .section-title {
    text-align: left;
}

.visual-text .section-description {
    text-align: left;
    margin-bottom: 36px;
}

.visual-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.visual-stat {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.visual-stat:hover {
    border-color: var(--color-text-muted);
}

.visual-stat-icon {
    font-size: 20px;
    filter: grayscale(80%);
}

.visual-stat-content {
    display: flex;
    flex-direction: column;
}

.visual-stat-title {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visual-stat-desc {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Affiliation Tree - Large */
.visual-tree-container {
    display: flex;
    justify-content: center;
}

.aff-tree-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.aff-tree,
.aff-tree-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.aff-node {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.aff-node.you {
    background: var(--color-primary);
    color: var(--color-bg);
    font-size: 13px;
    padding: 14px 32px;
}

.aff-node.tier1 {
    background: transparent;
    border: 1px solid var(--color-text-secondary);
    color: var(--color-text-secondary);
}

.aff-node.tier2 {
    background: transparent;
    border: 1px solid var(--color-text-muted);
    color: var(--color-text-muted);
    font-size: 10px;
    padding: 8px 16px;
}

.aff-node.tier3 {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-border);
    font-size: 9px;
    padding: 6px 12px;
}

.aff-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.aff-line {
    width: 1px;
    height: 16px;
    background: var(--color-border);
}

.aff-nodes {
    display: flex;
    gap: 8px;
}

/* Affiliation How It Works - Gaming */
.aff-how-it-works {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.aff-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 850px;
    margin: 0 auto;
}

.aff-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.aff-step-number {
    width: 56px;
    height: 56px;
    background: var(--color-bg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
    transition: all var(--transition-normal);
}

.aff-step:hover .aff-step-number {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(212, 165, 0, 0.2);
}

.aff-step-content h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.aff-step-content p {
    font-size: 13px;
    color: var(--color-text-secondary);
    max-width: 180px;
    line-height: 1.6;
}

.aff-step-connector {
    width: 60px;
    height: 1px;
    background: var(--color-border);
    margin-top: 28px;
    position: relative;
}

.aff-step-connector::after {
    content: '→';
    position: absolute;
    right: -6px;
    top: -9px;
    color: var(--color-text-muted);
    font-size: 14px;
}

/* ========================================
   Roadmap Section - Gaming
======================================== */
.roadmap {
    padding: 120px 0;
    background: var(--color-bg-secondary);
}

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

.roadmap-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--transition-normal);
}

.roadmap-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.roadmap-card:hover {
    border-color: var(--color-text-muted);
}

.roadmap-card::before {
    content: 'SOON';
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--color-text-muted);
    color: var(--color-bg);
    padding: 4px 10px;
    font-family: var(--font-heading);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
}

.roadmap-icon {
    font-size: 32px;
    margin-bottom: 18px;
    filter: grayscale(80%);
}

.roadmap-card h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.roadmap-card p {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.roadmap-command {
    display: inline-block;
    padding: 6px 12px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ========================================
   CTA Section - Gaming
======================================== */
.cta {
    padding: 100px 0;
    background: var(--color-bg);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 15px;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

/* ========================================
   Footer - Gaming
======================================== */
.footer {
    padding: 40px 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

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

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

.footer-brand .logo-icon {
    width: 48px;
    height: 48px;
}

.footer-brand .logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand .logo-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-copy {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ========================================
   Affiliation Preview Section
======================================== */
.affiliation-preview {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.affiliation-tiers-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tier-preview {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 160px;
}

.tier-preview:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.tier-preview.tier-1 {
    border-color: rgba(34, 197, 94, 0.3);
}

.tier-preview.tier-1:hover {
    border-color: #22c55e;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.tier-preview.tier-2 {
    border-color: rgba(212, 165, 0, 0.3);
}

.tier-preview.tier-2:hover {
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(212, 165, 0, 0.2);
}

.tier-preview.tier-3 {
    border-color: rgba(168, 85, 247, 0.3);
}

.tier-preview.tier-3:hover {
    border-color: #a855f7;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.2);
}

.tier-preview-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

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

.tier-percent {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-preview.tier-1 .tier-percent {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-preview.tier-3 .tier-percent {
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-preview-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
}

.affiliation-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.aff-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.aff-feature-icon {
    font-size: 20px;
}

.affiliation-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

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

.affiliation-cta .btn-secondary:hover {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: 2;
        margin-top: 40px;
    }

    .phone-mockup {
        width: 280px;
    }

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

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

    .visual-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .visual-text .section-title,
    .visual-text .section-description {
        text-align: center;
    }

    /* Affiliation visual section - tree under title on mobile */
    .visual-content {
        display: flex;
        flex-direction: column;
    }

    .visual-text {
        order: 1;
    }

    .visual-tree-container {
        order: 2;
        margin-top: 40px;
    }

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

    .affiliation-tiers-preview {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        align-items: center;
        justify-content: center;
    }

    .hero-stats .stat {
        flex: 0 0 auto;
        padding: 8px 12px;
        background: var(--color-bg-secondary);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
    }

    .hero-stats .stat-value {
        font-size: 16px;
    }

    .hero-stats .stat-label {
        font-size: 10px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .steps,
    .aff-steps {
        flex-direction: column;
        gap: 0;
    }

    /* Hide connectors on mobile */
    .step-connector,
    .aff-step-connector {
        display: none;
    }

    /* Steps container on mobile */
    .steps {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Steps as horizontal cards on mobile */
    .step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        padding: 20px;
        margin-bottom: 12px;
        gap: 16px;
        width: 100%;
    }

    .step:last-child {
        margin-bottom: 0;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 18px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-content {
        flex: 1;
    }

    .step-content h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .step-content p {
        font-size: 13px;
        max-width: 100%;
        margin: 0;
    }

    .aff-nodes {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .affiliation-features {
        display: none;
    }

    .tier-preview {
        width: 100%;
        max-width: 280px;
    }
}

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

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

    .phone-mockup {
        width: 240px;
    }

    .chat-messages {
        padding: 12px;
        min-height: 220px;
    }

    .feature-card {
        padding: 20px;
    }
}

/* ========================================
   New Features Grid - Modern Cards with Visuals
======================================== */
.features-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card-new {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.feature-card-new:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Feature Visual Area */
.feature-visual {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ===== WALLET VISUAL ===== */
.visual-wallet {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 165, 0, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
}

.wallet-card-main {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    width: 100%;
    max-width: 260px;
}

.visual-wallet .wallet-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.visual-wallet .wallet-icon {
    width: 32px;
    height: 32px;
    background: rgba(212, 165, 0, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-wallet .wallet-icon svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

.visual-wallet .wallet-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.visual-wallet .wallet-balance {
    margin-bottom: 12px;
}

.visual-wallet .balance-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.visual-wallet .balance-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text);
}

.visual-wallet .balance-value .currency {
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.visual-wallet .wallet-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.visual-wallet .address-text {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-muted);
}

.visual-wallet .network-badge {
    background: var(--color-primary);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
}

.wallet-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 260px;
    padding: 12px;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
}

.wallet-action-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== MARKETS VISUAL ===== */
.visual-markets {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(212, 165, 0, 0.08) 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.market-notification {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon.green {
    background: rgba(16, 185, 129, 0.15);
}

.notif-icon.green svg {
    width: 16px;
    height: 16px;
    color: var(--color-success);
}

.notif-icon.blue {
    background: rgba(212, 165, 0, 0.15);
}

.notif-icon.blue svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.notif-icon.purple {
    background: rgba(168, 85, 247, 0.15);
}

.notif-icon.purple svg {
    width: 16px;
    height: 16px;
    color: #a855f7;
}

.notif-content {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: center;
}

.notif-title {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

.notif-odds {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-secondary);
}

.notif-odds.green {
    color: var(--color-success);
}

.notif-odds.red {
    color: var(--color-error);
}

.search-input-visual {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-top: 4px;
}

.search-input-visual svg {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.search-input-visual span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-primary);
}

/* ===== TRADING VISUAL ===== */
.visual-trading {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(212, 165, 0, 0.08) 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.trade-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.trade-tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.trade-tag.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.trade-card-main {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px;
}

.trade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.trade-header .trade-market {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
}

.trade-type {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

.trade-type.buy {
    background: rgba(16, 185, 129, 0.15);
    color: var(--color-success);
}

.trade-type.sell {
    background: rgba(239, 68, 68, 0.15);
    color: var(--color-error);
}

.visual-trading .trade-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trade-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.trade-row span:first-child {
    color: var(--color-text-muted);
    font-family: var(--font-mono);
}

.trade-value {
    color: var(--color-text);
    font-weight: 600;
}

.trade-value.highlight {
    color: var(--color-primary);
}

.trade-btn-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: var(--color-success);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
}

.trade-btn-visual svg {
    width: 16px;
    height: 16px;
}

/* ===== POSITIONS VISUAL ===== */
.visual-positions {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
}

.position-card {
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

.pos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.pos-market {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
}

.pos-pnl {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
}

.pos-pnl.green {
    color: var(--color-success);
}

.pos-pnl.red {
    color: var(--color-error);
}

.pos-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pos-shares {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-muted);
}

.pos-value {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.pnl-card-visual {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-top: 4px;
}

.pnl-icon {
    width: 36px;
    height: 36px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pnl-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-success);
}

.pnl-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pnl-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pnl-value {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
}

.pnl-value.green {
    color: var(--color-success);
}

.pnl-value.red {
    color: var(--color-error);
}

/* ===== Feature Content Area ===== */
.feature-content {
    padding: 24px;
    border-top: 1px solid var(--color-border);
}

.feature-title-new {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
}

.feature-desc-new {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===== Responsive for new features grid ===== */
@media (max-width: 1024px) {
    .features-grid-new {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .feature-visual {
        height: 240px;
        padding: 16px;
    }

    .feature-content {
        padding: 20px;
    }

    .wallet-card-main {
        max-width: 220px;
        padding: 16px;
    }

    .visual-wallet .balance-value {
        font-size: 20px;
    }
}

/* ========================================
   Enhanced Responsive - Full Mobile Support
======================================== */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .nav-container {
        padding: 0 24px;
    }

    .nav-links {
        gap: 24px;
    }

    .hero .container {
        gap: 40px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 15px;
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    /* Navbar improvements */
    .navbar {
        padding: 16px 0;
    }

    .navbar.scrolled {
        padding: 12px 0;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 16px;
    }

    .lang-toggle {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* Mobile menu improvements */
    .mobile-menu {
        top: 56px;
        padding: 16px;
        gap: 8px;
    }

    .mobile-menu a {
        padding: 12px 16px;
        border-radius: var(--radius-sm);
        transition: background 0.2s ease;
    }

    .mobile-menu a:hover {
        background: var(--color-bg-secondary);
    }

    .mobile-menu .btn {
        margin-top: 8px;
        text-align: center;
    }

    /* Hero improvements */
    .hero {
        padding: 80px 0 50px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 15px;
        line-height: 1.6;
        max-width: 100%;
    }

    .hero-cta .btn {
        padding: 14px 24px;
        font-size: 14px;
    }

    .hero-cta .btn svg {
        width: 18px;
        height: 18px;
    }

    /* Phone mockup mobile */
    .phone-mockup {
        width: 260px;
    }

    .tg-messages {
        min-height: 350px;
        max-height: 350px;
    }

    /* Section spacing */
    .features,
    .how-it-works,
    .roadmap {
        padding: 60px 0;
    }

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

    /* Steps mobile */
    .step {
        padding: 20px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-content h3 {
        font-size: 16px;
    }

    .step-content p {
        font-size: 13px;
    }

    /* Roadmap mobile */
    .roadmap-card {
        padding: 20px;
    }

    .roadmap-quarter {
        font-size: 11px;
    }

    .roadmap-title {
        font-size: 16px;
    }

    /* Affiliation section */
    .affiliation-tiers-preview {
        gap: 12px;
    }

    .tier-preview {
        padding: 16px;
    }

    .tier-percent {
        font-size: 28px;
    }

    /* Affiliation hero - center button on tablet */
    .affiliation-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .affiliation-hero-content .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Footer mobile */
    .footer {
        padding: 40px 0;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-links a {
        font-size: 13px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    /* Base spacing */
    .container {
        padding: 0 16px;
    }

    /* Navbar mobile */
    .logo-text {
        font-size: 14px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    /* Hero mobile */
    .hero {
        padding: 70px 0 40px;
    }

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

    .hero-description {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .hero-badge {
        font-size: 10px;
        margin-bottom: 16px;
    }

    /* Affiliation hero - center button on mobile */
    .affiliation-hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .affiliation-hero-content .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Phone mockup small */
    .phone-mockup {
        width: 220px;
        padding: 8px;
        border-radius: 28px;
    }

    .phone-notch {
        width: 90px;
        height: 22px;
        top: 8px;
    }

    .phone-screen {
        border-radius: 22px;
    }

    .tg-header {
        padding: 32px 10px 10px 10px;
    }

    .tg-avatar {
        width: 32px;
        height: 32px;
    }

    .tg-name {
        font-size: 13px;
    }

    .tg-status {
        font-size: 10px;
    }

    .tg-messages {
        min-height: 300px;
        max-height: 300px;
        padding: 12px 8px;
    }

    .message {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 90%;
    }

    .tg-input-area {
        padding: 6px 8px;
    }

    .tg-input-field {
        padding: 6px 12px;
        min-height: 32px;
        font-size: 12px;
    }

    .tg-send-btn {
        width: 32px;
        height: 32px;
    }

    .tg-send-btn svg {
        width: 14px;
        height: 14px;
    }

    /* Section titles */
    .section-title {
        font-size: 22px;
    }

    .section-description {
        font-size: 14px;
    }

    .section-badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    /* Features cards */
    .feature-visual {
        height: 200px;
    }

    .feature-content {
        padding: 16px;
    }

    .feature-title-new {
        font-size: 16px;
    }

    .feature-desc-new {
        font-size: 13px;
    }

    /* Steps mobile small */
    .step {
        padding: 16px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-bottom: 12px;
    }

    /* Roadmap mobile small */
    .roadmap-card {
        padding: 16px;
    }

    .roadmap-items li {
        font-size: 12px;
    }

    /* Affiliation mobile */
    .tier-preview {
        padding: 14px;
    }

    .tier-percent {
        font-size: 24px;
    }

    .tier-label {
        font-size: 10px;
    }

    /* Footer mobile small */
    .footer-brand .logo-text {
        font-size: 14px;
    }

    .footer-copy p {
        font-size: 11px;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 20px;
    }

    .phone-mockup {
        width: 200px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }

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