/* =========================================================
   Rev Mind Tech Solutions — style.css
   Works in RTL (Arabic) and LTR (English) using logical
   properties. Palette is taken from the logo.
   ========================================================= */

:root {
  --ink: #08202b;
  --ink-2: #0e3340;
  --teal: #1fa79a;
  --teal-lt: #6fe3d3;
  --gold: #e7a33e;
  --gold-dk: #c78521;
  --paper: #f3f7f6;
  --white: #ffffff;
  --text: #10303b;
  --muted: #56717a;
  --line: #d6e1e0;
  --line-dk: rgba(255, 255, 255, .14);
  --radius: 14px;
  --head: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", "Readex Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--gold); color: var(--ink); padding: .5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--teal-lt); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--head);
  padding: 1rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-sm { padding: .7rem 1.2rem; font-size: .95rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #f1b552; }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--teal-lt); color: var(--teal-lt); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 32, 43, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dk);
}
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand img { border-radius: 50%; }
.brand-text { display: inline-flex; flex-wrap: wrap; align-items: baseline; font-family: var(--head); line-height: 1; }
.brand-text b { font-size: 1.5rem; font-weight: 700; }
.brand-text .rev { color: var(--gold); }
.brand-text .mind { color: var(--teal-lt); }
.brand-text small { flex-basis: 100%; font-size: .72rem; font-weight: 400; letter-spacing: .08em; color: #a9c3c8; margin-top: .3rem; }

.nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.nav a { color: #d3e3e5; text-decoration: none; font-size: .97rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--gold); }
.bar-actions { display: flex; align-items: center; gap: .75rem; }
.lang-btn {
  font: 500 .92rem var(--head); color: var(--white); background: transparent;
  border: 1px solid var(--line-dk); border-radius: 999px; padding: .55rem 1rem; cursor: pointer;
}
.lang-btn:hover { border-color: var(--teal-lt); color: var(--teal-lt); }
.menu-btn { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 167, 154, .35), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(231, 163, 62, .12), transparent 60%),
    var(--ink);
  overflow: hidden;
}
/* circuit lines echo the logo's brain */
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%231fa79a' stroke-opacity='.16' stroke-width='1.2'%3E%3Cpath d='M0 60h50l20 20h60M130 80v40l20 20h90M60 200h40l20-20h50M170 0v50l-20 20M20 140h40l20 20v80'/%3E%3Ccircle cx='50' cy='60' r='4'/%3E%3Ccircle cx='130' cy='120' r='4'/%3E%3Ccircle cx='170' cy='50' r='4'/%3E%3Ccircle cx='100' cy='200' r='4'/%3E%3Ccircle cx='60' cy='160' r='4'/%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; padding-block: 5rem 5.5rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.2; font-weight: 600; }
html[lang="ar"] .hero h1 { line-height: 1.45; }
.hero .lead { margin-top: 1.5rem; color: #c3d6d9; font-size: 1.15rem; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* pricing card (the one memorable element) */
.pricing-card {
  margin: 0; padding: 1.5rem 1.5rem 1.25rem; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--line-dk);
}
.pricing-card figcaption { font: 500 1rem var(--head); color: var(--white); }
.legend { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-block: .6rem .4rem; font-size: .88rem; color: #b6cdd1; }
.lg::before { content: ""; display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--gold); vertical-align: middle; margin-inline-end: .5rem; }
.lg-flat::before { border-top: 2px dashed #8fa9ae; }
.chart-box svg { width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.chart-box text { font-family: var(--head); font-size: 11px; fill: #8fb0b6; }
.chart-box .ev-label { fill: var(--teal-lt); font-size: 11px; }
.readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .8rem 0 0; padding-top: .9rem; border-top: 1px solid var(--line-dk); }
.readout dt { font-size: .78rem; color: #8fb0b6; }
.readout dd { margin: 0; font: 600 1.15rem var(--head); color: var(--white); }
.readout dd.gold { color: var(--gold); }
.pc-foot { margin-top: 1rem; font-size: .95rem; color: #c3d6d9; }
.pc-foot strong { color: var(--teal-lt); font-family: var(--head); font-size: 1.15rem; }
.pc-foot small { color: #7f9ea4; font-size: .8rem; }

/* ---------- Strip ---------- */
.strip { background: var(--ink-2); color: #d7e8ea; border-top: 1px solid var(--line-dk); }
.strip p { padding-block: 1.4rem; font-size: 1.05rem; max-width: 60em; }

/* ---------- Sections ---------- */
.section { padding-block: 5.5rem; }
.section-tint { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--white); }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.35; margin-bottom: 2.5rem; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.split h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.35; }
html[lang="ar"] .split h2, html[lang="ar"] .section-title { line-height: 1.55; }
.split-head .muted, .split-head .lead { margin-top: 1.2rem; }

.rows li { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.rows p { color: var(--muted); }

.principle {
  margin: 4rem 0 0; padding: 2rem 2.2rem; border-radius: var(--radius);
  background: var(--ink); color: var(--white);
  border-inline-start: 6px solid var(--gold);
  font: 500 clamp(1.15rem, 2.1vw, 1.5rem)/1.7 var(--head);
}

/* ---------- Accordion ---------- */
.acc details { border-top: 1px solid var(--line); }
.acc details:last-child { border-bottom: 1px solid var(--line); }
.acc summary {
  display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center;
  padding-block: 1.6rem; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; grid-row: 1 / span 2; grid-column: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; font: 400 1.5rem/1 var(--head); color: var(--teal);
}
.acc details[open] summary::after { content: "–"; background: var(--teal); color: var(--white); border-color: var(--teal); }
.s-title { font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.5 var(--head); }
.s-sub { color: var(--muted); }
.acc ul { padding: 0 0 1.8rem; max-width: 52em; display: grid; gap: .8rem; }
.acc li { position: relative; padding-inline-start: 1.6rem; }
.acc li::before { content: ""; position: absolute; inset-inline-start: 0; top: .85em; width: 9px; height: 3px; border-radius: 2px; background: var(--gold); }

/* ---------- ROI ---------- */
.roi-head { max-width: 46em; margin-bottom: 2.5rem; }
.roi-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.4; }
html[lang="ar"] .roi-head h2 { line-height: 1.55; }
.roi-head .muted { margin-top: 1rem; }
.roi-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.roi-form { display: grid; gap: 1.1rem; padding: 1.8rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.roi-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem 1.2rem; margin: 0; display: grid; gap: 1rem; }
.roi-form legend { padding-inline: .5rem; font: 600 .95rem var(--head); color: var(--teal); }
label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 500; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--body); color: var(--text);
  padding: .7rem .85rem; border: 1px solid #bccfcd; border-radius: 10px; background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31, 167, 154, .35); border-color: var(--teal); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.range b { color: var(--teal); font-family: var(--head); }
input[type="range"] { padding: 0; accent-color: var(--teal); }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
.roi-table th, .roi-table td { padding: .85rem .9rem; text-align: start; border-bottom: 1px solid var(--line); }
.roi-table thead th { font: 600 1rem var(--head); color: var(--teal); border-bottom: 2px solid var(--ink); }
.roi-table tbody th { font-weight: 500; color: var(--muted); }
.roi-table td { font: 500 1rem var(--head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.roi-table tr.hl th, .roi-table tr.hl td { background: #e8f4f2; color: var(--ink); font-weight: 600; }
.neg { color: #b3372f; }
.verdict { margin-top: 1.2rem; font: 600 1.1rem/1.6 var(--head); color: var(--ink); }
.note { margin-top: .8rem; font-size: .85rem; color: var(--muted); }
.roi-out .btn { margin-top: 1.4rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line-dk); }
.steps li { counter-increment: s; padding: 1.8rem 1.5rem 0; border-inline-end: 1px solid var(--line-dk); }
.steps li:first-child { padding-inline-start: 0; }
.steps li:last-child { border-inline-end: 0; }
.steps li::before { content: counter(s); display: block; font: 700 2.6rem/1 var(--head); color: var(--gold); margin-bottom: 1rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.steps p { color: #b6cdd1; }

/* ---------- Business model table ---------- */
.model-table th, .model-table td { padding: 1.3rem 1.2rem; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.model-table thead th { font: 600 .95rem var(--head); color: var(--teal); border-bottom: 2px solid var(--ink); }
.model-table tbody th { font: 600 1.1rem/1.5 var(--head); width: 30%; }
.model-table td { color: var(--muted); }

/* ---------- Contact ---------- */
.contact .lead { color: #c3d6d9; }
.mail-list { margin-top: 2rem; display: grid; gap: 1.2rem; }
.mail-list li { display: grid; gap: .1rem; }
.mail-list span { color: #8fb0b6; font-size: .9rem; }
.mail-list a { font: 500 1.25rem var(--head); color: var(--teal-lt); text-decoration: none; width: fit-content; }
.mail-list a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 1.1rem; padding: 2rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dk); }
.contact-form input, .contact-form select, .contact-form textarea { background: rgba(255, 255, 255, .95); }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.contact-form .note { color: #9bbcc1; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { background: #05161d; color: #8fb0b6; padding-block: 2rem; font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer .brand-text b { font-size: 1.2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .roi-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { border-inline-end: 0; padding-inline: 0 1rem; border-bottom: 1px solid var(--line-dk); padding-bottom: 1.6rem; }
  .section { padding-block: 4rem; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; inset-inline: 0; top: 72px; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dk);
    padding: .5rem 1.25rem 1rem; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line-dk); }
  .bar-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  .field-row, .steps { grid-template-columns: 1fr; }
  .readout { grid-template-columns: 1fr 1fr; }
  .bar-actions .btn { display: none; }
  .hero-grid { padding-block: 3rem 3.5rem; }
  .principle { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- Form additions ---------- */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form label { color: #dbe9ea; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status.ok { color: var(--teal-lt); font-weight: 500; }
.form-status.err { color: #ffb4a8; }
.form-status a { color: var(--gold); margin-inline-start: .3rem; }
