@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("../fonts/IBMPlexSansArabic-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aref Ruqaa";
  src: url("../fonts/ArefRuqaa-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #120d0a;
  --surface: #1e1612;
  --surface-high: #2a1f19;
  --outline: #4a3a30;
  --text: #f7ead7;
  --muted: #c9b8a3;
  --gold: #d9a94f;
  --gold-bright: #e5bc6e;
  --rast: #e2a45c;
  --hijaz: #c97b5a;
  --nahawand: #c77e9b;
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-ui: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Aref Ruqaa", "IBM Plex Sans Arabic", serif;
}

html[lang="en"] {
  --font-display: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="en"] body {
  line-height: 1.7;
}

html[lang="en"] .hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.01em;
}

html[lang="en"] .step::before {
  content: counter(step, decimal);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 88% -8%, rgba(226, 164, 92, 0.16), transparent 70%),
    radial-gradient(42% 34% at 8% 12%, rgba(201, 123, 90, 0.1), transparent 70%),
    radial-gradient(52% 46% at 50% 112%, rgba(199, 126, 155, 0.08), transparent 70%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

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

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a120c;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
  text-decoration: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 13, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(122, 99, 83, 0.22);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(217, 169, 79, 0.55);
  border-radius: 50%;
}

.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(217, 169, 79, 0.7);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}

.brand-tag {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 22px;
  margin-inline-start: auto;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
}

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

.site-header .btn {
  margin-inline-start: 0;
}

/* Language switch */

.lang-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(217, 169, 79, 0.35);
  border-radius: 999px;
  font-size: 13px;
}

.lang-switch a {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--muted);
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  background: rgba(217, 169, 79, 0.16);
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--gold);
  color: #1a120c;
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  background: rgba(42, 31, 25, 0.5);
  border-color: rgba(217, 169, 79, 0.4);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(42, 31, 25, 0.9);
}

.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

/* Hero */

.hero {
  padding-block: 72px 44px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 1.12;
}

.lede {
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.hero-chips li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.orb-stage {
  display: grid;
  justify-items: center;
  gap: 22px;
}

.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.orb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 50%;
}

.orb.is-playing .orb-ring-1 {
  animation-duration: 2.4s;
}

.orb.is-playing .orb-core {
  box-shadow: inset 0 0 60px rgba(217, 169, 79, 0.28), 0 30px 70px rgba(0, 0, 0, 0.55);
}

.orb::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 169, 79, 0.16), transparent 65%);
  filter: blur(10px);
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(217, 169, 79, 0.18);
}

.orb-ring-1 {
  inset: 0;
  animation: breathe 7s ease-in-out infinite;
}

.orb-ring-2 {
  inset: 11%;
  border-color: rgba(226, 164, 92, 0.22);
}

.orb-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 62%;
  aspect-ratio: 1;
  border: 1px solid rgba(217, 169, 79, 0.38);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #3b2a1e, #1b1310 72%);
  box-shadow: inset 0 0 46px rgba(217, 169, 79, 0.12), 0 30px 70px rgba(0, 0, 0, 0.55);
}

.orb-core i {
  width: 7px;
  border-radius: 99px;
  background: linear-gradient(var(--rast), var(--gold));
  box-shadow: 0 0 12px rgba(217, 169, 79, 0.35);
  animation: equalize 1.8s ease-in-out infinite;
}

.orb-core i:nth-child(1) {
  height: 28px;
  animation-delay: -0.5s;
}

.orb-core i:nth-child(2) {
  height: 54px;
  animation-delay: -0.2s;
}

.orb-core i:nth-child(3) {
  height: 38px;
  animation-delay: -0.7s;
}

.orb-core i:nth-child(4) {
  height: 62px;
  animation-delay: -0.35s;
}

.orb-core i:nth-child(5) {
  height: 34px;
  animation-delay: -0.9s;
}

.orb-caption {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.orb-credit {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
}

/* Screenshots */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  max-width: 760px;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
}

.shot figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* Sections */

.section {
  padding-block: 56px;
}

.section-head {
  max-width: 660px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 42px);
}

.section-head p {
  color: var(--muted);
}

/* Feature cards */

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

.card {
  padding: 26px 24px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(42, 31, 25, 0.85), rgba(30, 22, 18, 0.9));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(217, 169, 79, 0.45);
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(217, 169, 79, 0.12);
  color: var(--gold);
}

.card h3 {
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Steps */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-md);
  background: rgba(30, 22, 18, 0.75);
}

.step::before {
  counter-increment: step;
  content: counter(step, arabic-indic);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 169, 79, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-size: 17px;
  line-height: 1;
}

.step h3 {
  margin-bottom: 6px;
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
}

.step p {
  color: var(--muted);
  font-size: 15.5px;
}

/* Maqams */

.maqams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.maqam {
  position: relative;
  overflow: hidden;
  padding: 28px 26px 30px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.maqam::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--accent);
}

.maqam::after {
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-start: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: 0.18;
  pointer-events: none;
}

.maqam-sigil {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.maqam-sigil::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.maqam-jins {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.maqam h3 {
  margin-bottom: 10px;
  font-size: 30px;
}

.maqam p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
}

.maqam-rast {
  --accent: var(--rast);
}

.maqam-hijaz {
  --accent: var(--hijaz);
}

.maqam-nahawand {
  --accent: var(--nahawand);
}

/* Download */

.download {
  padding-block: 40px 80px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 36px;
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(217, 169, 79, 0.35);
  border-radius: 36px;
  background:
    radial-gradient(120% 160% at 88% 0%, rgba(217, 169, 79, 0.18), transparent 55%),
    linear-gradient(160deg, #241a14, #160f0c);
}

.download-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 38px);
}

.download-panel p {
  color: var(--muted);
}

.download-actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.fineprint {
  font-size: 13px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  padding-block: 30px;
  border-top: 1px solid rgba(122, 99, 83, 0.25);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
}

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

/* Privacy page */

.page-head {
  max-width: 760px;
  padding-block: 56px 8px;
}

.page-head h1 {
  margin-bottom: 10px;
  font-size: clamp(38px, 6vw, 56px);
}

.page-meta {
  color: var(--muted);
  font-size: 14px;
}

.prose {
  max-width: 760px;
  padding-block: 24px 72px;
}

.prose section {
  padding-block: 24px;
  border-top: 1px solid rgba(122, 99, 83, 0.22);
}

.prose section:first-of-type {
  border-top: 0;
}

.prose h2 {
  margin-bottom: 12px;
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.6;
}

.prose p {
  margin-bottom: 12px;
  color: var(--muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose ul {
  margin: 0 0 14px;
  padding-inline-start: 22px;
  color: var(--muted);
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  word-break: break-word;
}

.callout {
  margin-block: 26px;
  padding: 20px 22px;
  border: 1px solid rgba(217, 169, 79, 0.3);
  border-radius: var(--radius-md);
  background: rgba(217, 169, 79, 0.08);
}

.callout p {
  margin: 0;
  color: var(--text);
}

code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  direction: ltr;
}

@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.55);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .orb {
    width: min(70vw, 320px);
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-inline-start: 0;
    gap: 18px;
  }

  .site-header .btn {
    margin-inline-start: auto;
  }

  .download-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1120px, 100% - 32px);
  }

  .hero {
    padding-block: 48px 28px;
  }

  .section {
    padding-block: 44px;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .download {
    padding-block: 24px 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
