/* nysiaa-OS commercial site — GA-20260811.
   Self-contained: no web fonts, no CDN, no external assets (the OTA host stays
   isolated). RTL is the default; [dir=ltr] flips through logical properties. */

:root {
  --blue: #00aeef;
  --blue-deep: #0b7fb0;
  --gold: #f6b83c;
  --green: #2ecc71;
  --bg: #070b10;
  --bg-2: #0b1219;
  --card: rgba(18, 26, 35, 0.82);
  --border: #1e2b38;
  --border-soft: rgba(255, 255, 255, 0.07);
  --text: #eaf2f8;
  --muted: #90a5b6;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 85% -8%, rgba(0, 174, 239, 0.16), transparent 62%),
    radial-gradient(900px 520px at 10% 4%, rgba(246, 184, 60, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Segoe UI', Tahoma, 'Noto Naskh Arabic', Arial, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

[lang-en] { display: none; }
html[dir='ltr'] [lang-ar] { display: none; }
html[dir='ltr'] [lang-en] { display: inline; }
html[dir='ltr'] [lang-en].block { display: block; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 16, 0.82);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 18px; }
.logo { font-size: 21px; font-weight: 800; letter-spacing: 0.4px; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 8px rgba(0, 174, 239, 0.35)); }
.logo-text span { color: var(--blue); }
.logo-text small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 2px; }
.nav-links { display: flex; gap: 6px; margin-inline-start: auto; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: 13.5px; padding: 7px 11px; border-radius: 9px; transition: 0.18s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 10px 18px;
  font-size: 14px; font-weight: 700; font-family: inherit; cursor: pointer; transition: 0.18s;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #04222f;
}
.btn:hover { filter: brightness(1.09); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn.ghost:hover { border-color: var(--blue); color: #fff; }
.btn.sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.btn.gold { background: linear-gradient(135deg, var(--gold), #d1902a); color: #2a1d02; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* hero */
.hero { padding: 74px 0 46px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0, 174, 239, 0.1); border: 1px solid rgba(0, 174, 239, 0.32);
  color: var(--blue); border-radius: 999px; padding: 5px 15px;
  font-size: 12px; font-weight: 700; margin-bottom: 18px;
}
.hero h1 { font-size: 43px; line-height: 1.28; margin: 0 0 16px; letter-spacing: -0.4px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lede { font-size: 17.5px; color: var(--muted); margin: 0 0 26px; max-width: 620px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 25px; color: #fff; }
.hero-stats div span { font-size: 12.5px; color: var(--muted); }

section { padding: 54px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: 29px; margin: 0 0 8px; letter-spacing: -0.3px; }
.section-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: 2.4px; color: var(--blue); text-transform: uppercase; display: block; margin-bottom: 8px; }

.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 16.5px; color: #fff; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .ico {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(0, 174, 239, 0.12); border: 1px solid rgba(0, 174, 239, 0.28);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 19px;
}

/* editions */
.edition {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.edition::before { content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 3px; height: 100%; background: var(--blue); }
.edition.pro::before { background: var(--gold); }
.edition-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.edition h3 { margin: 8px 0 2px; font-size: 20px; color: #fff; }
.edition .model {
  color: var(--muted);
  font-size: 12.5px;
  font-family: Consolas, "Segoe UI", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}
.badge {
  display: inline-block; background: rgba(0, 174, 239, 0.12); color: var(--blue);
  border: 1px solid rgba(0, 174, 239, 0.3); border-radius: 999px; padding: 3px 12px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.6px; white-space: nowrap;
}
.edition.pro .badge { background: rgba(246, 184, 60, 0.12); color: var(--gold); border-color: rgba(246, 184, 60, 0.3); }
.badge.ok { background: rgba(46, 204, 113, 0.12); color: var(--green); border-color: rgba(46, 204, 113, 0.32); }
.badge.warn { background: rgba(246, 184, 60, 0.14); color: var(--gold); border-color: rgba(246, 184, 60, 0.34); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 16px 0; font-size: 13.5px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-family: Consolas, monospace; word-break: break-all; }
.edition ul { margin: 4px 0 16px; padding-inline-start: 19px; font-size: 13.5px; }
.edition ul li { margin-bottom: 5px; }
.edition-foot { margin-top: auto; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.hash {
  font-family: Consolas, monospace; font-size: 11px; color: var(--muted);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 9px; word-break: break-all; direction: ltr; text-align: start;
}

/* simulator */
.sim-shell { background: #0a1017; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.sim-chrome { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #0d151d; border-bottom: 1px solid var(--border); }
.sim-dots { display: flex; gap: 6px; }
.sim-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.sim-url {
  flex: 1; background: #070d13; border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 12px; font-family: Consolas, monospace; font-size: 12px; color: var(--muted);
  direction: ltr; text-align: start;
}
.sim-body { display: grid; grid-template-columns: 208px 1fr; min-height: 470px; }
.sim-side { background: #0c141c; border-inline-end: 1px solid var(--border); padding: 16px 12px; }
.sim-brand { font-weight: 800; font-size: 16px; padding: 0 8px 4px; }
.sim-brand span { color: var(--blue); }
.sim-brand small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.sim-nav { margin-top: 16px; display: flex; flex-direction: column; gap: 3px; }
.sim-nav button {
  background: transparent; border: 0; color: var(--muted); text-align: start;
  padding: 9px 11px; border-radius: 9px; cursor: pointer; font-size: 13.5px;
  font-family: inherit; display: flex; align-items: center; gap: 9px; transition: 0.15s;
}
.sim-nav button:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.sim-nav button.on { background: rgba(0, 174, 239, 0.13); color: var(--blue); font-weight: 700; }
.sim-main { padding: 18px 20px 24px; }
.sim-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sim-topbar h4 { margin: 0; font-size: 17px; }
.sim-topbar .sub { font-size: 12px; color: var(--muted); }
.sim-pills { display: flex; gap: 6px; align-items: center; }
.pill { font-size: 11px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; color: var(--muted); }
.pill.live { color: var(--green); border-color: rgba(46, 204, 113, 0.35); }

.lic-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(46, 204, 113, 0.1); border: 1px solid rgba(46, 204, 113, 0.36);
  border-radius: 12px; padding: 11px 14px; margin-bottom: 14px;
}
.lic-banner strong { display: block; font-size: 13px; color: #d8ffe9; }
.lic-banner span { font-size: 12px; color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 11px; }
.kpi { background: #0e1720; border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.kpi .k-label { font-size: 11px; color: var(--muted); }
.kpi .k-value { font-size: 21px; font-weight: 800; color: var(--blue); margin-top: 3px; }
.kpi .k-foot { font-size: 10.5px; color: var(--muted); margin-top: 3px; }

.ports { display: flex; gap: 9px; margin-top: 14px; flex-wrap: wrap; }
.port { width: 62px; text-align: center; background: #0e1720; border: 1px solid var(--border); border-radius: 10px; padding: 9px 4px; font-size: 10.5px; color: var(--muted); }
.port i { display: block; height: 15px; border-radius: 4px; background: #1c2836; margin-bottom: 6px; }
.port.up { border-color: rgba(46, 204, 113, 0.45); color: #cfe; }
.port.up i { background: linear-gradient(180deg, var(--green), #1d9b56); }

table.sim-t { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
table.sim-t th { text-align: start; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); padding: 7px 8px; font-size: 11.5px; }
table.sim-t td { padding: 9px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.sw { width: 34px; height: 19px; border-radius: 999px; background: #23313f; position: relative; display: inline-block; }
.sw.on { background: rgba(46, 204, 113, 0.55); }
.sw::after { content: ''; position: absolute; top: 2.5px; inset-inline-start: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.sw.on::after { inset-inline-start: auto; inset-inline-end: 3px; }

.sim-note { margin-top: 14px; font-size: 12px; color: var(--muted); background: rgba(0, 174, 239, 0.06); border: 1px dashed rgba(0, 174, 239, 0.28); border-radius: 10px; padding: 9px 12px; }
.sim-picker { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sim-picker button { background: #0e1720; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.sim-picker button.on { border-color: var(--blue); color: var(--blue); background: rgba(0, 174, 239, 0.1); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.step .n {
  counter-increment: s; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(0, 174, 239, 0.12); border: 1px solid rgba(0, 174, 239, 0.3);
  color: var(--blue); font-weight: 800; display: grid; place-items: center; font-size: 17px;
}
.step .n::before { content: counter(s); }
.step h4 { margin: 0 0 5px; font-size: 15.5px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* forms */
.form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 12.5px; color: var(--muted); }
input, select, textarea {
  background: #0b131b; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); padding: 10px 13px; font-size: 14px; font-family: inherit; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.out {
  font-family: Consolas, monospace; font-size: 12.5px; background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px;
  white-space: pre-wrap; word-break: break-word; display: none;
}
.out.show { display: block; }
.out.ok { border-color: rgba(46, 204, 113, 0.4); color: #cdf7e0; }
.out.err { border-color: rgba(231, 76, 60, 0.45); color: #ffd7d2; }

.note { background: rgba(46, 204, 113, 0.07); border: 1px solid rgba(46, 204, 113, 0.24); border-radius: 12px; padding: 15px 18px; color: var(--muted); font-size: 13.5px; }
.note b { color: var(--green); }
.note.warn { background: rgba(246, 184, 60, 0.07); border-color: rgba(246, 184, 60, 0.26); }
.note.warn b { color: var(--gold); }

/* downloads */
.dl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.dl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
table.dl th { background: #0d151d; text-align: start; padding: 12px 14px; color: var(--muted); font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--border); }
table.dl td { padding: 13px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
table.dl tr:last-child td { border-bottom: 0; }
code.mono { font-family: Consolas, monospace; font-size: 12px; direction: ltr; display: inline-block; }
pre.cmd {
  background: #060b11; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  overflow-x: auto; font-family: Consolas, monospace; font-size: 12.5px; color: #cfe6f5;
  direction: ltr; text-align: start;
}

.dl-btn { font-weight: 700; }
ol.steps-lite { margin: 0; padding-inline-start: 20px; font-size: 13.5px; color: var(--text); }
ol.steps-lite li { margin-bottom: 9px; }
ol.steps-lite li::marker { color: var(--blue); font-weight: 800; }

details.faq { background: var(--card); border: 1px solid var(--border); border-radius: 13px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
details.faq p { color: var(--muted); font-size: 13.5px; margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--border); margin-top: 40px; padding: 34px 0 46px; color: var(--muted); font-size: 13px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; margin-bottom: 24px; }
.foot-grid h5 { margin: 0 0 10px; color: #fff; font-size: 13.5px; }
.foot-grid a { display: block; color: var(--muted); font-size: 13px; padding: 2px 0; }
.foot-grid a:hover { color: var(--blue); }
.foot-grid .logo-mark { width: 28px; height: 28px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .sim-body { grid-template-columns: 1fr; }
  .sim-side { border-inline-end: 0; border-bottom: 1px solid var(--border); }
  .sim-nav { flex-direction: row; overflow-x: auto; }
  .nav-links { display: none; }
  .row2 { grid-template-columns: 1fr; }
}

/* ── EULA section + consent modal ─────────────────── */
.pill.ok { color: var(--green); border-color: rgba(46, 204, 113, 0.35); }
.eula-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.eula-body { max-height: 60vh; overflow: auto; font-size: 13.5px; line-height: 1.9; }
.eula-body h3, .eula-body h4, .eula-body h5, .eula-body h6 { margin: 18px 0 8px; font-size: 14.5px; color: var(--text); }
.eula-body ul { margin: 0 0 10px; padding-inline-start: 22px; }
.eula-body li { margin: 0 0 5px; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.7; }
.consent-row input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.modal-back { position: fixed; inset: 0; z-index: 90; background: rgba(4, 8, 12, 0.78); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-back[hidden] { display: none; }
.modal { width: min(760px, 100%); max-height: 88vh; display: flex; flex-direction: column; background: var(--card, #101a24); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.modal-head, .modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-foot { border-bottom: 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-body { padding: 18px; overflow: auto; font-size: 13.5px; line-height: 1.9; }
.modal-body h3, .modal-body h4, .modal-body h5, .modal-body h6 { margin: 16px 0 8px; font-size: 14px; }
.modal-body ul { margin: 0 0 10px; padding-inline-start: 22px; }
