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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #1a1a25;
    --bg-card-hover: #222233;
    --text-primary: #f0f0f5;
    --text-secondary: #9090a8;
    --text-muted: #606078;
    --accent: #f7931a;
    --accent-glow: rgba(247, 147, 26, 0.15);
    --accent-gradient: linear-gradient(135deg, #f7931a, #ffb347);
    --border: #2a2a3a;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

html.tg-scroll-auto {
    scroll-behavior: auto;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

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

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    will-change: transform;
}

.tg-webview .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 10, 15, 0.97);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-links a.active {
    color: var(--text-primary);
    position: relative;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ── Nav actions (mobile) ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.hamburger:hover {
    background: var(--accent-glow);
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.tg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    color: var(--accent);
    transition: all 0.2s ease;
    text-decoration: none;
}

.tg-btn:hover {
    background: var(--accent-glow);
    color: var(--accent);
    transform: scale(1.05);
}

/* ── Mobile menu ── */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 15, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mob-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 8px 24px;
    border-radius: 100px;
}

.mob-link:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.hamburger, .tg-btn, .mob-link {
    -webkit-tap-highlight-color: transparent !important;
}

@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-gradient);
    color: #0a0a0f;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-blur {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(247, 147, 26, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(247, 147, 26, 0.2);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

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

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

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

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

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

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ── Hero Visual ── */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

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

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(247, 147, 26, 0.6);
    animation: pulse-ring 3s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(247, 147, 26, 0.3);
}

.ring-1 { width: 400px; height: 400px; }
.ring-2 { width: 300px; height: 300px; animation-delay: 1s; }
.ring-3 { width: 200px; height: 200px; animation-delay: 2s; }

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.05); opacity: 0.6; }
}

.exchange-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.exchange-icon {
    font-size: 3rem;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(247, 147, 26, 0.3));
}

.exchange-icon:nth-child(2) { animation-delay: 0.5s; }
.exchange-icon:nth-child(3) { animation-delay: 1s; }
.exchange-icon:nth-child(4) { animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ── Hero screenshot ── */
.hero-screenshot-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.hero-screenshot-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(247,147,26,0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-screenshot-frame {
    position: relative;
    z-index: 1;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(247,147,26,0.25);
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.4),
        0 24px 80px rgba(0,0,0,0.5),
        0 0 40px rgba(247,147,26,0.08);
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s ease;
}

.hero-screenshot-frame:hover {
    transform: perspective(1000px) rotateY(-1deg) rotateX(1deg);
}

.hero-screenshot-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #1a1a22;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.screenshot-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.screenshot-url {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin-left: 8px;
    font-family: monospace;
    letter-spacing: 0.3px;
}

.hero-screenshot-frame img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto !important;
        padding: 20px 0 40px !important;
        align-items: flex-start !important;
    }
    .hero-screenshot-frame {
        transform: none;
    }
    .hero-screenshot-wrap {
        max-width: 100%;
    }
}

/* ── Sections ── */
section {
    padding: 100px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ── About / Steps ── */
.about {
    background: var(--bg-secondary);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    padding: 32px;
    flex: 1;
    max-width: 280px;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    transition: var(--transition);
}

.step:hover .step-icon {
    background: var(--accent-glow);
    border-color: rgba(247, 147, 26, 0.3);
    transform: translateY(-4px);
}

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

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

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 56px;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── Exchanges ── */
.exchange-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.exchange-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.partner-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.partner-desc {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
}

.exchange-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(247, 147, 26, 0.4);
    transform: translateY(-2px);
    color: var(--accent);
}

.exchange-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.exchange-note p {
    max-width: 600px;
    margin: 0 auto;
}

/* ── CTA ── */
.cta-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 80px 48px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.cta-card .btn-primary {
    margin: 0 auto;
}

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

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

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 280px;
}

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

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

.footer-support {
    text-align: center;
    margin-bottom: 24px;
}

.support-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: .85rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 100px;
}

.support-toggle:hover {
    color: var(--accent);
    background: var(--accent-glow);
}

.support-toggle span {
    display: inline-block;
    transition: transform .3s;
    margin-right: 6px;
}

.footer-support.open .support-toggle span {
    transform: rotate(180deg);
}

.support-content {
    display: none;
    margin-top: 16px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-support.open .support-content {
    display: flex;
}

.support-qr {
    width: 200px;
    height: 200px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.support-details {
    color: var(--text-secondary);
    font-size: .8rem;
    line-height: 1.8;
}



.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0 0;
    margin-top: 32px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: center;
}

.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

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

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

    .hero-subtitle {
        margin: 0 auto 36px;
    }

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

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

    .globe-decoration {
        width: 300px;
        height: 300px;
    }

    .ring-1 { width: 300px; height: 300px; }
    .ring-2 { width: 220px; height: 220px; }
    .ring-3 { width: 150px; height: 150px; }

    h1 {
        font-size: 2.8rem;
    }
}

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

    .nav-actions {
        display: flex;
    }

    .navbar .btn-primary {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .navbar .container {
        height: 64px;
    }

    .mobile-menu {
        top: 64px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    .exchange-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        padding: 48px 24px;
    }

    .cta-card h2 {
        font-size: 1.8rem;
    }

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

    .section-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .exchange-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .exchange-card {
        padding: 16px 12px;
        font-size: 0.9rem;
    }
}

/* ── Tools Section ── */
.tools-section {
    background: var(--bg-primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.tool-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tool-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
}

.tool-free:hover {
    border-color: rgba(247, 147, 26, 0.4);
    box-shadow: 0 8px 32px rgba(247, 147, 26, 0.08);
}

.tool-pro:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08);
}

.tool-badge-free,
.tool-badge-pro {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.tool-badge-free {
    background: rgba(247, 147, 26, 0.12);
    color: var(--accent);
    border: 1px solid rgba(247, 147, 26, 0.2);
}

.tool-badge-pro {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tool-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.tool-pro .tool-icon {
    color: #a78bfa;
}

.tool-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.tool-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.tool-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-top: 4px;
}

.tool-pro .tool-link {
    color: #a78bfa;
}

@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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