/* Landing Page — shadcn dark theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #09090b;
    --foreground: #fafafa;
    --card: #09090b;
    --card-foreground: #fafafa;
    --primary: #fafafa;
    --primary-foreground: #18181b;
    --secondary: #27272a;
    --muted: #27272a;
    --muted-foreground: #a1a1aa;
    --border: #27272a;
    --ring: #d4d4d8;
    --radius: 0.625rem;
    --brand: #00d4ff;
    --brand-foreground: #09090b;
    --primary-blue: #00d4ff;
    --telegram-blue: #29b6f6;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
}

/* ===== Background Media (shared with subscription page) ===== */
.media-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--background);
    overflow: hidden;
}

.background-image,
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.background-image {
    opacity: 1;
    z-index: 1;
}

.background-video {
    opacity: 1;
    z-index: 2;
}

.background-image.hidden {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 9, 11, 0.88);
    z-index: 3;
}

/* ===== Top Header ===== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem;
}

.top-header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.top-header-lang {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.top-header-spacer {
    flex-shrink: 0;
    width: 80px;
}

@media (max-width: 768px) {
    .top-header-spacer {
        width: 0;
        display: none;
    }
}

.top-header .last-trade-ticker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.4rem 1rem;
    flex-shrink: 0;
    max-width: calc(100% - 200px);
}

@media (max-width: 768px) {
    .top-header .last-trade-ticker {
        display: none !important;
    }

    .top-header-content {
        justify-content: flex-end;
    }

    .top-header-lang {
        order: 1;
    }
}

/* ===== Language Switcher ===== */
.lang-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border-radius: 4px;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    color: var(--muted-foreground);
    background: transparent;
    border: 1px solid transparent;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    box-sizing: border-box;
}

.lang-btn:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
    color: #fff;
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.3);
    cursor: default;
}

/* ===== Ticker ===== */
.last-trade-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted-foreground);
    white-space: nowrap;
    overflow: hidden;
}

@media (max-width: 768px) {
    .last-trade-ticker {
        display: none !important;
    }
}

.binance-logo,
.btc-logo {
    height: 16px;
    width: auto;
    vertical-align: middle;
}

.binance-logo {
    fill: #F0B90B;
    margin-right: -0.4rem;
}

.btc-logo {
    fill: #F7931A;
    margin-right: -0.4rem;
}

.ticker-label {
    color: var(--brand);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
}

.ticker-value {
    color: #fff;
    min-width: 40px;
    text-align: left;
}

.ticker-id {
    color: var(--muted-foreground);
}

.flash-update {
    animation: textFlash 0.15s ease-out;
}

@keyframes textFlash {
    0% {
        transform: scale(1.05);
        color: #fff;
        text-shadow: 0 0 10px #fff;
    }
    100% {
        transform: scale(1);
    }
}

/* ===== Main Content ===== */
.content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    padding-top: 5rem;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .content {
        padding: 2rem;
        padding-top: 6rem;
    }
}

/* ===== Hero Section ===== */
.hero-section {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.hero-title-main {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.hero-title-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--muted-foreground);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--muted-foreground);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--brand);
    font-weight: 600;
}

/* ===== CTA Buttons ===== */
.cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    background: var(--brand);
    color: var(--brand-foreground);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 28px;
    background: transparent;
    color: var(--muted-foreground);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-outline:hover {
    color: var(--foreground);
    border-color: #3f3f46;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 480px) {
    .cta-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* ===== Trust Row ===== */
.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    color: var(--brand);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.trust-stats {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--muted-foreground);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .trust-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===== Section Styles ===== */
.section {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* ===== How It Works Steps ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

.step-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    color: var(--brand);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* ===== Alert Demo ===== */
.section-subtitle {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.alert-demo {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .alert-demo {
        flex-direction: column;
        align-items: center;
    }
}

.mock-telegram {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px 12px 12px 4px;
    padding: 1rem 1.25rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: #e4e6ea;
    text-align: left;
    max-width: 340px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.mock-telegram:hover {
    border-color: #3f3f46;
    background: rgba(255, 255, 255, 0.06);
}

.mock-telegram .tg-header {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.mock-telegram .tg-label {
    color: #8b9bab;
}

.mock-telegram .tg-value {
    color: #fff;
}

.mock-telegram .tg-trusted {
    color: #fbbf24;
}

.mock-telegram .tg-time {
    color: #8b9bab;
    font-size: 0.7rem;
    font-style: italic;
    margin-top: 0.5rem;
}

.mock-telegram .tg-bid {
    color: #4caf50;
    font-weight: 700;
}

.mock-telegram .tg-ask {
    color: #ff5252;
    font-weight: 700;
}

.alert-demo-caption {
    font-size: 0.85rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 1.25rem auto 0;
    line-height: 1.6;
}

/* ===== Feature Cards (What You Get) ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

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

.feature-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.feature-card:hover {
    border-color: #3f3f46;
    background: rgba(255, 255, 255, 0.03);
}

.feature-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 8px;
}

.feature-card-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--brand);
}

.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.5;
    margin: 0;
}

/* ===== Pricing Section ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
    }
}

.pricing-card {
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}

.pricing-card:hover {
    border-color: #3f3f46;
}

.pricing-card.featured {
    border-color: var(--brand);
}

.pricing-card.featured:hover {
    border-color: var(--brand);
}

.pricing-card-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.25rem 0.6rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.pricing-card-badge.badge-secondary {
    background: var(--secondary);
    color: var(--muted-foreground);
}

.pricing-card-badge.badge-brand {
    background: var(--brand);
    color: var(--brand-foreground);
}

.pricing-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.pricing-card-price {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.pricing-card-price .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--muted-foreground);
}

.price-original {
    text-decoration: line-through;
    color: var(--muted-foreground);
    font-size: 1.2rem;
    font-weight: 400;
}

.pricing-card-subtitle {
    font-size: 0.8rem;
    color: var(--brand);
    font-weight: 500;
    margin-bottom: 1.25rem;
}

.pricing-card-desc {
    font-size: 0.9rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.pricing-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex-grow: 1;
}

.pricing-card-list li {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.pricing-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
}

.pricing-card-list li strong {
    color: var(--foreground);
}

.pricing-card .btn-primary,
.pricing-card .btn-outline {
    width: 100%;
    text-align: center;
}

/* ===== Community + Social ===== */
.community-section {
    margin-top: 1rem;
    text-align: center;
}

.community-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, background 0.15s ease;
    text-decoration: none;
}

.social-link:hover {
    border-color: #3f3f46;
    background: rgba(255, 255, 255, 0.04);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--muted-foreground);
    transition: fill 0.15s ease;
}

.social-link:hover svg {
    fill: var(--foreground);
}

.social-link.youtube:hover {
    border-color: #ff0000;
}

.social-link.youtube:hover svg {
    fill: #ff0000;
}

.social-link.telegram:hover {
    border-color: var(--telegram-blue);
}

.social-link.telegram:hover svg {
    fill: var(--telegram-blue);
}

.powered-by {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.powered-by:hover {
    border-color: #3f3f46;
}

.powered-by span {
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

.powered-by strong {
    color: var(--foreground);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ===== Footer ===== */
.site-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.site-footer-links {
    font-size: 0.8rem;
    color: var(--muted-foreground);
    font-family: 'Inter', sans-serif;
    line-height: 2;
}

.site-footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.15s;
}

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

.site-footer-copy {
    font-size: 0.7rem;
    color: #52525b;
    font-family: 'Inter', sans-serif;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* ===== Scroll Animations ===== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Loading Indicator ===== */
.loading-indicator {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 100;
}

.loading-indicator.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading-indicator.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--border);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-indicator span {
    color: var(--muted-foreground);
    font-size: 0.8rem;
}

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

@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        transition: none;
        opacity: 1;
        transform: none;
    }

    .flash-update {
        animation: none;
    }
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
    .content {
        padding: 0.75rem;
        padding-top: 4.5rem;
    }

    .hero-section {
        padding: 2rem 0.5rem 1.5rem;
    }

    .social-links {
        gap: 0.75rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }

    .fade-in-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .background-video {
        display: none;
    }
}
