/* =========================================================
   Enclume numérique — feuille de style
   Thème « forge » : charbon, acier, braise.
   ========================================================= */

:root {
  --bg: #0f0d0c;
  --bg-alt: #151210;
  --surface: #1c1816;
  --surface-2: #241f1c;
  --border: #2f2925;
  --text: #ece6e1;
  --muted: #a39a93;
  --steel: #b9c2ca;
  --ember: #ff6a1f;
  --ember-2: #ffb347;
  --ok: #7fd18b;
  --grad-ember: linear-gradient(120deg, var(--ember) 0%, var(--ember-2) 100%);
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", var(--font-body);
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { color: var(--ember); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: .92em; }
.ar { font-family: var(--font-ar); }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ember); color: #000; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--ember-2); outline-offset: 3px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font: 600 .98rem var(--font-body);
  color: #1a0d05;
  background: var(--grad-ember);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(255, 106, 31, .6);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { color: #1a0d05; transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(255, 106, 31, .75); filter: brightness(1.05); }
.btn-ghost {
  color: var(--text); background: transparent;
  border: 1px solid var(--border); box-shadow: none;
}
.btn-ghost:hover { color: var(--text); border-color: var(--ember); box-shadow: none; }
.btn-small { padding: .55rem 1.1rem; font-size: .9rem; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 50;
  background: rgba(15, 13, 12, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { background: rgba(15, 13, 12, .9); border-bottom-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font: 700 1.25rem var(--font-head); letter-spacing: -.02em; }
.brand-motto {
  margin-top: .25rem;
  font: 600 .62rem var(--font-body); letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted);
}
.brand:hover .brand-motto { color: var(--ember-2); }
.brand-accent {
  margin-left: .3rem;
  background: var(--grad-ember); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) { color: var(--muted); font-weight: 500; font-size: .95rem; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--grad-ember); transition: right .25s;
}
.site-nav a:not(.btn):hover,
.site-nav a.active { color: var(--text); }
.site-nav a:not(.btn):hover::after,
.site-nav a.active::after { right: 0; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background:
    radial-gradient(ellipse 60% 50% at 70% 110%, rgba(255, 106, 31, .28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 0%, rgba(185, 194, 202, .07), transparent 70%),
    var(--bg);
}
.sparks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }

.eyebrow {
  display: inline-block; margin-bottom: 1rem;
  font: 600 .8rem var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember-2);
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); font-weight: 700; margin-bottom: 1.4rem; }
.glow {
  background: var(--grad-ember); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(255, 106, 31, .35);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0 2.6rem; }

.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font: 700 1.5rem var(--font-head); color: var(--text); }
.hero-facts span { font-size: .85rem; color: var(--muted); }

/* Terminal */
.terminal {
  background: rgba(20, 17, 15, .92);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 106, 31, .08), 0 30px 80px -30px rgba(255, 106, 31, .35);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s;
}
.terminal:hover { transform: none; }
.terminal-bar { display: flex; align-items: center; gap: .45rem; padding: .75rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a332e; }
.terminal-bar i:first-child { background: #ff5f56; }
.terminal-bar i:nth-child(2) { background: #ffbd2e; }
.terminal-bar i:nth-child(3) { background: #27c93f; }
.terminal-bar span { margin-left: auto; font: .78rem var(--font-mono); color: var(--muted); }
.terminal-body { margin: 0; padding: 1.3rem 1.4rem 1.5rem; font: .86rem/1.85 var(--font-mono); color: var(--steel); white-space: pre-wrap; }
.t-dim { color: #6d645e; }
.t-ok { color: var(--ok); }
.t-ember { color: var(--ember-2); font-weight: 600; }
.t-ar { font-family: var(--font-ar); color: var(--text); }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: .2em; vertical-align: -.2em; background: var(--ember); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 3.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.section-head p:last-child { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.8rem;
}

/* Activités */
.activity { position: relative; transition: transform .3s, border-color .3s; }
.activity::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; border-radius: var(--radius) var(--radius) 0 0;
  background: var(--grad-ember); opacity: 0; transition: opacity .3s;
}
.activity:hover { transform: translateY(-4px); border-color: #4a3a30; }
.activity:hover::before { opacity: 1; }
.activity h3 { font-size: 1.15rem; }
.activity p { color: var(--muted); font-size: .95rem; }
.icon {
  width: 48px; height: 48px; margin-bottom: 1.2rem;
  display: grid; place-items: center;
  border-radius: 12px; background: rgba(255, 106, 31, .1); border: 1px solid rgba(255, 106, 31, .25);
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--ember-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .92rem; }
.ticks li { position: relative; padding-left: 1.4rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: .55rem; height: .55rem;
  border-radius: 2px; background: var(--grad-ember); transform: rotate(45deg);
}
.ticks-2col { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; margin: 1.2rem 0; }

/* Réalisations */
.product {
  display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem;
  padding: 2.4rem; margin-bottom: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  position: relative; overflow: hidden;
}
.product::after {
  content: ""; position: absolute; width: 380px; height: 380px; right: -140px; top: -180px;
  background: radial-gradient(circle, rgba(255, 106, 31, .12), transparent 65%);
  pointer-events: none;
}
.product:last-child { margin-bottom: 0; }
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin-bottom: .3rem; }
.product-head h3 { font-size: 2rem; margin: 0; }
.product-head small { font: 500 1rem var(--font-body); color: var(--muted); margin-left: .4rem; }
.product-tagline { font: 600 1.1rem var(--font-head); color: var(--ember-2); }
.product-tagline .ar { margin-left: .5rem; color: var(--steel); font-weight: 500; }
.product-main > p { color: #cfc7c0; }
.perspective {
  margin: 1.2rem 0 0; padding: .9rem 1.1rem;
  border-left: 3px solid var(--ember); border-radius: 0 8px 8px 0;
  background: rgba(255, 106, 31, .07); font-size: .93rem; color: var(--muted);
}
.perspective strong { color: var(--text); }

.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-top: 1.6rem; }
.cta-hint { font: .82rem var(--font-mono); color: var(--muted); }

.modes { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.modes li {
  padding: .9rem 1rem; font-size: .86rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
}
.modes strong { display: block; color: var(--text); font: 600 .95rem var(--font-head); margin-bottom: .15rem; }

.product-side { position: relative; z-index: 1; padding-left: 2.5rem; border-left: 1px solid var(--border); }
.product-side h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .6rem; }
.product-side p { font-size: .94rem; }
.product-side h4:not(:first-child) { margin-top: 1.6rem; }
.note { margin-top: 1.4rem; font-size: .85rem !important; color: var(--muted); }

.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li {
  font: 500 .78rem var(--font-mono); color: var(--steel);
  padding: .3rem .65rem; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
}

.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .74rem var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  padding: .32rem .75rem; border-radius: 999px; border: 1px solid;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-live { color: var(--ok); border-color: rgba(127, 209, 139, .35); background: rgba(127, 209, 139, .08); }
.badge-live::before { box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.badge-wip { color: var(--ember-2); border-color: rgba(255, 179, 71, .35); background: rgba(255, 179, 71, .08); }
.badge-beta { color: #8fb8ff; border-color: rgba(143, 184, 255, .35); background: rgba(143, 184, 255, .08); }
.badge-core { color: var(--steel); border-color: rgba(185, 194, 202, .3); background: rgba(185, 194, 202, .06); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 209, 139, .6); }
  70% { box-shadow: 0 0 0 7px rgba(127, 209, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 209, 139, 0); }
}

/* Engagements */
.value { padding: 1.8rem 0 0; border-top: 1px solid var(--border); position: relative; }
.value::before { content: ""; position: absolute; top: -1px; left: 0; width: 48px; height: 2px; background: var(--grad-ember); }
.value-num { font: 700 .85rem var(--font-mono); color: var(--ember); }
.value h3 { font-size: 1.2rem; margin-top: .6rem; }
.value p { color: var(--muted); font-size: .95rem; }

/* Méthode */
.steps { list-style: none; padding: 0; margin: 0 0 4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--ember-2), var(--steel));
  opacity: .35;
}
.step { position: relative; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 1.2rem;
  font: 700 1rem var(--font-head); color: #1a0d05;
  background: var(--grad-ember); border-radius: 50%;
  box-shadow: 0 0 0 6px var(--bg-alt), 0 0 30px rgba(255, 106, 31, .4);
  position: relative;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .95rem; }

.stack { padding: 2.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stack > h3 { font-size: 1.3rem; margin-bottom: 1.4rem; }
.stack-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; }
.stack-groups h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }

/* Contact */
.contact { background: radial-gradient(ellipse 50% 60% at 0% 100%, rgba(255, 106, 31, .14), transparent 70%), var(--bg); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-text h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.contact-text > p { color: var(--muted); font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; flex-direction: column; }
.contact-list span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font: 600 1.1rem var(--font-head); color: var(--text); }
.contact-list a:hover { color: var(--ember-2); }

.contact-form { display: grid; gap: 1.1rem; padding: 2.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 500; color: var(--muted); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: .8rem .95rem;
  font: 1rem var(--font-body); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255, 106, 31, .18); }
.contact-form .invalid { border-color: #e5484d; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.4em; color: var(--muted); }
.form-status.error { color: #ff8a8d; }
.form-status.success { color: var(--ok); }

/* Pied de page */
.site-footer { padding: 2.5rem 0; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand strong { font-family: var(--font-head); }
.footer-brand .ar { font-size: .85rem; color: var(--muted); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--muted); font-size: .92rem; }
.footer-nav a:hover { color: var(--text); }
.copyright { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .terminal { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; }
  .product-side { padding-left: 0; padding-top: 1.8rem; border-left: 0; border-top: 1px solid var(--border); }
  .stack-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .terminal { transform: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .steps::before { display: none; }
  .contact-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .modes { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(15, 13, 12, .98); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); visibility: hidden;
    transition: transform .3s, visibility .3s;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 1.2rem; }
}

@media (max-width: 600px) {
  .section { padding: 4.5rem 0; }
  .grid-4, .steps, .stack-groups, .modes, .ticks-2col, .field-row { grid-template-columns: 1fr; }
  .product { padding: 1.6rem; }
  .product-head h3 { font-size: 1.6rem; }
  .product-head small { display: block; margin: .2rem 0 0; }
  .hero-facts { gap: 1.6rem; }
  .terminal-body { font-size: .76rem; }
  .contact-form { padding: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   Sélecteur de langue
   ========================================================= */
.site-nav a.lang-switch {
  padding: .3rem .75rem;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: .88rem;
}
.site-nav a.lang-switch:hover { border-color: var(--ember); color: var(--text); }
.site-nav a.lang-switch::after { display: none; }
.lang-switch[lang="ar"], .footer-nav a[lang="ar"] { font-family: var(--font-ar); }
@media (max-width: 900px) {
  .site-nav a.lang-switch { align-self: flex-start; margin-top: 1rem; border-bottom: 1px solid var(--border); padding: .4rem 1rem; }
}

/* =========================================================
   Version arabe (dir="rtl")
   ========================================================= */
[dir="rtl"] {
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, "Segoe UI", Tahoma, sans-serif;
  --font-head: "Noto Kufi Arabic", "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
}
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.45; letter-spacing: 0; }
[dir="rtl"] .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }

/* L'espacement des lettres casse les liaisons de l'écriture arabe */
[dir="rtl"] .eyebrow,
[dir="rtl"] .badge,
[dir="rtl"] .product-side h4,
[dir="rtl"] .stack-groups h4,
[dir="rtl"] .contact-list span { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .eyebrow { font-size: .9rem; }

/* Le code, les adresses et les noms techniques restent de gauche à droite */
[dir="rtl"] [dir="ltr"] { font-family: var(--font-mono); }
[dir="rtl"] .brand-motto[dir="ltr"],
[dir="rtl"] .contact-list a[dir="ltr"],
[dir="rtl"] .footer-brand span[dir="ltr"],
[dir="rtl"] .hero-visual[dir="ltr"],
[dir="rtl"] input[dir="ltr"] { font-family: "Inter", system-ui, sans-serif; }
[dir="rtl"] .tags[dir="ltr"] { direction: rtl; font-family: inherit; }
[dir="rtl"] .contact-list a[dir="ltr"] { text-align: right; unicode-bidi: isolate; }
[dir="rtl"] .hero-facts strong { font-family: var(--font-head); }

/* Miroir des éléments positionnés à gauche / à droite */
[dir="rtl"] .brand-accent { margin-left: 0; margin-right: .1rem; }
[dir="rtl"] .site-nav a:not(.btn)::after { left: 100%; right: 0; transition: left .25s; }
[dir="rtl"] .site-nav a:not(.btn):hover::after,
[dir="rtl"] .site-nav a.active::after { left: 0; }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; top: .75em; }
[dir="rtl"] .perspective { border-left: 0; border-right: 3px solid var(--ember); border-radius: 8px 0 0 8px; }
[dir="rtl"] .product::after { right: auto; left: -140px; }
[dir="rtl"] .product-head small { margin-left: 0; margin-right: .4rem; font-family: var(--font-body); }
[dir="rtl"] .product-side { padding-left: 0; border-left: 0; padding-right: 2.5rem; border-right: 1px solid var(--border); }
[dir="rtl"] .value::before { left: auto; right: 0; }
[dir="rtl"] .steps::before { background: linear-gradient(270deg, var(--ember), var(--ember-2), var(--steel)); }
[dir="rtl"] .terminal { transform: perspective(1200px) rotateY(6deg) rotateX(2deg); }
[dir="rtl"] .terminal:hover { transform: none; }
[dir="rtl"] .hero {
  background:
    radial-gradient(ellipse 60% 50% at 30% 110%, rgba(255, 106, 31, .28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 0%, rgba(185, 194, 202, .07), transparent 70%),
    var(--bg);
}
[dir="rtl"] .contact { background: radial-gradient(ellipse 50% 60% at 100% 100%, rgba(255, 106, 31, .14), transparent 70%), var(--bg); }
[dir="rtl"] .contact-form select { background-position: left .9rem center; }
[dir="rtl"] .skip-link:focus { left: auto; right: 1rem; }

@media (max-width: 1080px) {
  [dir="rtl"] .product-side { padding-right: 0; border-right: 0; }
}
@media (max-width: 900px) {
  [dir="rtl"] .terminal { transform: none; }
  [dir="rtl"] .site-nav a.lang-switch { align-self: flex-end; }
}
