/* GHADIMI FINANCE — matrix terminal identity
   layout: one centered 1120px column over a fixed binary-rain canvas; glass panels float above the code */
:root {
  color-scheme: dark;
  --bg: #020805;
  --bg-2: #06150d;
  --glass: rgba(4, 20, 11, 0.78);
  --glass-strong: rgba(5, 26, 14, 0.92);
  --line: #134a2c;
  --line-bright: #1f7a46;
  --fg: #d9ffe8;
  --muted: #86bd9d;
  --green: #39ff88;
  --green-dim: #1caa58;
  --gold: #e6be50;
  --red: #ff5f6d;
  --font-body: "Vazirmatn", "Tahoma", system-ui, sans-serif;
  --font-mono: "Share Tech Mono", "Consolas", "Courier New", monospace;
  --radius: 10px;
  --step--1: 0.85rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.55rem;
  --step-3: 2.1rem;
  --step-4: clamp(2.2rem, 5vw, 3.4rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.85;
  direction: rtl;
  overflow-x: hidden;
}
#matrix { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 35%, rgba(1, 4, 2, 0.85) 100%),
    linear-gradient(90deg, rgba(2, 8, 5, 0.3), rgba(2, 8, 5, 0.55) 55%, rgba(2, 8, 5, 0.7)); }
.veil::after { content: ""; position: absolute; inset: 0; background: rgba(57, 255, 136, 0.025); animation: flicker 7s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: 0; } 41% { opacity: 1; } 42% { opacity: 0; } 77% { opacity: .7; } 77.5% { opacity: 0; } }
.page { position: relative; z-index: 2; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.35; text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.ltr { direction: ltr; unicode-bidi: isolate; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; backdrop-filter: blur(8px);
  background: rgba(2, 10, 6, 0.82); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 6px rgba(57, 255, 136, 0.55)); }
.brand b { font-family: var(--font-mono); font-size: 1.15rem; letter-spacing: 0.18em; color: var(--green); font-weight: 400; direction: ltr; }
.nav { display: flex; gap: 14px; margin-inline-start: auto; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-size: var(--step--1); }
.nav a:hover { color: var(--green); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 var(--step-0) var(--font-body); padding: 10px 22px; border-radius: 8px; border: 1px solid var(--green-dim);
  background: transparent; color: var(--green); text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; }
.btn:hover { background: rgba(57, 255, 136, 0.08); box-shadow: 0 0 18px rgba(57, 255, 136, 0.25); }
.btn.solid { background: var(--green); color: #021208; border-color: var(--green); }
.btn.solid:hover { background: #6bffa6; }
.btn:disabled { opacity: .55; cursor: wait; }

/* hero */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.eyebrow { font-family: var(--font-mono); color: var(--green); font-size: var(--step--1); letter-spacing: .2em; direction: ltr; text-align: right; }
.hero h1 { font-size: var(--step-4); font-weight: 800; margin-block: 10px 16px; }
.hero h1 em { font-style: normal; color: var(--green); text-shadow: 0 0 22px rgba(57, 255, 136, 0.45); }
.hero p.lead { color: var(--muted); font-size: var(--step-1); max-width: 34em; }
.hero .cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.typed { font-family: var(--font-mono); color: var(--green); direction: ltr; text-align: right; margin-top: 18px; min-height: 1.8em; }
.typed::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.sigil { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; margin-inline: auto; }
.sigil svg { width: 100%; height: 100%; overflow: visible; }
.sigil .ring { transform-origin: 200px 215px; animation: spin 40s linear infinite; }
.sigil .ring.rev { animation-duration: 70s; animation-direction: reverse; }
.sigil .tri { stroke-dasharray: 1200; animation: draw 2.4s ease-out both; }
.sigil .rays line { animation: pulse 3s ease-in-out infinite; }
.sigil .ring.slow { animation-duration: 90s; }
.sigil .ring.rev.slow { animation-duration: 120s; }
.sigil .lid { transform-origin: 200px 236px; transform-box: view-box; }
.sigil .lid.blink { animation: blinkeye .24s ease-in-out; }
.sigil .breath { transform-origin: 200px 228px; transform-box: view-box; animation: breath 5s ease-in-out infinite; }
.sigil .scan { animation: scan 4.5s cubic-bezier(.45,0,.55,1) infinite; }
.sigil .tri2 { animation: trace 6s linear infinite; }
.sigil .iris-spin { transform-origin: 200px 236px; transform-box: view-box; animation: spin 30s linear infinite; }
.sigil .tribits text { transition: opacity .4s; }
.sigil.glitch svg { animation: sglitch .16s steps(2) infinite; filter: drop-shadow(3px 0 0 rgba(0,255,200,.55)) drop-shadow(-3px 0 0 rgba(160,255,60,.5)); }
@keyframes breath { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(380px); opacity: 0; } }
@keyframes trace { to { stroke-dashoffset: -612; } }
@keyframes sglitch { 0% { transform: translate(2px, -1px) skewX(2deg); clip-path: inset(10% 0 55% 0); } 50% { transform: translate(-3px, 1px); clip-path: inset(45% 0 12% 0); } 100% { transform: none; clip-path: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes blinkeye { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.06); } }

/* readout strip */
.readout { border-block: 1px solid var(--line); background: var(--glass); }
.readout .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.readout div { padding: 18px 12px; text-align: center; border-inline-start: 1px solid var(--line); }
.readout div:first-child { border-inline-start: 0; }
.readout b { display: block; font-family: var(--font-mono); font-size: var(--step-2); color: var(--green); font-weight: 400; direction: ltr; }
.readout span { color: var(--muted); font-size: var(--step--1); }

/* sections */
section.block { padding-block: 72px; }
.head { display: grid; gap: 8px; margin-bottom: 34px; max-width: 46em; }
.head h2 { font-size: var(--step-3); font-weight: 800; }
.head h2, .head p, .hero h1, .hero p.lead { text-shadow: 0 0 10px #020805, 0 0 22px #020805; }
.head p { color: var(--muted); }
.tag { font-family: var(--font-mono); color: var(--green-dim); font-size: var(--step--1); direction: ltr; text-align: right; }

.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(3px); }

/* features */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; transition: border-color .25s, transform .25s; }
.feature:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.feature svg { width: 30px; height: 30px; stroke: var(--green); fill: none; stroke-width: 1.6; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--muted); font-size: var(--step--1); line-height: 1.8; }

/* showcase */
.shots { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; align-items: start; }
.shot { padding: 12px; display: grid; gap: 10px; min-width: 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--line-bright);
  box-shadow: 0 0 30px rgba(57, 255, 136, 0.12); }
.shot figcaption { color: var(--muted); font-size: var(--step--1); }
.shot figcaption b { color: var(--fg); }
.note { color: var(--muted); font-size: var(--step--1); margin-top: 14px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.step { padding: 22px; position: relative; min-width: 0; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-mono); color: var(--green);
  font-size: var(--step-3); line-height: 1; display: block; margin-bottom: 10px; direction: ltr; text-align: right; }
.step p { color: var(--muted); font-size: var(--step--1); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { padding: 24px 20px; display: grid; gap: 12px; align-content: start; position: relative; min-width: 0; }
.plan.hot { border-color: var(--green); box-shadow: 0 0 34px rgba(57, 255, 136, 0.18); }
.plan .badge { position: absolute; top: -12px; inset-inline-start: 18px; background: var(--green); color: #021208;
  font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; }
.plan h3 { font-size: var(--step-1); }
.plan .price { font-family: var(--font-body); font-weight: 800; font-size: var(--step-3); color: var(--green); text-shadow: 0 0 18px rgba(57,255,136,.35); }
.plan .price .ltr { font-family: var(--font-mono); font-weight: 400; }
.plan .price small { font-size: .8rem; color: var(--muted); }
.plan .usd { color: var(--muted); font-size: var(--step--1); }
.plan .usd b { color: var(--fg); font-family: var(--font-mono); font-weight: 400; }
.plan .usd .save { color: var(--green); }
.plan .meter { height: 4px; background: #0b2a18; border-radius: 2px; overflow: hidden; }
.plan .meter i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--green-dim), var(--green)); box-shadow: 0 0 10px var(--green); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; color: var(--muted); font-size: var(--step--1); }
.plan li::before { content: "› "; color: var(--green); }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); color: var(--muted); }
.field input, .field select { width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line-bright);
  background: #010603; color: var(--fg); font: 1rem var(--font-body); }
.field input.ltr { direction: ltr; text-align: left; font-family: var(--font-mono); }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.method[hidden] { display: none; }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-links a { color: var(--muted); font-size: var(--step--1); }
.method { border: 1px solid var(--line-bright); border-radius: 8px; padding: 12px; cursor: pointer; display: grid; gap: 2px; }
.method input { accent-color: var(--green); }
.method:has(input:checked) { border-color: var(--green); background: rgba(57, 255, 136, 0.07); }
.method small { color: var(--muted); }
.err { color: var(--red); font-size: var(--step--1); min-height: 1.4em; }

/* lookup */
.lookup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; padding: 22px; }
.results { margin-top: 14px; display: grid; gap: 10px; }
.keyrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.key { font-family: var(--font-mono); color: var(--green); direction: ltr; word-break: break-all; font-size: 1.05rem; }
.pill { font-size: .75rem; padding: 2px 10px; border-radius: 99px; border: 1px solid currentColor; }
.pill.on { color: var(--green); } .pill.off { color: var(--red); }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-top: 8px; font-size: var(--step--1); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(0, 6, 3, 0.82); }
.modal .box { width: min(520px, 100%); max-height: calc(100% - 20px); overflow: auto; padding: 26px; display: grid; gap: 14px;
  background: var(--glass-strong); border: 1px solid var(--green-dim); border-radius: 12px; box-shadow: 0 0 60px rgba(57, 255, 136, 0.18); }
.modal h3 { font-size: var(--step-2); }
.modal .summary { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border: 1px dashed var(--line-bright); border-radius: 8px; }
.modal .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.demo-flag { font-family: var(--font-mono); font-size: .75rem; color: var(--gold); border: 1px solid var(--gold); padding: 1px 8px; border-radius: 4px; }

footer { border-top: 1px solid var(--line); background: rgba(2, 10, 6, 0.9); padding-block: 30px; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }

/* reveal on scroll (content visible at rest; only a gentle lift) */
.reveal { transition: transform .7s ease, opacity .7s ease; }
.reveal.pre { transform: translateY(14px); opacity: .55; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .sigil { max-width: 260px; order: -1; }
  .features, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots { grid-template-columns: 1fr 1fr; }
  .shots .shot:first-child { grid-column: 1 / -1; max-width: 420px; justify-self: center; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .top .btn { margin-inline-start: auto; padding: 8px 14px; }
  .brand b { font-size: .95rem; letter-spacing: .12em; }
  .features, .plans, .steps, .shots, .readout .wrap, .lookup, .methods { grid-template-columns: 1fr; }
  .readout div { border-inline-start: 0; border-top: 1px solid var(--line); }
  .readout div:first-child { border-top: 0; }
  section.block { padding-block: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── ORACLE support chat ── */
.oracle { position: fixed; z-index: 60; inset-inline-end: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.oracle-fab { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--green-dim); cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #0b3a20, #020c06 70%); color: var(--green);
  box-shadow: 0 0 22px rgba(57, 255, 136, .35), inset 0 0 14px rgba(57, 255, 136, .2); display: grid; place-items: center; transition: transform .2s; }
.oracle-fab:hover { transform: scale(1.06); }
.oracle-fab svg { width: 34px; height: 34px; filter: drop-shadow(0 0 4px rgba(57, 255, 136, .8)); }
.oracle-ping { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--green); animation: oping 2.6s ease-out infinite; pointer-events: none; }
.oracle.open .oracle-ping { display: none; }
@keyframes oping { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.oracle-panel { position: absolute; bottom: 76px; inset-inline-end: 0; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--glass-strong); box-shadow: 0 0 40px rgba(0, 0, 0, .6), 0 0 26px rgba(57, 255, 136, .15);
  animation: oin .25s ease-out; overflow: hidden; }
@keyframes oin { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.oracle-panel > header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(57, 255, 136, .08), transparent); }
.oracle-id { display: grid; margin-inline-end: auto; }
.oracle-id b { font-family: var(--font-mono); letter-spacing: .3em; color: var(--green); font-weight: 400; direction: ltr; text-align: right; }
.oracle-id span { font-size: .75rem; color: var(--muted); }
.oracle-id span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-inline-end: 6px; box-shadow: 0 0 6px var(--green); }
.oracle-x { background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.oracle-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.oracle-msg { max-width: 88%; padding: 9px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.75; overflow-wrap: anywhere; }
.oracle-msg p { margin: 0; } .oracle-msg p + p { margin-top: 6px; }
.oracle-msg ol, .oracle-msg ul { margin: 4px 0; padding-inline-start: 20px; }
.oracle-msg b { color: var(--green); font-weight: 600; }
.oracle-msg .btn { margin-top: 8px; padding: 6px 14px; font-size: .85rem; }
.oracle-msg.bot { align-self: flex-end; background: rgba(57, 255, 136, .06); border: 1px solid var(--line); border-start-end-radius: 3px; }
.oracle-msg.me { align-self: flex-start; background: #0d3a21; border: 1px solid var(--green-dim); border-start-start-radius: 3px; }
.oracle-noise { color: var(--green-dim); font-family: var(--font-mono); }
.oracle-typing { display: flex; gap: 5px; font-family: var(--font-mono); color: var(--green); }
.oracle-typing span { animation: otype 1s steps(2) infinite; } .oracle-typing span:nth-child(2) { animation-delay: .2s; } .oracle-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes otype { 50% { opacity: .15; } }
.oracle-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.oracle-chips:empty { display: none; }
.oracle-chips button { border: 1px solid var(--line-bright); background: transparent; color: var(--green); border-radius: 999px; padding: 4px 11px; font: inherit; font-size: .8rem; cursor: pointer; }
.oracle-chips button:hover { background: rgba(57, 255, 136, .1); }
.oracle-human { padding: 10px 14px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); display: grid; gap: 8px; }
.oracle-human p { margin: 0; }
.oracle-hform { display: flex; gap: 8px; }
.oracle-hform input { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-bright); background: #010805; color: var(--fg); font: inherit; }
.oracle-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.oracle-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line-bright);
  background: #010805; color: var(--fg); font: inherit; font-size: .92rem; line-height: 1.5; }
.oracle-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(57, 255, 136, .15); }
.oracle-form .btn { padding: 0; width: 42px; height: 42px; font-size: 1.2rem; }
.oracle-panel > footer { display: flex; justify-content: space-between; gap: 8px; padding: 6px 14px 10px; font-size: .72rem; color: var(--muted); }
.oracle-link { background: none; border: 0; color: var(--green); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .oracle { inset-inline-end: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .oracle-panel { position: fixed; inset: 10px 10px calc(86px + env(safe-area-inset-bottom, 0px)) 10px; width: auto; height: auto; }
}

.oracle-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* ── the opening: handshake, then the lids part ── */
html.intro-on, html.intro-on body { overflow: hidden; }
.intro { position: fixed; inset: 0; z-index: 200; pointer-events: auto; }
.intro .lid { position: absolute; z-index: 1; inset-inline: -10%; height: 62%; background: #010603; transition: transform .85s cubic-bezier(.7, 0, .2, 1); }
.intro .lid.top { top: 0; border-radius: 0 0 50% 50% / 0 0 18% 18%; box-shadow: 0 2px 0 rgba(57, 255, 136, .0); }
.intro .lid.bottom { bottom: 0; border-radius: 50% 50% 0 0 / 18% 18% 0 0; }
.intro .lid.top::after, .intro .lid.bottom::after { content: ""; position: absolute; inset-inline: 0; height: 2px; background: var(--green); opacity: 0;
  box-shadow: 0 0 14px var(--green), 0 0 40px var(--green); transition: opacity .3s; border-radius: 50%; }
.intro .lid.top::after { bottom: 0; } .intro .lid.bottom::after { top: 0; }
.intro.open .lid.top::after, .intro.open .lid.bottom::after { opacity: .9; }
.intro.open .lid.top { transform: translateY(-105%); }
.intro.open .lid.bottom { transform: translateY(105%); }
.intro-seam { position: absolute; z-index: 2; top: 50%; inset-inline: 0; height: 2px; margin-top: -1px; background: var(--green); transform: scaleX(0);
  box-shadow: 0 0 18px var(--green), 0 0 60px rgba(57, 255, 136, .6); transition: transform .3s ease-out, opacity .3s; }
.intro.seam .intro-seam { transform: scaleX(1); }
.intro.open .intro-seam { opacity: 0; }
.intro-term { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; gap: 4px; font-family: var(--font-mono); color: var(--green-dim);
  direction: ltr; text-align: left; font-size: clamp(.8rem, 2.6vw, 1rem); transition: opacity .25s; }
.intro-term p { margin: 0; min-height: 1.5em; white-space: pre; }
.intro-term b { color: var(--green); font-weight: 400; text-shadow: 0 0 8px var(--green); }
.intro-term .intro-brand { margin-top: 14px; color: var(--fg); letter-spacing: .25em; text-shadow: 0 0 12px rgba(57, 255, 136, .8); }
.intro.seam .intro-term, .intro.open .intro-term { opacity: 0; }

/* ── system glitch on the headline (fires together with the sigil glitch) ── */
.hero h1 { position: relative; }
.hero h1.glitching::before, .hero h1.glitching::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.hero h1.glitching::before { color: #00ffd0; transform: translate(3px, -1px); clip-path: inset(12% 0 58% 0); opacity: .8; }
.hero h1.glitching::after { color: #b6ff3a; transform: translate(-3px, 1px); clip-path: inset(56% 0 14% 0); opacity: .8; }
.hero h1.glitching { animation: hjit .16s steps(2) 1; }
@keyframes hjit { 50% { transform: translateX(-2px) skewX(-3deg); } }

/* ── best-value plan: a scanning border ── */
@property --scan { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.plan.hot { border-color: transparent;
  background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
              conic-gradient(from var(--scan), #0b2a18 0 70%, var(--green) 85%, #eafff2 88%, #0b2a18 95%) border-box;
  animation: scanb 4s linear infinite; }
@keyframes scanb { to { --scan: 360deg; } }
.plan.hot .price { font-size: calc(var(--step-3) * 1.15); }

/* header account button */
.top .acct { display: inline-flex; align-items: center; gap: 8px; }
.top .acct svg { width: 18px; height: 18px; }

/* ── risk audit section ── */
.audit { display: grid; grid-template-columns: 1.45fr 1fr; gap: 16px; align-items: start; }
.audit > div { padding: 22px; display: grid; gap: 12px; min-width: 0; }
.audit h3, .coach h3, .audit-more h3 { font-size: var(--step-1); }
.mtable { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.mtable th { color: var(--muted); font-weight: 600; text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--line-bright); }
.mtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mtable td:first-child { color: var(--fg); font-weight: 600; }
.mtable td small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.mtable td:nth-child(2) { width: 92px; }
.mtable td:nth-child(2) i { display: block; height: 4px; width: var(--w); background: var(--green); box-shadow: 0 0 8px var(--green); border-radius: 2px; margin-top: 8px; }
.mtable td:nth-child(2) b { font-family: var(--font-mono); font-weight: 400; color: var(--green); }
.mtable td:nth-child(3) { color: var(--green); } .mtable td:nth-child(4) { color: var(--red); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 58px 76px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.ladder b { font-family: var(--font-mono); font-weight: 400; font-size: 1.6rem; line-height: 1; direction: ltr; unicode-bidi: isolate; text-align: right; }
.ladder span { color: var(--muted); font-size: .8rem; }
.ladder p { margin: 0; font-size: .85rem; color: var(--muted); }
.ladder .g-a b { color: var(--green); text-shadow: 0 0 12px rgba(57,255,136,.6); }
.ladder .g-b b { color: #9dffc4; } .ladder .g-c b { color: var(--fg); } .ladder .g-d b { color: var(--gold); } .ladder .g-f b { color: var(--red); }
.coach { margin-top: 28px; display: grid; gap: 14px; }
.advice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.adv { padding: 16px 18px; display: grid; gap: 6px; align-content: start; border-inline-start: 3px solid var(--line-bright); }
.adv .sev { font-size: .75rem; font-weight: 600; }
.adv h4 { margin: 0; font-size: 1rem; }
.adv p { margin: 0; color: var(--muted); font-size: .88rem; }
.adv.sev3 { border-inline-start-color: var(--red); } .adv.sev3 .sev { color: var(--red); }
.adv.sev2 { border-inline-start-color: var(--gold); } .adv.sev2 .sev { color: var(--gold); }
.adv.sev1 { border-inline-start-color: #7fd8ff; } .adv.sev1 .sev { color: #7fd8ff; }
.adv.good { border-inline-start-color: var(--green); } .adv.good .sev { color: var(--green); }
.audit-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.audit-more > div { padding: 18px; display: grid; gap: 8px; align-content: start; }
.audit-more p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .audit { grid-template-columns: 1fr; } .advice, .audit-more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .advice, .audit-more { grid-template-columns: 1fr; } .mtable td:nth-child(2) { width: 56px; } .ladder li { grid-template-columns: 46px 1fr; } .ladder li p { grid-column: 1 / -1; } }

/* ── why / differentiators ── */
.diffs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: d; }
.diffs li { padding: 18px 18px 18px 16px; color: var(--muted); line-height: 1.9; border-inline-start: 3px solid var(--green); }
.diffs li b { color: var(--fg); font-weight: 800; }
.diffs li > b:first-child { display: block; color: var(--green); font-size: 1.05rem; margin-bottom: 4px; text-shadow: 0 0 14px rgba(57, 255, 136, .35); }
.head p b, .feature p b { color: var(--fg); font-weight: 800; }
.vs { margin-top: 18px; padding: 8px 18px; overflow-x: auto; }
.vs table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.vs th, .vs td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.vs th { color: var(--muted); font-weight: 600; }
.vs th:last-child { color: var(--green); }
.vs td:nth-child(2) { color: var(--muted); }
.vs td:last-child b { color: var(--green); font-weight: 800; }
.vs tr:last-child td { border-bottom: 0; }

/* ── panel tour ── */
.tour { display: grid; gap: 14px; }
.tour-tabs { display: flex; gap: 6px; flex-wrap: wrap; direction: ltr; justify-content: flex-end; }
.tour-tabs button { font: 600 .85rem var(--font-mono); letter-spacing: .08em; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--line-bright);
  background: rgba(2, 10, 6, .7); color: var(--muted); cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--green); color: #021208; border-color: var(--green); box-shadow: 0 0 18px rgba(57, 255, 136, .35); }
.tour-pane { display: grid; grid-template-columns: 300px 1fr; gap: 28px; padding: 22px; align-items: start; }
.tour-pane[hidden] { display: none; }
.tour-pane figure { margin: 0; }
.tour-pane img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line-bright); display: block; }
.tour-pane h3 { font-size: var(--step-1); margin-bottom: 10px; }
.tour-pane ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--muted); line-height: 1.9; }
.tour-pane li b { color: var(--fg); font-weight: 800; }
.mock { border: 1px solid var(--line-bright); border-radius: 8px; background: #0b1410; padding: 14px; display: grid; gap: 10px; font-family: var(--font-mono); direction: ltr; }
.mock small { color: var(--muted); font-size: .7rem; letter-spacing: .1em; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock-grid span { font-size: .68rem; text-align: center; padding: 9px 4px; border-radius: 6px; background: #17241d; color: #c7e8d3; border: 1px solid #23392c; }
.mock-grid span.on { background: #1a3d29; color: var(--green); border-color: var(--green-dim); }
.mock-grid span.danger { background: #5a1b22; color: #fff; border-color: #8a2a33; }
.mock-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.mock-rows li { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px solid #1d2b23; font-size: .75rem; color: var(--muted); }
.mock-rows b { color: #e5f5ec; font-weight: 400; }
@media (max-width: 960px) { .diffs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tour-pane { grid-template-columns: 220px 1fr; } }
@media (max-width: 640px) { .diffs { grid-template-columns: 1fr; } .tour-pane { grid-template-columns: 1fr; } .tour-pane figure, .tour-pane .mock { max-width: 300px; justify-self: center; width: 100%; } }

/* ── not-just-an-EA / coach section ── */
.coach-wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: start; }
.coach-text .head h2 b { color: var(--green); font-weight: 800; text-shadow: 0 0 22px rgba(57, 255, 136, .35); }
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stages li { padding: 18px 20px; display: grid; gap: 6px; border-inline-start: 3px solid var(--green); }
.stages .st-n { font-size: .75rem; color: var(--green); font-weight: 700; letter-spacing: .04em; }
.stages h3 { font-size: 1.15rem; margin: 0; }
.stages p { margin: 0; color: var(--muted); line-height: 1.95; }
.stages p b { color: var(--fg); font-weight: 800; }
.coach-feed { padding: 0; overflow: hidden; position: sticky; top: 90px; }
.coach-feed header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.coach-feed header b { font-family: var(--font-mono); font-weight: 400; letter-spacing: .2em; color: var(--green); direction: ltr; }
.coach-feed header small { color: var(--muted); font-size: .75rem; margin-inline-start: auto; }
.coach-feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s steps(1) infinite; }
.coach-feed ul { list-style: none; margin: 0; padding: 8px 0; }
.coach-feed li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 16px; border-inline-start: 3px solid transparent; }
.coach-feed li + li { border-top: 1px solid rgba(19, 74, 44, .6); }
.coach-feed time { grid-row: span 2; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); direction: ltr; padding-top: 2px; }
.coach-feed code { font-family: var(--font-mono); font-size: .8rem; direction: ltr; text-align: left; color: var(--fg); overflow-wrap: anywhere; }
.coach-feed li p { margin: 0; color: var(--muted); font-size: .85rem; }
.coach-feed li.ok { border-inline-start-color: var(--green); } .coach-feed li.ok code { color: var(--green); }
.coach-feed li.warn { border-inline-start-color: var(--gold); } .coach-feed li.warn code { color: var(--gold); }
.coach-feed li.bad { border-inline-start-color: var(--red); } .coach-feed li.bad code { color: var(--red); }
.coach-feed li.coachmsg { border-inline-start-color: #7fd8ff; } .coach-feed li.coachmsg code { color: #9fe3ff; }
.coach-feed footer { padding: 10px 16px 14px; color: var(--muted); font-size: .72rem; border-top: 1px solid var(--line); }
@media (max-width: 960px) { .coach-wrap { grid-template-columns: 1fr; } .coach-feed { position: static; } }

/* ── colour accents ── */
:root { --cyan: #29e7ff; --violet: #a879ff; --gold-hi: #ffd46b; }
.features .feature:nth-child(4n+2) svg { stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(41, 231, 255, .6)); }
.features .feature:nth-child(4n+3) svg { stroke: var(--violet); filter: drop-shadow(0 0 6px rgba(168, 121, 255, .6)); }
.features .feature:nth-child(4n+4) svg { stroke: var(--gold-hi); filter: drop-shadow(0 0 6px rgba(255, 212, 107, .5)); }
.features .feature:nth-child(4n+1) svg { filter: drop-shadow(0 0 6px rgba(57, 255, 136, .6)); }
.diffs li:nth-child(3n+2) { border-inline-start-color: var(--cyan); } .diffs li:nth-child(3n+2) > b:first-child { color: var(--cyan); text-shadow: 0 0 14px rgba(41, 231, 255, .35); }
.diffs li:nth-child(3n+3) { border-inline-start-color: var(--violet); } .diffs li:nth-child(3n+3) > b:first-child { color: var(--violet); text-shadow: 0 0 14px rgba(168, 121, 255, .35); }
.stages li:nth-child(2) { border-inline-start-color: var(--cyan); } .stages li:nth-child(2) .st-n { color: var(--cyan); }
.stages li:nth-child(3) { border-inline-start-color: var(--violet); } .stages li:nth-child(3) .st-n { color: var(--violet); }
.plan .meter i { background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green)); box-shadow: 0 0 10px rgba(41, 231, 255, .6); }
.tag { background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 em { background: linear-gradient(100deg, var(--green), var(--cyan) 55%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 14px rgba(41, 231, 255, .35)); }
.tour-tabs button:nth-child(2)[aria-selected="true"], .tour-tabs button:nth-child(5)[aria-selected="true"] { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 18px rgba(41, 231, 255, .4); }
.tour-tabs button:nth-child(3)[aria-selected="true"], .tour-tabs button:nth-child(6)[aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: #12061f; box-shadow: 0 0 18px rgba(168, 121, 255, .45); }
.btn.solid { background: linear-gradient(135deg, var(--green), #2cf0c0); }
.btn.solid:hover { background: linear-gradient(135deg, #6bffa6, var(--cyan)); }

/* ── depth: tilting cards with glare ── */
.tilt:not(.pre) { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; will-change: transform; position: relative; }
.tilt.tilting { transition: transform .08s linear, box-shadow .35s, border-color .35s; border-color: rgba(41, 231, 255, .45);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(168, 121, 255, .15), 0 0 30px -6px rgba(41, 231, 255, .25); }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .09), transparent 45%); }
.tilt.tilting::after { opacity: 1; }
.tilt > * { transform: translateZ(18px); }
.feature.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); }
.glass { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04); }
.head h2 { text-shadow: 0 1px 0 #0d3a21, 0 2px 0 #0a2c19, 0 3px 0 #071f12, 0 10px 24px rgba(0, 0, 0, .7); }

/* ── hero floor: a receding grid under the sigil ── */
.hero { position: relative; overflow: hidden; }
.hero > .wrap { position: relative; z-index: 1; }
.floor { position: absolute; inset: auto 0 0 0; height: 55%; perspective: 420px; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent 90%); mask-image: linear-gradient(to top, #000 25%, transparent 90%); }
.floor-grid { position: absolute; inset: 0 -50% -40% -50%; transform: rotateX(68deg); transform-origin: 50% 0;
  background-image: linear-gradient(rgba(41, 231, 255, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 121, 255, .5) 1px, transparent 1px);
  background-size: 60px 60px; animation: floorrun 3.5s linear infinite; }
@keyframes floorrun { to { background-position: 0 60px, 0 0; } }
.sigil svg { transform-style: preserve-3d; will-change: transform; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
@media (max-width: 860px) { .floor { height: 35%; } }

.tilt { transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .7s, box-shadow .35s, border-color .35s; }

/* eNamad badge slot */
.enamad:empty { display: none; }
.enamad { margin-top: 14px; display: inline-flex; width: max-content; padding: 8px; border-radius: 12px; background: #fff; }
.enamad img { display: block; }

/* discount code */
.coupon-row { display: flex; gap: 8px; } .coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-msg { display: block; min-height: 1.2em; margin-top: 4px; font-size: var(--step--1); color: var(--muted); }
.coupon-msg.ok { color: var(--green); } .coupon-msg.bad { color: var(--red); }
#co-price s.old { color: var(--muted); font-weight: 400; margin-inline-end: 4px; }

/* ── language switch (FA | EN) ── */
.lang-switch { display: inline-flex; align-items: center; direction: ltr; font: .72rem var(--font-mono); letter-spacing: .06em;
  border: 1px solid var(--line-bright); border-radius: 7px; overflow: hidden; background: rgba(1, 6, 3, .6); flex: none; }
.lang-switch a, .lang-switch span { padding: 5px 8px; line-height: 1.2; color: var(--muted); text-decoration: none; }
.lang-switch a:hover { color: var(--green); background: rgba(57, 255, 136, .08); }
.lang-switch [aria-current] { color: #021208; background: var(--green); box-shadow: 0 0 14px rgba(57, 255, 136, .35); }
.lang-switch .sep { padding: 0; width: 1px; align-self: stretch; background: var(--line-bright); }
/* phones: the switch shares the first row with the brand, the buttons keep the second row */
@media (max-width: 620px) {
  .top .brand { order: -2; }
  .top .lang-switch { order: -1; margin-inline-start: auto; }
  .lang-switch a, .lang-switch span { padding: 6px 8px; }
}

/* ── English (LTR) pages: undo the places site.css hard-codes right-to-left ── */
[dir="ltr"] body { direction: ltr; line-height: 1.75; }
[dir="ltr"] .veil { background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 35%, rgba(1, 4, 2, 0.85) 100%),
    linear-gradient(270deg, rgba(2, 8, 5, 0.3), rgba(2, 8, 5, 0.55) 55%, rgba(2, 8, 5, 0.7)); }
[dir="ltr"] .eyebrow, [dir="ltr"] .tag, [dir="ltr"] .typed, [dir="ltr"] .step::before,
[dir="ltr"] .oracle-id b, [dir="ltr"] .ladder b { text-align: left; }
[dir="ltr"] .mtable th, [dir="ltr"] .vs th, [dir="ltr"] .vs td { text-align: left; }
[dir="ltr"] .tour-tabs { justify-content: flex-start; }
[dir="ltr"] .diffs li { padding: 18px 16px 18px 18px; }
[dir="ltr"] .hero h1 { letter-spacing: -.01em; }
[dir="ltr"] .coach-feed time { text-align: left; }
/* chat: visitor on the right, ORACLE on the left (the usual LTR convention) */
[dir="ltr"] .oracle-msg.bot { align-self: flex-start; border-start-end-radius: 12px; border-start-start-radius: 3px; }
[dir="ltr"] .oracle-msg.me { align-self: flex-end; border-start-start-radius: 12px; border-start-end-radius: 3px; }
[dir="ltr"] .nav { gap: 12px; }

/* ORACLE guided help menu */
.oracle-chips.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; max-height: 46%; overflow-y: auto; }
.oracle-chips.menu button { display: flex; align-items: center; gap: 8px; text-align: start; border-radius: 12px; padding: 9px 10px;
  background: rgba(57, 255, 136, .04); color: var(--fg); line-height: 1.45; transition: background .15s, border-color .15s, transform .15s; }
.oracle-chips.menu button:hover { background: rgba(57, 255, 136, .12); border-color: var(--green); transform: translateY(-1px); }
.oracle-chips.menu button .ic { font-size: 1.05rem; flex: none; }
.oracle-chips.menu button.go, .oracle-chips.fb button.go { grid-column: span 1; justify-content: center; color: var(--muted); background: transparent; }
.oracle-chips.fb { display: flex; flex-wrap: wrap; gap: 7px; }
.oracle-chips.fb button.ok { border-color: var(--green); }
.oracle-chips.fb button.no { border-color: rgba(255, 120, 120, .6); color: #ff9b9b; }
@media (max-width: 380px) { .oracle-chips.menu { grid-template-columns: 1fr; } }
