:root {
    --bg: #0a0a0c;
    --panel: #131318;
    --panel-2: #18181f;
    --border: #232329;
    --accent: #4d8eff;
    --accent-hover: #6ba1ff;
    --accent-soft: rgba(77, 142, 255, 0.12);
    --text: #ececf1;
    --text-dim: #8a8d97;
    --text-muted: #555862;
    --radius: 12px;
    --maxw: 1140px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Cursor trail canvas — sits on top of everything (incl. iframes/cards) */
#cursor-trail {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                transform 0.15s ease,
                box-shadow 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}
.btn-ghost {
    color: var(--text-dim);
    border-color: var(--border);
    background: transparent;
}
.btn-ghost:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-soft);
}
.btn-primary {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 14px -4px rgba(77, 142, 255, 0.5);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px -4px rgba(77, 142, 255, 0.6);
}
.btn:active { transform: translateY(0); }

/* Nav */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 12, 0.6);
    transition: background 0.25s ease, border-color 0.25s ease;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(10, 10, 12, 0.9);
    border-bottom-color: var(--border);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-brand {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 26px;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-auth {
    display: flex;
    gap: 10px;
}

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22vh 24px 80px;
    position: relative;
    z-index: 2;
}
.hero-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-logo {
    width: clamp(320px, 42vw, 520px);
    height: auto;
    object-fit: contain;
    margin-bottom: -50px;
}
.hero-title {
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    line-height: 1;
    color: var(--text);
}
.hero-slogan {
    font-size: clamp(0.95rem, 1.4vw, 1.1rem);
    color: var(--text-dim);
    font-weight: 400;
    margin-bottom: 28px;
}
.hero-login {
    padding: 10px 26px;
    font-size: 0.92rem;
}

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

/* Sections */
.section {
    padding: 100px 28px;
    max-width: var(--maxw);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
}
.section-head p {
    color: var(--text-dim);
    font-size: 1rem;
}

/* Video */
.video-wrap {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #000;
    aspect-ratio: 16 / 9;
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Resellers */
.reseller-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    gap: 20px;
    justify-content: center;
}
.reseller-card {
    position: relative;
    display: block;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s ease,
                box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
                background 0.3s ease;
}
.reseller-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle at 50% 0%, rgba(77, 142, 255, 0.18), transparent 60%);
    z-index: 1;
}
.reseller-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: var(--panel-2);
    box-shadow: 0 30px 60px -25px rgba(77, 142, 255, 0.4),
                0 0 0 1px rgba(77, 142, 255, 0.25);
}
.reseller-card:hover::before { opacity: 1; }
.reseller-card:active {
    transform: translateY(-3px) scale(0.99);
    transition: transform 0.12s ease;
}
.reseller-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(160deg, #1a1c24 0%, #101116 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    padding: 24px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}
.reseller-img img {
    max-width: 70%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reseller-card:hover .reseller-img img {
    transform: scale(1.06);
}
.reseller-body {
    padding: 20px 22px 22px;
    position: relative;
    z-index: 2;
}
.reseller-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}
.reseller-body p {
    color: var(--text-dim);
    font-size: 0.88rem;
}
.badge-recommended {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 5px 11px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(10, 10, 12, 0.7);
    border: 1px solid rgba(77, 142, 255, 0.35);
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Payment marquee */
.payments .section-head { margin-bottom: 48px; }
.marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    animation: marquee 50s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.pay {
    flex: 0 0 auto;
    width: 130px;
    height: 76px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 22px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.pay:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.pay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 28px;
    color: var(--text-muted);
    font-size: 0.86rem;
    position: relative;
    z-index: 2;
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text); }

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 820px) {
    .nav-links { display: none; }
}
@media (max-width: 640px) {
    .nav-inner { padding: 12px 16px; gap: 12px; }
    .nav-auth { gap: 8px; }
    .btn { padding: 7px 14px; font-size: 0.82rem; }
    .section { padding: 72px 20px; }
    .hero { padding: 14vh 20px 60px; }
    .pay { width: 110px; height: 68px; padding: 14px 18px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .reseller-body { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .marquee-track { animation: none; }
    .reveal { opacity: 1; transform: none; }
}

@media (hover: none) {
    #cursor-trail { display: none; }
}
