/* ============================================
   TG Landing — Premium Bridge Page
   ============================================ */

:root {
    --bg-primary: #0a0e17;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --accent-blue: #0088cc;
    --accent-cyan: #00d4ff;
    --accent-purple: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #0088cc 0%, #00d4ff 50%, #7c3aed 100%);
    --btn-primary-bg: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
    --btn-secondary-bg: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --glow-blue: rgba(0, 136, 204, 0.4);
    --glow-purple: rgba(124, 58, 237, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ---- Background particles ---- */
.bg-particles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* ---- Glow orbs ---- */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--glow-blue);
    top: -100px;
    right: -100px;
    opacity: 0.3;
    animation: orb-drift 12s ease-in-out infinite alternate;
}

.glow-orb-2 {
    width: 350px;
    height: 350px;
    background: var(--glow-purple);
    bottom: -80px;
    left: -80px;
    opacity: 0.25;
    animation: orb-drift 15s ease-in-out infinite alternate-reverse;
}

.glow-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(0, 212, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    animation: orb-pulse 8s ease-in-out infinite;
}

@keyframes orb-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 30px); }
}

@keyframes orb-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.25; }
}

/* ---- Container ---- */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ---- Logo ---- */
.logo-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 36px;
    opacity: 0;
    transform: scale(0.5);
    animation: pop-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.logo-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, #0088cc, #00d4ff, #7c3aed, #a855f7, #0088cc) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: ring-spin 6s linear infinite;
}

@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

.logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #0066aa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tg-icon {
    width: 52px;
    height: 52px;
}

@keyframes pop-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---- Title ---- */
.title {
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.5s ease-out 0.4s forwards;
}

.title-line {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

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

@keyframes slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Subtitle ---- */
.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 360px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.5s ease-out 0.55s forwards;
}

/* ---- Stats bar ---- */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 36px;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.5s ease-out 0.65s forwards;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

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

/* ---- CTA Buttons ---- */
.cta-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.5s ease-out 0.75s forwards;
}

.btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 18px 22px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--btn-primary-bg);
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.35), 0 0 0 1px rgba(0, 170, 255, 0.15) inset;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 32px rgba(0, 136, 204, 0.5), 0 0 0 1px rgba(0, 170, 255, 0.25) inset;
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35), 0 0 0 1px rgba(168, 85, 247, 0.15) inset;
}

.btn-secondary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.25) inset;
}

/* Button glow sweep */
.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transition: none;
    animation: glow-sweep 4s ease-in-out infinite;
}

@keyframes glow-sweep {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

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

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.btn-label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.btn-sub {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 2px;
    font-weight: 400;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn-arrow svg {
    width: 100%;
    height: 100%;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
    opacity: 1;
}

/* ---- Trust badges ---- */
.trust-badges {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(20px);
    animation: slide-up 0.5s ease-out 0.85s forwards;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.badge-icon {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
}

/* ---- Footer note ---- */
.footer-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0;
    animation: slide-up 0.5s ease-out 0.95s forwards;
    transform: translateY(10px);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .container {
        padding: 32px 18px;
    }

    .title-line {
        font-size: 1.5rem;
    }

    .stats-bar {
        gap: 14px;
        padding: 14px 20px;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .trust-badges {
        gap: 16px;
    }

    .glow-orb-1 {
        width: 250px;
        height: 250px;
    }

    .glow-orb-2 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 360px) {
    .trust-badges {
        flex-direction: column;
        gap: 8px;
    }

    .stats-bar {
        gap: 10px;
        padding: 12px 16px;
    }
}

/* ---- Hover ripple effect on buttons (touch friendly) ---- */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn:hover::after {
    opacity: 1;
}
