/* NextGen AutoTrade — Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

/* ───── Tokens ───── */
:root {
    --bg-body: #020617;
    --bg-surface: #0f172a;
    --bg-glass: rgba(15, 23, 42, .55);
    --border: rgba(255, 255, 255, .06);
    --text-1: #f8fafc;
    --text-2: #94a3b8;
    --accent: #137fec;
    --accent-dim: rgba(19, 127, 236, .12);
    --green: #10b981;
    --green-dim: rgba(16, 185, 129, .12);
    --red: #ef4444;
    --yellow: #f59e0b;
    --radius: 16px;
    --radius-sm: 10px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Cairo', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* RTL mode */
body.rtl {
    direction: rtl;
    font-family: var(--font-ar);
}

body.rtl .section-label,
body.rtl .section-title {
    font-family: var(--font-ar);
}

/* ───── Utility ───── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, var(--accent), #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ═══════════════════ NAV ═══════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 0;
    backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, .75);
    border-bottom: 1px solid var(--border);
    transition: background .3s var(--ease);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1rem;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, .35);
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -.02em;
}

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

.lang-toggle {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-1);
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    transition: all .25s var(--ease);
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s var(--ease);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: #fff;
    box-shadow: 0 4px 24px rgba(37, 99, 235, .35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 99, 235, .45);
}

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

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.btn-small {
    padding: 8px 18px;
    font-size: .82rem;
}

/* ═══════════════════ HERO ═══════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Animated grid background */
.hero::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(55deg);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000, transparent);
    animation: grid-drift 25s linear infinite;
    pointer-events: none;
}

@keyframes grid-drift {
    to {
        transform: perspective(600px) rotateX(55deg) translateY(60px);
    }
}

/* Radial glow */
.hero::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(19, 127, 236, .18), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--green-dim);
    color: var(--green);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 28px;
    border: 1px solid rgba(16, 185, 129, .15);
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto 36px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ═══════════════════ PREVIEW ═══════════════════ */
.preview {
    padding: 40px 0 100px;
    position: relative;
}

.preview-frame {
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 24px 80px -12px rgba(0, 0, 0, .7),
        0 0 0 1px rgba(255, 255, 255, .04) inset;
    position: relative;
}

.preview-frame img {
    width: 100%;
    display: block;
    filter: brightness(1.05);
}

/* Glow underneath */
.preview-frame::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: 10%;
    width: 80%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(19, 127, 236, .15), transparent 70%);
    pointer-events: none;
}

/* ═══════════════════ SECTIONS SHARED ═══════════════════ */
.section {
    padding: 100px 0;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: .06em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 20px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-2);
    max-width: 560px;
    margin-bottom: 56px;
}

.section-header {
    text-align: center;
}

.section-header .section-sub {
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════ FEATURES ═══════════════════ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(19, 127, 236, .25);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .5), 0 0 0 1px rgba(19, 127, 236, .08) inset;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a78bfa);
    opacity: 0;
    transition: opacity .35s var(--ease);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: var(--accent-dim);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.65;
}

/* Different icon colors */
.feature-card:nth-child(2) .feature-icon {
    background: var(--green-dim);
}

.feature-card:nth-child(3) .feature-icon {
    background: rgba(245, 158, 11, .12);
}

.feature-card:nth-child(4) .feature-icon {
    background: rgba(168, 85, 247, .12);
}

.feature-card:nth-child(5) .feature-icon {
    background: rgba(236, 72, 153, .12);
}

.feature-card:nth-child(6) .feature-icon {
    background: rgba(34, 211, 238, .12);
}

/* ═══════════════════ INDICATORS AD ═══════════════════ */
.indicators-section {
    background: linear-gradient(180deg, var(--bg-body), #0a0f1e, var(--bg-body));
}

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

.indicator-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}

.indicator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, .6);
    border-color: rgba(19, 127, 236, .3);
}

.indicator-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .03), transparent);
    transform: skewX(-20deg);
    transition: left .6s var(--ease);
    pointer-events: none;
}

.indicator-card:hover::after {
    left: 150%;
}

.indicator-badge {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.badge-alpha {
    background: var(--accent-dim);
    color: var(--accent);
}

.badge-wave {
    background: var(--green-dim);
    color: var(--green);
}

.badge-orb {
    background: rgba(245, 158, 11, .12);
    color: var(--yellow);
}

.indicator-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.indicator-card .ind-subtitle {
    font-size: .85rem;
    color: var(--text-2);
    margin-bottom: 20px;
}

.indicator-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

body.rtl .indicator-features {
    text-align: right;
}

.indicator-features li {
    font-size: .88rem;
    color: var(--text-2);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.rtl .indicator-features li {
    flex-direction: row-reverse;
}

.indicator-features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: .8rem;
}

.indicator-features li:last-child {
    border-bottom: none;
}

.ind-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: all .3s var(--ease);
}

.ind-cta.cta-alpha {
    background: var(--accent);
}

.ind-cta.cta-alpha:hover {
    background: #2563eb;
}

.ind-cta.cta-wave {
    background: var(--green);
}

.ind-cta.cta-wave:hover {
    background: #059669;
}

.ind-cta.cta-orb {
    background: var(--yellow);
    color: #000;
}

.ind-cta.cta-orb:hover {
    background: #d97706;
}

/* CTA banner inside indicators */
.indicators-banner {
    margin-top: 60px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.indicators-banner h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.indicators-banner p {
    color: var(--text-2);
    margin-bottom: 24px;
}

/* ═══════════════════ CONTACT ═══════════════════ */
.contact-section {
    padding: 100px 0 60px;
}

.contact-box {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
}

.contact-box .company-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.contact-box .company-sub {
    color: var(--text-2);
    font-size: .95rem;
    margin-bottom: 32px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    background: var(--accent-dim);
    border: 1px solid rgba(19, 127, 236, .15);
    transition: all .3s var(--ease);
}

.contact-email:hover {
    background: rgba(19, 127, 236, .22);
    transform: scale(1.03);
}

/* ═══════════════════ FOOTER ═══════════════════ */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: .82rem;
    color: var(--text-2);
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width:900px) {

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

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .contact-box {
        padding: 32px 24px;
    }

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

@media (min-width:601px) and (max-width:900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* ───── Animations on scroll ───── */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

/* ───── Scrollbar ───── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 3px;
}