:root {
  --orax: #00d4aa;
  --orax-dim: #00a884;
  --orax-glow: rgba(0, 212, 170, 0.25);
  --bg: #070b12;
  --bg-card: #0f1623;
  --bg-elevated: #151f30;
  --text: #e8edf5;
  --text-muted: #8b9bb4;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --font-en: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body.en {
  font-family: var(--font-en);
  direction: ltr;
  text-align: left;
}

body.ar {
  direction: rtl;
  text-align: right;
}

a {
  color: var(--orax);
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.lang-toggle {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orax), var(--orax-dim));
  color: #041018;
  box-shadow: 0 8px 28px var(--orax-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-lg {
  width: 100%;
  padding: 1.05rem 1.5rem;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

.download-version {
  margin: 0.55rem 0 0;
  color: var(--orax);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--orax);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-visual {
  background: radial-gradient(circle at 30% 20%, var(--orax-glow), transparent 55%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.hero-logo {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.45));
  animation: hero-float 4s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.mock-window {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b111b;
}

.mock-titlebar {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  background: #121a28;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.dot.green {
  background: var(--orax);
}

.mock-body {
  padding: 1.25rem;
}

.orax-id {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--orax);
  text-align: center;
  margin: 1rem 0;
}

.status-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 212, 170, 0.12);
  color: var(--orax);
  font-size: 0.85rem;
}

/* Sections */
section {
  padding: 4rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

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

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--orax-glow);
  color: var(--orax);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 1rem;
}

/* Download */
.download-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
}

.download-box h2 {
  margin-top: 0;
}

.version-badge {
  display: inline-block;
  background: var(--orax);
  color: #041018;
  font-weight: 800;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-inline-end: 0.5rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.spec-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.spec-list strong {
  color: var(--text);
}

.checksum {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--text-muted);
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.side-note {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.side-note h4 {
  margin-top: 0;
}

/* FAQ */
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.65rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

[data-lang="en"] {
  display: none;
}

body.en [data-lang="ar"] {
  display: none;
}

body.en [data-lang="en"] {
  display: revert;
}

body.en .hero-meta,
body.en .spec-list li {
  flex-direction: row;
}

@media (max-width: 900px) {
  .hero-grid,
  .download-panel,
  .steps {
    grid-template-columns: 1fr;
  }

  .nav .hide-mobile {
    display: none;
  }
}
