:root {
  --bg: #080b12;
  --bg-2: #0b0f19;
  --surface: #10151f;
  --surface-2: #151b28;
  --border: #202634;
  --text: #f5f6f8;
  --muted: #9aa3b2;
  --gold: #c7a86c;
  --gold-2: #e7ce92;
  --gold-grad: linear-gradient(135deg, #e7ce92, #c7a86c 55%, #a5854d);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  /* Accent palette (mirrors the dashboard design: gold + blue + green + teal
     + rose) so feature cards aren't monochrome gold. */
  --blue: #5a86e0;
  --green: #58c98a;
  --teal: #46c6c0;
  --rose: #d98aa8;
  --violet: #9b8cf0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92vw); margin: 0 auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.35rem 0.9rem; background: rgba(199,168,108,0.05);
}
.gold-text { color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.section { padding: 5.5rem 0; }
.section-center { text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; margin: 1rem 0; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); max-width: 620px; }
.section-center .section-sub { margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.85rem 1.5rem; border-radius: 0.7rem; font-weight: 600; font-size: 0.92rem; cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, filter 0.15s, border-color 0.15s; }
.btn-primary { background: var(--gold-grad); color: #10151f; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Header */
.header { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px); background: rgba(8,11,18,0.72); border-bottom: 1px solid var(--border); }
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 34px; height: 34px; }
.brand span { font-weight: 700; letter-spacing: 0.18em; font-size: 1rem; }
.brand span b { color: var(--gold); font-weight: 700; }
.nav { display: flex; gap: 2rem; font-size: 0.9rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 0.8rem; align-items: center; }
@media (max-width: 900px) { .nav { display: none; } .header-actions .btn-ghost { display: none; } }

/* Hero */
.hero { position: relative; padding: 4.5rem 0 3rem; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -20%; left: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(199,168,108,0.16), transparent 65%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.08; font-weight: 800; margin: 1.3rem 0; letter-spacing: -0.02em; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.hero-cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }
.stat-pill { border: 1px solid var(--border); border-radius: 0.8rem; padding: 0.8rem 1.1rem; background: var(--surface); }
.stat-pill b { display: block; font-size: 1.4rem; color: var(--gold); }
.stat-pill small { color: var(--muted); font-size: 0.78rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } }

/* Hero dashboard mockup */
.hero-visual { position: relative; }
.mock-dash { background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 1rem; box-shadow: var(--shadow); padding: 1rem; }
.mock-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.9rem; }
.mock-brand { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; color: var(--gold); font-weight: 700; letter-spacing: 0.1em; }
.mock-brand img { width: 18px; height: 18px; }
.mock-search { flex: 1; margin: 0 1rem; height: 26px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border); }
.mock-cards { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0.7rem; }
.mock-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 0.7rem; padding: 0.8rem; }
.mock-card .label { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.mock-card .big { font-size: 1.4rem; font-weight: 700; margin-top: 0.2rem; }
.mock-card .up { color: #58c98a; font-size: 0.65rem; }
.mock-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.7rem; }
.mock-mini .m { background: var(--bg-2); border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.6rem; }
.mock-mini .m .n { font-size: 1rem; font-weight: 700; }
.mock-mini .m .l { font-size: 0.58rem; color: var(--muted); }
.spark { height: 46px; margin-top: 0.5rem; width: 100%; }
.donut { width: 74px; height: 74px; border-radius: 50%; margin: 0.3rem auto 0; background: conic-gradient(var(--gold) 0 38%, #3a63c0 38% 66%, #7a8296 66% 86%, #2a3140 86% 100%); position: relative; }
.donut::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-2); }
.mock-phone { position: absolute; right: -18px; bottom: -34px; width: 150px; background: #0d1017; border: 6px solid #1b2130; border-radius: 22px; box-shadow: var(--shadow); padding: 0.5rem; }
.mock-phone .bar { display: flex; align-items: center; gap: 0.3rem; font-size: 0.55rem; color: var(--gold); margin-bottom: 0.4rem; }
.mock-phone .msg { font-size: 0.52rem; padding: 0.3rem 0.45rem; border-radius: 8px; margin-bottom: 0.3rem; max-width: 85%; line-height: 1.35; }
.mock-phone .in { background: #1c2431; }
.mock-phone .out { background: var(--gold); color: #10151f; margin-left: auto; }
@media (max-width: 1050px) { .mock-phone { display: none; } }

/* Trusted */
.trusted { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.2rem 0; }
.trusted p { text-align: center; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.3rem; }
.logos { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.logos span { font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: 0.08em; color: #c9cdd6; opacity: 0.65; }
.logos span small { display: block; font-size: 0.55rem; letter-spacing: 0.25em; text-align: center; color: var(--muted); }

/* Feature/problem grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.split { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 2.5rem; align-items: start; }
@media (max-width: 850px) { .split { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.5rem; transition: transform 0.15s, border-color 0.15s; }
.card:hover { transform: translateY(-4px); border-color: rgba(199,168,108,0.4); }
.card .icon { width: 42px; height: 42px; border-radius: 0.6rem; display: flex; align-items: center; justify-content: center; background: rgba(199,168,108,0.12); color: var(--gold); font-size: 1.25rem; margin-bottom: 0.9rem; }
/* Per-card accent tints -- keep gold as the lead, mix in the design's blue/
   green/teal/rose so the grid reads as a palette, not one colour. */
.card .icon.i-blue { background: rgba(90,134,224,0.14); color: var(--blue); }
.card .icon.i-green { background: rgba(88,201,138,0.14); color: var(--green); }
.card .icon.i-teal { background: rgba(70,198,192,0.14); color: var(--teal); }
.card .icon.i-rose { background: rgba(217,138,168,0.14); color: var(--rose); }
.card .icon.i-violet { background: rgba(155,140,240,0.14); color: var(--violet); }
.card:hover .icon.i-blue { box-shadow: 0 0 0 3px rgba(90,134,224,0.12); }
.card:hover .icon.i-green { box-shadow: 0 0 0 3px rgba(88,201,138,0.12); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.9rem; }

/* Showcase */
.showcase { background: var(--bg-2); }
.check-list { list-style: none; margin-top: 1.2rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: center; padding: 0.55rem 0; color: var(--text); }
.check-list li::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(199,168,108,0.15); color: var(--gold); font-size: 0.75rem; flex-shrink: 0; }

/* ROI */
.roi { background: var(--surface); border: 1px solid var(--border); border-radius: 1.1rem; padding: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
@media (max-width: 800px) { .roi { grid-template-columns: 1fr; } }
.roi label { display: block; font-size: 0.78rem; color: var(--muted); margin: 0 0 0.4rem; }
.roi input[type="number"] { width: 100%; background: var(--bg-2); border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.7rem 0.9rem; color: var(--text); font-size: 1rem; }
.roi .field { margin-bottom: 1.2rem; }
.roi input[type="range"] { width: 100%; accent-color: var(--gold); }
.roi-result { background: var(--gold-grad); border-radius: 1rem; padding: 2rem; color: #10151f; text-align: center; }
.roi-result .label { font-size: 0.8rem; opacity: 0.8; }
.roi-result .amount { font-size: 2.4rem; font-weight: 800; margin: 0.3rem 0; }
.roi-result .year { font-size: 0.85rem; opacity: 0.85; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 850px) { .price-grid { grid-template-columns: 1fr; } }
.price { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 2rem; position: relative; }
.price.featured { border-color: var(--gold); box-shadow: 0 0 50px rgba(199,168,108,0.14); }
.price .tag { position: absolute; top: -12px; right: 1.5rem; background: var(--gold-grad); color: #10151f; font-size: 0.65rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.08em; }
.price h3 { font-size: 1.2rem; }
.price .desc { color: var(--muted); font-size: 0.85rem; margin: 0.3rem 0 1.2rem; min-height: 2.5rem; }
.price .row { display: flex; gap: 2rem; margin-bottom: 1.2rem; }
.price .row .k { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.price .row .v { font-size: 1.5rem; font-weight: 700; }
.price .row .v small { font-size: 0.7rem; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; margin: 0 0 1.5rem; }
.price ul li { font-size: 0.85rem; color: var(--muted); padding: 0.4rem 0 0.4rem 1.5rem; position: relative; }
.price ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }

/* Testimonials */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 850px) { .tgrid { grid-template-columns: 1fr; } }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: 1rem; padding: 1.8rem; }
.quote .mark { color: var(--gold); font-size: 2rem; font-family: Georgia, serif; line-height: 0; }
.quote p { color: var(--text); font-size: 0.95rem; margin: 0.8rem 0 1.3rem; }
.quote .who { display: flex; align-items: center; gap: 0.7rem; }
.quote .who .av { width: 38px; height: 38px; border-radius: 50%; background: var(--gold-grad); display: flex; align-items: center; justify-content: center; color: #10151f; font-weight: 700; }
.quote .who .name { font-size: 0.85rem; font-weight: 600; }
.quote .who .role { font-size: 0.72rem; color: var(--muted); }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); border-radius: 1.2rem; padding: 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band::after { content: ""; position: absolute; right: -10%; bottom: -60%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(199,168,108,0.18), transparent 65%); }
.cta-band .txt { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { color: var(--muted); margin-top: 0.4rem; }
.cta-band .btn { position: relative; z-index: 1; }

/* Footer */
.footer { border-top: 1px solid var(--border); margin-top: 4rem; padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 850px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 1rem; }
.footer a { display: block; color: var(--muted); font-size: 0.85rem; padding: 0.25rem 0; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 0.8rem; }
.footer .tag { color: var(--muted); font-size: 0.82rem; max-width: 240px; }
.newsletter { display: flex; gap: 0.4rem; margin-top: 0.6rem; }
.newsletter input { flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: 0.5rem; padding: 0.5rem 0.7rem; color: var(--text); font-size: 0.8rem; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.5rem; text-align: center; color: var(--muted); font-size: 0.78rem; }

/* ============ Richer hero dashboard mockup (match reference) ============ */
.hero-visual { position: relative; padding-bottom: 1rem; }
.hd {
  background: linear-gradient(160deg, #121826, #0c111b);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 108%;
}
.hd-top { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); }
.hd-top .b { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.hd-top .b img { width: 16px; height: 16px; }
.hd-top .b span { color: var(--gold); }
.hd-top .title { font-size: 0.78rem; font-weight: 600; }
.hd-top .right { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.hd-top .pill { font-size: 0.6rem; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 0.15rem 0.5rem; }
.hd-top .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--gold-grad); }
.hd-body { display: grid; grid-template-columns: 78px 1fr; }
.hd-side { border-right: 1px solid var(--border); padding: 0.7rem 0.4rem; display: flex; flex-direction: column; gap: 0.15rem; }
.hd-side .i { font-size: 0.56rem; color: var(--muted); padding: 0.3rem 0.4rem; border-radius: 5px; white-space: nowrap; }
.hd-side .i.on { background: rgba(199,168,108,0.14); color: var(--gold); }
.hd-side .i.sec { color: var(--muted); font-size: 0.46rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.4rem; opacity: 0.55; padding-bottom: 0.1rem; }
.hd-plan { align-self: flex-start; margin-bottom: 0.4rem; font-size: 0.46rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); border: 1px solid rgba(199,168,108,0.4); background: rgba(199,168,108,0.1); border-radius: 999px; padding: 0.15rem 0.45rem; }
.hd-main { padding: 0.7rem; display: grid; gap: 0.6rem; }
.hd-r1 { display: grid; grid-template-columns: 1.7fr 1fr; gap: 0.6rem; }
.hd-card { background: #0c111b; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.6rem; }
.hd-card .lbl { font-size: 0.56rem; color: var(--muted); }
.hd-card .big { font-size: 1.15rem; font-weight: 800; }
.hd-card .up { color: #58c98a; font-size: 0.55rem; }
.hd-chart { position: relative; height: 66px; margin-top: 0.3rem; }
.hd-chart .yl { position: absolute; left: 0; top: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.42rem; color: var(--muted); }
.hd-chart svg { position: absolute; left: 20px; right: 0; top: 0; height: 100%; width: calc(100% - 20px); }
.hd-xl { display: flex; justify-content: space-between; font-size: 0.42rem; color: var(--muted); margin: 0.15rem 0 0 20px; }
.hd-col { display: flex; flex-direction: column; gap: 0.4rem; }
.hd-stat { background: #0c111b; border: 1px solid var(--border); border-radius: 0.6rem; padding: 0.45rem 0.55rem; display: flex; align-items: center; justify-content: space-between; }
.hd-stat .n { font-size: 0.95rem; font-weight: 800; line-height: 1; }
.hd-stat .l { font-size: 0.5rem; color: var(--muted); }
.hd-stat .u { font-size: 0.48rem; color: #58c98a; }
.hd-stat .ic { width: 20px; height: 20px; border-radius: 5px; background: rgba(199,168,108,0.14); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 0.6rem; }
.hd-r2 { display: grid; grid-template-columns: 1fr 1.3fr; gap: 0.6rem; }
.hd-donut-wrap { display: flex; align-items: center; gap: 0.5rem; }
.hd-donut { width: 62px; height: 62px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(var(--gold) 0 30%, #3a63c0 30% 55%, #6f7891 55% 75%, #2a3140 75% 100%); position: relative; }
.hd-donut::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0c111b; }
.hd-legend { font-size: 0.48rem; color: var(--muted); line-height: 1.7; }
.hd-legend b { color: var(--text); font-weight: 600; }
.hd-legend .d { display: inline-block; width: 6px; height: 6px; border-radius: 2px; margin-right: 3px; }
.hd-act .row { display: flex; justify-content: space-between; font-size: 0.5rem; color: var(--muted); padding: 0.14rem 0; }
.hd-act .row b { color: var(--text); font-weight: 500; }

/* Phone overlapping the dashboard */
.phone { position: absolute; left: 47%; bottom: -2.5rem; transform: translateX(-50%); width: 168px; background: #0a0d14; border: 7px solid #171d2a; border-radius: 26px; box-shadow: var(--shadow); padding: 0.55rem 0.5rem 0.7rem; }
.phone .ph-top { display: flex; align-items: center; gap: 0.35rem; font-size: 0.55rem; color: var(--gold); border-bottom: 1px solid #1b2130; padding-bottom: 0.35rem; margin-bottom: 0.45rem; }
.phone .ph-top img { width: 13px; height: 13px; }
.phone .m { font-size: 0.5rem; padding: 0.3rem 0.45rem; border-radius: 9px; margin-bottom: 0.32rem; max-width: 82%; line-height: 1.35; }
.phone .m.in { background: #1b2431; color: #dfe3ea; }
.phone .m.out { background: #d9b877; color: #10151f; margin-left: auto; }
.phone .pay { text-align: center; font-size: 0.5rem; color: var(--gold); border: 1px solid rgba(199,168,108,0.4); border-radius: 7px; padding: 0.22rem; margin-top: 0.2rem; }
@media (max-width: 1100px) { .phone { display: none; } .hd { width: 100%; } }

/* Showcase device mockup with play button */
.device { position: relative; }
.device .laptop { background: linear-gradient(160deg, #121826, #0c111b); border: 1px solid var(--border); border-radius: 0.8rem; box-shadow: var(--shadow); padding: 0.7rem; }
.device .play { position: absolute; top: 50%; left: 55%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--gold-grad); display: flex; align-items: center; justify-content: center; color: #10151f; font-size: 1.4rem; box-shadow: 0 10px 40px rgba(199,168,108,0.4); cursor: pointer; }
.device .sm-phone { position: absolute; left: -1.5rem; bottom: -1rem; width: 108px; background: #0a0d14; border: 5px solid #171d2a; border-radius: 18px; padding: 0.4rem 0.35rem; box-shadow: var(--shadow); }
.device .sm-phone .m { font-size: 0.42rem; padding: 0.22rem 0.33rem; border-radius: 7px; margin-bottom: 0.24rem; }
.device .sm-phone .in { background: #1b2431; color: #dfe3ea; }
.device .sm-phone .out { background: #d9b877; color: #10151f; margin-left: auto; max-width: 80%; }
@media (max-width: 700px) { .device .sm-phone { display: none; } }

/* ==========================================================================
   Naya additions on top of the v2 template.
   v2 is the base design; everything below adds what the standalone file
   didn't need: bilingual/RTL, a working mobile nav, cross-tab navigation,
   and the sections carried over from the previous Viora page.
   ========================================================================== */

html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.4; }
html[lang="ar"] .eyebrow, html[lang="ar"] .trusted p, html[lang="ar"] .mock-card .label,
html[lang="ar"] .brand span { letter-spacing: 0; text-transform: none; }
html[data-lang-pending] body { visibility: hidden; }

/* RTL: the base file uses physical properties, so mirror them here. */
html[dir="rtl"] .phone .m.out, html[dir="rtl"] .mock-phone .out,
html[dir="rtl"] .device .sm-phone .out { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .hd-legend .d { margin-right: 0; margin-left: 3px; }
html[dir="rtl"] .device .sm-phone { left: auto; right: -1.5rem; }
html[dir="rtl"] .mock-phone { right: auto; left: -18px; }
html[dir="rtl"] .check-list li { padding-left: 0; padding-right: 1.6rem; }
html[dir="rtl"] .check-list li::before { left: auto; right: 0; }
html[dir="rtl"] .rtl-flip { display: inline-block; transform: scaleX(-1); }

/* Language toggle, sitting with the header actions */
.lang-btn { border: 1px solid var(--border); background: rgba(255,255,255,0.02); color: var(--text);
  border-radius: 0.7rem; padding: 0.55rem 0.9rem; font-weight: 600; font-size: 0.85rem; cursor: pointer; }
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Cross-tab nav: the Naya/Academy links live beside Viora's own anchors */
.nav a { transition: color 0.15s; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav .x { color: #6f7891; }
.nav .x:hover { color: var(--gold); }

/* Mobile nav — the standalone file simply hid the menu at 900px */
.burger { display: none; background: rgba(255,255,255,0.02); border: 1px solid var(--border);
  border-radius: 0.6rem; padding: 0.6rem; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.burger span + span { margin-top: 4px; }
@media (max-width: 900px) {
  .burger { display: block; }
  .header .container { flex-wrap: wrap; gap: 0.6rem; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 0.6rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .header-actions .btn-primary { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

/* Numbered process steps (carried over) */
.steps-v { counter-reset: s; display: grid; gap: 0; margin-top: 2rem; }
.step-v { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start;
  padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.step-v:last-child { border-bottom: 0; }
.step-v::before { counter-increment: s; content: counter(s, decimal-leading-zero);
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(199,168,108,0.12); color: var(--gold); font-weight: 700; font-size: 0.95rem; }
.step-v h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.step-v p { color: var(--muted); font-size: 0.92rem; }

/* Safety block — the one place the page must read as a hard boundary */
.safety { border: 1px solid rgba(217,138,168,0.32); background: linear-gradient(160deg, rgba(217,138,168,0.06), transparent);
  border-radius: 1rem; padding: 1.6rem; }
.safety h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.safety .bubble-in, .safety .bubble-out { font-size: 0.86rem; padding: 0.7rem 0.9rem; border-radius: 0.8rem;
  margin-bottom: 0.5rem; line-height: 1.5; max-width: 92%; }
.safety .bubble-in { background: #1b2431; color: #dfe3ea; }
.safety .bubble-out { background: rgba(199,168,108,0.14); border: 1px solid rgba(199,168,108,0.3); color: #efdfb8; margin-left: auto; }
html[dir="rtl"] .safety .bubble-out { margin-left: 0; margin-right: auto; }

/* FAQ (carried over) */
.faq-v { max-width: 820px; margin: 2rem auto 0; text-align: left; }
html[dir="rtl"] .faq-v { text-align: right; }
.faq-v details { border-bottom: 1px solid var(--border); }
.faq-v summary { list-style: none; cursor: pointer; padding: 1.2rem 2.4rem 1.2rem 0;
  font-weight: 600; font-size: 1rem; position: relative; }
html[dir="rtl"] .faq-v summary { padding: 1.2rem 0 1.2rem 2.4rem; }
.faq-v summary::-webkit-details-marker { display: none; }
.faq-v summary::after { content: ""; position: absolute; right: 6px; top: 1.5rem; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s; }
html[dir="rtl"] .faq-v summary::after { right: auto; left: 6px; }
.faq-v details[open] summary::after { transform: rotate(-135deg); }
.faq-v details p { padding-bottom: 1.2rem; color: var(--muted); font-size: 0.93rem; }

/* Honest-signal strip replacing the fabricated client logos */
.signals { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 2.4rem; }
.signals span { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #c9cdd6; }
.signals b { color: var(--gold); font-weight: 700; }

/* Sticky mobile CTA */
.dock-v { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; gap: 0.6rem;
  padding: 0.6rem 4vw calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(8,11,18,0.94); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
.dock-v .btn { flex: 1; justify-content: center; }
@media (max-width: 760px) { .dock-v { display: flex; } body { padding-bottom: 72px; } }

.skip-v { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--surface);
  color: var(--text); padding: 0.75rem 1.1rem; border-radius: 0.6rem; transition: top 0.2s; }
.skip-v:focus { top: 12px; }
a { text-decoration: none; color: inherit; }

/* Brand lockup on the Viora tab: the product mark leads, with the parent
   company named underneath so the page still reads as part of the site. */
.brand span { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand span .wm { font-style: normal; white-space: nowrap; letter-spacing: 0.18em; }
.brand span small { font-size: 0.55rem; letter-spacing: 0.22em; color: var(--muted);
  font-weight: 600; margin-top: 2px; }
html[lang="ar"] .brand span small { letter-spacing: 0; font-size: 0.65rem; }

/* ==========================================================================
   Roomier, centred card grid for the problem and capability blocks.
   These two sections carry the most text on the page; the dark four-up grid
   was too cramped, so they get wider columns and real padding — still on the
   page's own dark theme.
   ========================================================================== */
/* Headings sit at the start edge — left in English, right in Arabic. */
.section--wide { text-align: start; }
.section--wide .section-sub { max-width: 680px; }

/* A fixed 4-up grid, not auto-fit: 8 and 16 cards both divide evenly, so no
   row is ever left with a single stretched card hanging on its own. */
.cards-lg {
  display: grid; gap: 1.4rem; margin: 2.5rem auto 0;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1160px;
}
.cards-lg .card {
  padding: 1.7rem 1.5rem;
  border-radius: 1.1rem;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
}
.cards-lg .card:hover { border-color: rgba(199,168,108,0.45); }
.cards-lg .card .icon {
  width: 50px; height: 50px; border-radius: 0.9rem; font-size: 1.4rem; margin-bottom: 1rem;
}
.cards-lg .card h3 { font-size: 1.08rem; line-height: 1.32; margin-bottom: 0.55rem; letter-spacing: -0.01em; }
.cards-lg .card p { font-size: 0.92rem; line-height: 1.66; }
html[lang="ar"] .cards-lg .card h3 { line-height: 1.5; }
@media (max-width: 1080px) { .cards-lg { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .cards-lg { grid-template-columns: 1fr; gap: 1.1rem; } }

/* Section headings stay centred; the cards themselves read left-aligned,
   as they did before. */
.section--wide .cards-lg { text-align: left; }
html[dir="rtl"] .section--wide .cards-lg { text-align: right; }
