/* Osool Landing v2 — Harmovest-grade layout + AR/EN */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Cairo:wght@400;600;700;800&display=swap');

:root {
    --red: #FF4340;
    --green: #00CA75;
    --green-dark: #004931;
    --gold: #CCB478;
    --gold-dark: #B0944D;
    --gold-light: #E2D4A8;
    --gold-glow: rgba(204, 180, 120, 0.35);
    --cyan: #00E5FF;
    --bg: #000000;
    --bg-1: #14110a;
    --surface: #1f1a12;
    --border: rgba(204, 180, 120, 0.14);
    --text: #FFFFFF;
    --text-1: #E9ECF3;
    --text-muted: #a8a4a0;
    --tab-bg: rgba(204, 180, 120, 0.1);
    --tab-border: var(--gold);
    --header-h: 72px;
    --max-w: 1500px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}
body.is-rtl { font-family: 'Cairo', 'Poppins', sans-serif; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.container { width: min(var(--max-w), calc(100% - 48px)); margin-inline: auto; }

/* ── Header — black + gold chrome ── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: linear-gradient(180deg, rgba(12, 10, 6, 0.96) 0%, rgba(0, 0, 0, 0.9) 100%);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(204, 180, 120, 0.24);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 -1px 0 rgba(204, 180, 120, 0.06);
}
.header-inner {
    height: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.brand img { height: 34px; width: auto; }
.brand-text {
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: 0.2px;
    white-space: nowrap;
    display: inline-flex;
    align-items: baseline;
    gap: 0.32em;
    line-height: 1.2;
}
.brand-accent {
    color: var(--gold);
    text-shadow: 0 0 14px rgba(204, 180, 120, 0.28);
}
.brand-plain { color: #fff; }

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    justify-content: center;
}

.nav-desktop a {
    font-size: 0.86rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    opacity: 1;
    transition: color .2s;
    white-space: nowrap;
    position: relative;
}
.nav-desktop a:hover { color: var(--gold); }
.nav-desktop a::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transform: scaleX(0.6);
    transition: opacity .2s, transform .2s;
}
.nav-desktop a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    transition: background .2s, color .2s;
}
.lang-toggle:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-toggle i { font-size: 0.9rem; }

.lang-toggle:hover {
    background: rgba(204, 180, 120, 0.1);
    color: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 22px;
    border-radius: 20px;
    font-size: 0.86rem;
    font-weight: 700;
    transition: all .2s;
    white-space: nowrap;
}
.btn-ghost {
    color: var(--text);
    border: 1px solid rgba(204, 180, 120, 0.38);
    background: rgba(204, 180, 120, 0.04);
}
.btn-ghost:hover {
    background: rgba(204, 180, 120, 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
}
.btn-green-solid {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 18px rgba(204, 180, 120, 0.28);
}
.btn-green-solid:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(204, 180, 120, 0.35);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 18px rgba(204, 180, 120, 0.25);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
}
.btn-green-outline {
    color: var(--gold);
    border: 1px solid rgba(204, 180, 120, 0.45);
    background: transparent;
}
.btn-green-outline:hover {
    background: rgba(204, 180, 120, 0.12);
    color: #fff;
    border-color: var(--gold);
}

.menu-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    color: var(--text);
    font-size: 1.15rem;
}
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0,0,0,0.94);
    padding: 88px 24px 24px;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    font-size: 1.05rem;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    color: var(--text-1);
}
.mobile-nav .close-nav {
    position: absolute; top: 20px;
    inset-inline-end: 20px;
    font-size: 1.5rem; color: var(--text-muted);
}

/* ── Hero split layout ── */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: var(--header-h);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    background: #000;
    overflow: hidden;
}

.hero-visual {
    position: relative;
    min-height: calc(100vh - var(--header-h));
    overflow: hidden;
    background: #000;
    grid-column: 1;
    grid-row: 1;
}

.hero-copy {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px clamp(24px, 4vw, 64px) 120px;
    min-height: calc(100vh - var(--header-h));
    grid-column: 2;
    grid-row: 1;
}

html[dir="rtl"] .hero {
    grid-template-columns: 0.95fr 1.05fr;
}
html[dir="rtl"] .hero-visual { grid-column: 2; }
html[dir="rtl"] .hero-copy {
    grid-column: 1;
    text-align: right;
    align-items: flex-end;
}

html[dir="ltr"] .hero-copy {
    text-align: left;
    align-items: flex-start;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* No vignette on the robot — fade only toward the text column */
.hero-visual-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
html[dir="ltr"] .hero-visual-shade {
    background: linear-gradient(90deg, transparent 0%, transparent 78%, rgba(0,0,0,0.35) 100%);
}
html[dir="rtl"] .hero-visual-shade {
    background: linear-gradient(270deg, transparent 0%, transparent 78%, rgba(0,0,0,0.35) 100%);
}

.hero-chart-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 55%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[dir="rtl"] .hero-title {
    letter-spacing: 0;
    line-height: 1.35;
    background: linear-gradient(135deg, #ffffff 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc {
    font-size: clamp(0.88rem, 1.4vw, 1rem);
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 28px;
}
html[dir="rtl"] .hero-desc {
    margin-inline-start: 0;
    margin-inline-end: 0;
    max-width: 540px;
}

.hero-panels {
    position: relative;
    width: 100%;
    max-width: 560px;
    min-height: clamp(180px, 22vh, 240px);
    margin-bottom: 8px;
}
.hero-tab-panel {
    display: none;
    animation: heroPanelIn .35s ease;
}
.hero-tab-panel.active { display: block; }
@keyframes heroPanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    border-bottom: 1px solid rgba(204, 180, 120, 0.16);
    margin-bottom: 0;
    width: 100%;
    max-width: 560px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hero-tabs::-webkit-scrollbar { display: none; }
html[dir="rtl"] .hero-tabs { justify-content: flex-start; }
html[dir="rtl"] .hero-tab {
    font-size: 0.74rem;
    padding: 10px 11px;
}
.hero-tab {
    padding: 12px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    margin-bottom: -1px;
    white-space: nowrap;
    flex: 0 0 auto;
}
.hero-tab.active {
    color: var(--gold-light);
    background: linear-gradient(180deg, rgba(204, 180, 120, 0.14), rgba(204, 180, 120, 0.04));
    border-bottom-color: var(--gold);
    box-shadow: inset 0 0 0 1px rgba(204, 180, 120, 0.18);
}
.hero-tab:hover:not(.active) {
    color: #fff;
    background: rgba(204, 180, 120, 0.06);
}

/* Ticker — full width at hero bottom */
.ticker-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(204, 180, 120, 0.22);
    background: linear-gradient(180deg, rgba(12, 10, 6, 0.92), rgba(0, 0, 0, 0.88));
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(204, 180, 120, 0.08);
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 50s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
html[dir="rtl"] .ticker-track {
    animation-name: tickerScrollRtl;
}
@keyframes tickerScrollRtl {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 26px;
    border-inline-end: 1px solid rgba(255,255,255,0.06);
    min-width: 300px;
}
.ticker-pair {
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.4px;
    direction: ltr;
}
.ticker-prices {
    font-size: 0.8rem;
    color: var(--text-muted);
    direction: ltr;
}
.ticker-prices .bid { color: var(--text); }
.ticker-signal {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ticker-signal.up { background: rgba(0,202,117,0.22); color: var(--green); }
.ticker-signal.down { background: rgba(255,67,64,0.22); color: var(--red); }
.ticker-signal svg { width: 18px; height: 18px; }
.ticker-trade {
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(204, 180, 120, 0.45);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(204, 180, 120, 0.06);
    transition: all .2s;
}
.ticker-trade:hover {
    background: rgba(204, 180, 120, 0.18);
    color: #fff;
    border-color: var(--gold);
}

/* ── Sections ── */
.section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 680px;
    margin: 0 auto;
}
.section-dark { background: var(--bg); }
.section-elevated {
    background: linear-gradient(180deg, #0a0804 0%, var(--bg-1) 100%);
}
.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    color: #fff;
}
.gold-line {
    width: 110px; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
    margin: 18px auto 0;
    border-radius: 3px;
    box-shadow: 0 0 16px rgba(204, 180, 120, 0.35);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card {
    background: linear-gradient(145deg, rgba(28, 24, 16, 0.75), rgba(16, 14, 10, 0.9));
    border: 1px solid rgba(204, 180, 120, 0.14);
    border-radius: 14px;
    padding: 28px 22px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature-card:hover {
    border-color: rgba(204, 180, 120, 0.42);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(204, 180, 120, 0.1);
}
.feature-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: rgba(204, 180, 120, 0.12);
    color: var(--gold);
    border: 1px solid rgba(204, 180, 120, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--gold-light); }
.feature-card p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.65; }
html[dir="rtl"] .feature-card { text-align: right; }
html[dir="rtl"] .feature-icon { margin-inline-end: auto; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.plan-card {
    background: linear-gradient(180deg, #1a1610, #0c0a06);
    border: 1px solid rgba(204, 180, 120, 0.16);
    border-top: 3px solid rgba(204, 180, 120, 0.45);
    border-radius: 16px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .2s, box-shadow .2s;
}
.plan-card:hover {
    border-color: rgba(204, 180, 120, 0.35);
    box-shadow: 0 8px 28px rgba(204, 180, 120, 0.08);
}
.plan-card li::before { content: '✓ '; color: var(--gold); font-weight: 700; }
.plan-card h3 { font-size: 1.15rem; color: var(--gold); font-weight: 700; }
.plan-card .plan-meta { font-size: 0.78rem; color: var(--text-muted); }
.plan-card ul { list-style: none; font-size: 0.8rem; color: #bbb; flex: 1; }
.plan-card li {
    padding: 5px 0;
    border-bottom: 1px solid rgba(204, 180, 120, 0.06);
}
html[dir="rtl"] .plan-card { text-align: right; }

.plat-icon { color: var(--gold); margin-inline-end: 8px; }
.plat-icon-green { color: var(--green); }
.platform-card h3 { display: flex; align-items: center; gap: 4px; }
html[dir="rtl"] .platform-card { text-align: right; }
html[dir="rtl"] .platform-card h3 { flex-direction: row-reverse; justify-content: flex-end; }

.cta-banner {
    border-radius: 18px;
    padding: 56px 36px;
    text-align: center;
    background: linear-gradient(135deg, rgba(204, 180, 120, 0.12), rgba(0, 0, 0, 0.88));
    border: 1px solid rgba(204, 180, 120, 0.28);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(204, 180, 120, 0.1);
}
.cta-banner h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff, var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-banner p { color: var(--text-muted); margin-bottom: 22px; }

.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-box .num {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
}
.stat-box .lbl { font-size: 0.9rem; color: var(--text); margin-top: 6px; font-weight: 600; }
.stat-box .sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

.platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.platform-card {
    border: 1px solid rgba(204, 180, 120, 0.14);
    border-radius: 14px;
    background: linear-gradient(145deg, #14110a, #0a0804);
    padding: 22px;
    transition: border-color .2s, box-shadow .2s;
}
.platform-card:hover {
    border-color: rgba(204, 180, 120, 0.38);
    box-shadow: 0 8px 24px rgba(204, 180, 120, 0.08);
}
.platform-card h3 { font-size: 0.95rem; margin-bottom: 8px; font-weight: 700; color: var(--gold-light); }
.platform-card p { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 14px; min-height: 48px; }

.site-footer {
    padding: 56px 0 90px;
    border-top: 1px solid rgba(204, 180, 120, 0.18);
    background: linear-gradient(180deg, var(--bg-1), #080604);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 28px;
}
.footer-grid h4 {
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.footer-grid a, .footer-grid p {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 7px;
    line-height: 1.55;
}
.footer-grid a:hover { color: var(--text); }
html[dir="rtl"] .footer-grid { text-align: right; }
.footer-copy {
    font-size: 0.74rem;
    color: #666;
    text-align: center;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.risk-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: linear-gradient(180deg, #12100a, #0a0804);
    padding: 12px 20px;
    font-size: 0.7rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(204, 180, 120, 0.2);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.risk-bar p { flex: 1; line-height: 1.5; }
.risk-close { color: var(--text-muted); font-size: 1.15rem; flex-shrink: 0; }
.risk-bar.hidden { display: none; }
body.risk-hidden { padding-bottom: 0; }
body:not(.risk-hidden) { padding-bottom: 64px; }

/* Mobile */
@media (max-width: 1100px) {
    .nav-desktop { display: none; }
    .menu-toggle { display: flex; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
    .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 52vh auto;
    }
    .hero-visual,
    html[dir="rtl"] .hero-visual {
        grid-column: 1;
        grid-row: 1;
        min-height: 52vh;
    }
    .hero-copy,
    html[dir="rtl"] .hero-copy {
        grid-column: 1;
        grid-row: 2;
        min-height: auto;
        padding: 28px 20px 110px;
        align-items: stretch;
    }
    html[dir="ltr"] .hero-copy { text-align: left; }
    html[dir="rtl"] .hero-copy { text-align: right; }
    .hero-desc { margin-inline: 0; max-width: none; }
    .hero-panels { max-width: none; min-height: auto; }
    .hero-tabs { max-width: none; }
    .features-grid, .plans-grid, .platform-grid, .stats-band { grid-template-columns: 1fr; }
    .header-actions .btn-ghost { display: none; }
    .ticker-item { min-width: 260px; }
}
