/* Waey · Landing Page · واعي */
:root {
  /* === Waey Brand Colors === */
  --red:        #C0392B;   /* Primary red */
  --red-deep:   #8B1A1A;   /* Deep dark red */
  --red-light:  #F0A8A0;   /* Soft pink-red */
  --red-vivid:  #E74C3C;   /* Bright accent red */
  --red-pale:   #FDF0EE;   /* Background tint */

  /* === Backgrounds === */
  --bg:         #FBF5F4;
  --bg-2:       #F5E8E6;
  --ink:        #1A0605;
  --muted:      #6B3A35;
  --line:       rgba(139, 26, 26, 0.12);

  /* === Cards === */
  --card-bg:    rgba(255, 255, 255, 0.68);
  --card-bd:    rgba(192, 57, 43, 0.22);
  --card-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 8px 28px -12px rgba(139,26,26,0.14);

  /* === Layout === */
  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1120px;

  /* === Typography === */
  --fs-base:    16px;
  --font:       "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:  "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

html[lang="ar"], html[lang="ar"] body {
  font-family: "Sora", Tahoma, "Geeza Pro", Arial, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(900px 600px at 90% -8%, rgba(192,57,43,0.10), transparent 55%),
    radial-gradient(700px 500px at -8% 25%, rgba(231,76,60,0.07), transparent 55%),
    radial-gradient(600px 400px at 50% 80%, rgba(139,26,26,0.06), transparent 55%),
    var(--bg);
  min-height: 100vh;
}

a { color: var(--red-deep); text-decoration: none; }
a:hover { color: var(--red-vivid); }
img { max-width: 100%; display: block; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(251, 245, 244, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
  font-family: var(--font);
}
.brand-logo {
  width: 34px;
  height: 34px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(192,57,43,0.3));
  transition: transform 0.3s ease;
}
.brand:hover .brand-logo { transform: rotate(-10deg) scale(1.05); }

/* Gradient wordmark — deep red → vivid red */
.wordmark {
  background: linear-gradient(90deg,
    var(--red-deep) 0%,
    var(--red) 45%,
    var(--red-vivid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-family: var(--font);
  letter-spacing: -0.02em;
}
.wordmark-lg {
  font-size: 1em;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
}
.nav-links a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  opacity: 0.72;
  white-space: nowrap;
  transition: opacity 0.15s, color 0.15s;
}
.nav-links a:hover { opacity: 1; color: var(--red); }

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  border: 1px solid var(--card-bd);
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  transition: border-color 0.15s, color 0.15s;
}
.lang-toggle:hover { border-color: var(--red); color: var(--red-deep); }
.lang-toggle .on { color: var(--red-deep); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .13s ease, background .13s ease, border-color .13s ease, box-shadow .13s ease;
  min-width: max-content;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(160deg, var(--red-vivid) 0%, var(--red) 60%, var(--red-deep) 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 0 0 1px rgba(139,26,26,0.15),
    0 10px 28px -10px rgba(192,57,43,0.65);
}
.btn-primary:hover {
  background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 0 0 1px rgba(139,26,26,0.2),
    0 14px 32px -12px rgba(192,57,43,0.8);
  color: #fff;
}

.btn-outline {
  background: rgba(255,255,255,0.55);
  color: var(--red-deep);
  border-color: var(--red);
}
.btn-outline:hover {
  border-color: var(--red-deep);
  color: var(--red-deep);
  background: rgba(255,255,255,0.9);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 13.5px;
  border-radius: 8px;
}

/* ============ Hero ============ */
.hero {
  padding: 48px 0 56px;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.12;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--red-vivid);
  top: -100px; right: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}
.blob-2 {
  width: 350px; height: 350px;
  background: var(--red-deep);
  bottom: -50px; left: -80px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}
.blob-3 {
  width: 250px; height: 250px;
  background: var(--red-light);
  top: 40%; left: 40%;
  animation: blobFloat 6s ease-in-out infinite 2s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.97); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-mascot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mascot-glow {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192,57,43,0.25) 0%, transparent 70%);
  filter: blur(20px);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-mascot {
  width: 280px;
  height: 280px;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(139,26,26,0.28));
  animation: mascotFloat 4s ease-in-out infinite;
}
@keyframes mascotFloat {
  0%, 100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(44px, 5.8vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  font-family: var(--font);
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-arabic {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.55em;
  opacity: 0.75;
}

.hero-sub {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--red-deep);
  margin: 0 0 16px;
  font-weight: 600;
  font-family: var(--font);
  opacity: 0.9;
}

.hero-body {
  font-size: 17px;
  color: var(--ink);
  max-width: 54ch;
  margin: 0 0 28px;
  opacity: 0.80;
  line-height: 1.65;
}
.hero-body kbd {
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
  color: var(--red-deep);
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 5px;
  font-family: monospace;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--muted);
  align-items: center;
  opacity: 0.8;
}
.hero-badges .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red-light);
  display: inline-block;
}

/* ============ Demo video ============ */
.demo {
  margin: 36px auto 0;
  max-width: 960px;
}
.demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #F5E8E6 0%, #EDD0CC 60%, #E2B8B3 100%);
  border: 1px solid var(--card-bd);
  box-shadow: var(--card-shadow);
  cursor: pointer;
}
.demo-frame .poster {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 18px 28px;
  background-image: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 55%);
}
html[dir="rtl"] .demo-frame .poster { padding: 0 28px 18px 0; }
.demo-frame .poster img {
  width: 9%;
  max-width: 72px;
  filter: drop-shadow(0 6px 12px rgba(139,26,26,0.25));
}
.demo-frame::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 10px, transparent 10px 20px),
    radial-gradient(500px 200px at 72% 55%, rgba(192,57,43,0.12), transparent 65%);
  pointer-events: none;
}
.play-btn {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-vivid), var(--red-deep));
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 32px rgba(192,57,43,0.5), 0 1px 0 rgba(255,255,255,0.3) inset;
  transition: transform .15s ease, box-shadow .15s ease;
}
.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 16px 40px rgba(192,57,43,0.65), 0 1px 0 rgba(255,255,255,0.3) inset;
}
.play-btn::before {
  content: "";
  width: 0; height: 0;
  border-left: 22px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-inline-start: 5px;
}
.demo-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  opacity: 0.75;
}

/* ============ Sections ============ */
section { padding: 72px 0; }
section.tight { padding: 56px 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  font-family: var(--font);
}
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.018em;
  margin: 0 0 14px;
  font-weight: 800;
  line-height: 1.12;
  font-family: var(--font);
}
.section-lead {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 58ch;
}

/* ============ Cards ============ */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 16px 40px -14px rgba(139,26,26,0.2);
}

/* ============ Install ============ */
.install-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.install-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.install-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font);
}
.install-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  font-family: var(--font);
}
.install-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.install-card .grow { flex: 1; }
.install-foot {
  margin-top: 22px;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  opacity: 0.8;
}

/* ============ Features ============ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature .glyph {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(192,57,43,0.14), rgba(231,76,60,0.07));
  border: 1px solid var(--card-bd);
  display: grid;
  place-items: center;
  font-size: 24px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}
.feature h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.005em;
  font-weight: 700;
  font-family: var(--font);
}
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ============ Why Section ============ */
.why-section {
  background: linear-gradient(135deg, rgba(139,26,26,0.04), rgba(192,57,43,0.03));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.why p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.why .closing {
  margin-top: 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.providers {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.providers span {
  font-size: 12px;
  font-weight: 600;
  color: var(--red-deep);
  background: rgba(192,57,43,0.10);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  border: 1px solid rgba(192,57,43,0.15);
}

/* Comparison Card */
.why-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.comparison-card {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(8px);
  box-shadow: var(--card-shadow);
  width: 100%;
}
.comparison-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comparison-label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font);
  color: var(--muted);
  margin-bottom: 4px;
}
.good-label { color: var(--red); }
.step-item {
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(192,57,43,0.08);
}
.bad .step-item { opacity: 0.6; text-decoration: line-through; }
.step-time {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font);
  text-align: center;
  margin-top: 8px;
  padding: 8px;
  border-radius: 10px;
}
.bad-time {
  color: var(--muted);
  background: rgba(0,0,0,0.05);
}
.good-time {
  color: var(--red);
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.2);
}

/* ============ Tables (privacy + hotkeys) ============ */
.priv-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
  backdrop-filter: blur(8px);
}
.priv-table tr + tr td { border-top: 1px solid var(--line); }
.priv-table td { padding: 13px 18px; }
.priv-table td:first-child { color: var(--ink); font-weight: 500; }
.priv-table td:last-child {
  text-align: end;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.priv-table .yes { color: #2C8A5C; font-weight: 700; }
.priv-table .no  { color: var(--red); font-weight: 700; }
.priv-table .manual { color: var(--red-deep); font-weight: 700; }
.priv-foot { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* ============ Hotkeys ============ */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.hotkeys { table-layout: auto; }
.hotkeys td:first-child {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}
.hotkeys td:last-child {
  text-align: start;
  color: var(--ink);
  white-space: normal;
  font-size: 14.5px;
  line-height: 1.55;
}
kbd {
  display: inline-block;
  font: 600 12.5px/1 ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  color: var(--red-deep);
  background: linear-gradient(180deg, #fff 0%, #F5E8E6 100%);
  border: 1px solid rgba(192,57,43,0.25);
  border-bottom-color: var(--red);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 4px 7px;
  margin: 0 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
  letter-spacing: 0.02em;
}

/* ============ Code blocks ============ */
.code {
  position: relative;
  background: #1A0605;
  color: #F5D5D0;
  font: 500 13.5px/1.6 ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid rgba(192,57,43,0.25);
}
.code .tok-c { color: var(--red-light); }
.code .tok-s { color: #F5A090; }
.code .tok-k { color: var(--red-vivid); }
.code-wrap { position: relative; }
.copy-btn {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  background: rgba(255,255,255,0.07);
  color: var(--red-light);
  border: 1px solid rgba(192,57,43,0.25);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease;
  letter-spacing: 0.02em;
}
.code-wrap:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: #fff; border-color: var(--red-vivid); }
.copy-btn.copied { color: var(--red-light); border-color: var(--red-light); opacity: 1; }

/* ============ About ============ */
.about p { color: var(--muted); font-size: 17px; max-width: 60ch; }
.contact-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.contact-row a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--card-bd);
  padding: 8px 14px;
  border-radius: 999px;
  transition: border-color .15s, color .15s, background .15s;
}
.contact-row a:hover {
  border-color: var(--red);
  color: var(--red-deep);
  background: rgba(255,255,255,0.9);
}
.contact-row svg { width: 15px; height: 15px; }

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  text-align: center;
  color: var(--muted);
  background: rgba(245,232,230,0.4);
}
.site-footer .foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
}
.site-footer .foot-brand img {
  width: 28px; height: 28px;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(192,57,43,0.2));
}
.site-footer .meta { font-size: 13px; color: var(--muted); opacity: 0.8; }
.site-footer .meta a { color: var(--red-deep); }

/* ============ RTL ============ */
html[dir="rtl"] .nav-links { margin-inline-start: auto; margin-inline-end: 0; }
html[dir="rtl"] .play-btn::before {
  margin-inline-start: 0;
  margin-inline-end: 5px;
  transform: scaleX(-1);
}

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .hero { padding: 28px 0 44px; min-height: auto; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .hero-mascot { width: 180px; height: 180px; margin: 0 auto; }
  .mascot-glow { width: 200px; height: 200px; }
  .hero-body { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-badge { margin-inline: auto; }
  .nav-links { display: none; }
  .install-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .why, .privacy { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 52px 0; }
  section.tight { padding: 44px 0; }
  .demo { margin-top: 24px; }
  .play-btn { width: 60px; height: 60px; }
  .play-btn::before {
    border-left-width: 18px;
    border-top-width: 11px;
    border-bottom-width: 11px;
  }
  .comparison-card { flex-direction: column; gap: 20px; }
  .bad { opacity: 0.85; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { gap: 8px; height: 56px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand-logo { width: 28px; height: 28px; }
  .lang-toggle { padding: 6px 10px; font-size: 12px; }
  .header-actions .btn-sm.gh-star { padding: 7px 10px; min-width: 0; }
  .header-actions .btn-sm.gh-star span:not([aria-hidden="true"]) { display: none; }
  .hero h1 { font-size: 38px; }
  .hero-arabic { display: block; font-size: 0.5em; margin-top: 4px; }
  .hotkeys td { padding: 10px 12px; font-size: 13.5px; }
  .hotkeys td:first-child { padding-inline: 10px; }
  kbd { padding: 3px 5px; font-size: 11px; margin: 0 1px; }
}

@media (max-width: 380px) {
  .hotkeys, .hotkeys tbody, .hotkeys tr { display: block; }
  .hotkeys tr + tr { border-top: 1px solid var(--line); }
  .hotkeys tr + tr td { border-top: 0; }
  .hotkeys td { display: block; padding: 6px 14px; }
  .hotkeys td:first-child { padding-top: 12px; text-align: start; }
  .hotkeys td:last-child { padding-bottom: 12px; }
}

/* ============ Scroll Reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Card Corner Circle ============ */
.card {
  position: relative;
  overflow: hidden;
}
.card-corner-circle {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(192,57,43,0.28) 0%, rgba(231,76,60,0.12) 60%, transparent 100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
html[dir="rtl"] .card-corner-circle {
  right: auto;
  left: -28px;
}
.card:hover .card-corner-circle {
  transform: scale(2.2);
  background: radial-gradient(circle at center, rgba(192,57,43,0.35) 0%, rgba(231,76,60,0.18) 55%, transparent 100%);
}
/* Ensure card content stays above the circle */
.card > *:not(.card-corner-circle) {
  position: relative;
  z-index: 1;
}


/* ============ FAQ ============ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  transition: color 0.15s;
}

html[dir="rtl"] .faq-q { text-align: right; }

.faq-q:hover { color: var(--red); }

.faq-q[aria-expanded="true"] { color: var(--red); }

.faq-arrow {
  font-size: 11px;
  color: var(--red);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-q[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 22px 18px 22px;
  animation: faqOpen 0.18s ease;
}

.faq-a p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .faq-q { font-size: 14px; padding: 16px 16px; }
  .faq-a { padding: 0 16px 16px 16px; }
}
