:root {
  --lime: #C6F432;
  --cobalt: #2A3BFF;
  --ink: #0B0B0B;
  --paper: #F7F7F2;
  --surface: #ECECE4;
  --text-muted: #3F3F3A;
  --text-soft: #5C5C55;
  --on-dark-muted: #C9C9C0;
  --card-black: #111114;
  --card-circle: #2A2A2E;

  --font-body: Inter, "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display: "Inter Tight", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}


html[lang="ar"] body {
  --font-body: "IBM Plex Sans Arabic", Inter, system-ui, sans-serif;
  --font-display: "IBM Plex Sans Arabic", "Inter Tight", system-ui, sans-serif;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--cobalt); }

h1, h2 { margin: 0; font-family: var(--font-display); font-weight: 800; }

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 24px;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch a {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font: 600 13px Inter, "IBM Plex Sans Arabic", sans-serif;
}

.lang-switch a[aria-current="page"] { background: var(--ink); color: #fff; }

.btn-outline {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}

.btn-lime {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: 24px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: 16px;
}

.btn-lime:hover { color: var(--ink); filter: brightness(0.95); }

.btn-wide { width: 100%; max-width: 360px; min-height: 56px; }

.link { font-weight: 700; text-decoration: underline; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding-top: 32px;
}

.hero h1 { font-size: 64px; line-height: 1; letter-spacing: -0.04em; }

.highlight {
  background: var(--lime);
  padding: 0 10px;
  border-radius: 8px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sub { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.5; color: var(--text-muted); }

.price-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--cobalt);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hint { font-size: 13px; color: var(--text-soft); }

.hero-actions {
  width: 100%;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

/* Flip card */
.card-stage {
  width: 380px;
  max-width: 100%;
  aspect-ratio: 1.586;
  margin-top: 18px;
  perspective: 1400px;
}

.flip {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transform-style: preserve-3d;
  transform: rotate(-3deg);
  transition: transform 0.7s cubic-bezier(.2, .8, .2, 1);
  box-shadow: 0 30px 60px rgb(11 11 11 / 0.25);
}

.flip.is-flipped { transform: rotateY(180deg) rotate(-3deg); }

.card-stage, .brand { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.flip:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 6px; }

.face {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 22px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  text-align: start;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.face-front {
  flex-direction: column;
  justify-content: space-between;
  background: var(--card-black);
}

.face-front::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  inset-inline-end: -56px;
  top: -72px;
  background: var(--card-circle);
}

.face-back {
  align-items: center;
  gap: 18px;
  background: var(--ink);
  transform: rotateY(180deg);
}

.card-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.card-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-id { display: flex; flex-direction: column; gap: 4px; }
.card-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; }
.card-role { font-size: 12px; font-weight: 600; opacity: 0.85; }
.card-back-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1; }
.card-back-sub { font-size: 13px; }

.nfc { fill: none; stroke: var(--lime); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.qr {
  width: 104px;
  height: 104px;
  flex-shrink: 0;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.qr svg { display: block; width: 84px; height: 84px; fill: var(--ink); }

/* Sections */
.block { display: flex; flex-direction: column; gap: 16px; padding-top: 88px; }

.block h2 { font-size: 40px; letter-spacing: -0.03em; }

.tiles { display: flex; flex-wrap: wrap; gap: 12px; }

.tile {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
}

.tile-num { font-family: "Inter Tight", sans-serif; font-weight: 800; font-size: 26px; }
.tile-title { font-weight: 700; font-size: 16px; }
.tile-price { font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.tile-body { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

.tile-dark { background: var(--ink); color: #fff; }
.tile-dark .tile-num { color: var(--lime); }
.tile-dark .tile-body { color: var(--on-dark-muted); }
.tile-dark a { color: #fff; }

/* Order band */
.band {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 36px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--cobalt);
  color: #fff;
}

.band::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  inset-inline-end: -45px;
  top: -45px;
  background: var(--lime);
}

.band-text {
  position: relative;
  flex: 1 1 260px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
}

/* Footer */
.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  padding-bottom: 36px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { font-weight: 600; }

.footer-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}

/* Negative tracking breaks Arabic letter joining. */
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] .band-text { letter-spacing: 0; }

[dir="rtl"] .hero h1 { line-height: 1.35; }

@media (max-width: 640px) {
  .container { padding-inline: 20px; }
  .hero { padding-top: 16px; }
  .hero h1 { font-size: 40px; }
  .sub { font-size: 16px; }
  .card-stage { width: 310px; }
  .block { padding-top: 56px; }
  .block h2 { font-size: 28px; }
  .band { padding: 28px; }
  .band-text { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .flip { transition: none; }
}
