:root {
  --brand: #FB7701;
  --brand-dark: #E56A00;
  --brand-soft: #FFF3E8;
  --brand-soft-2: #FFE8D4;
  --ink: #1C1917;
  --ink-2: #44403C;
  --muted: #78716C;
  --line: #F0E7DE;
  --bg: #FDFBF9;
  --card: #FFFFFF;
  --success: #16A34A;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, .05);
  --shadow-md: 0 10px 30px -10px rgba(28, 25, 23, .12);
  --shadow-brand: 0 10px 25px -8px rgba(251, 119, 1, .5);
  --font-latin: 'Inter', 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-arabic: 'Cairo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-latin);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
  line-height: 1.9;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.container-narrow {
  max-width: 780px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 249, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.02em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), #FF9A3D);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.logo-mark svg {
  width: 20px;
  height: 20px;
}

.logo-text strong {
  color: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
}

.site-nav a {
  transition: color .2s ease;
}

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

.lang-switch {
  padding: 8px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.lang-switch:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(60% 55% at 50% 0%, var(--brand-soft-2) 0%, rgba(255, 232, 212, 0) 70%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(45% 60% at 50% 50%, rgba(251, 119, 1, .08), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  animation: fadeUp .5s ease both;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .45);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
  70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.025em;
  max-width: 18ch;
  animation: fadeUp .5s .08s ease both;
}

html[lang="ar"] .hero h1 {
  line-height: 1.35;
  max-width: 24ch;
}

.hero-sub {
  margin-top: 18px;
  max-width: 58ch;
  font-size: 1.08rem;
  color: var(--muted);
  animation: fadeUp .5s .16s ease both;
}

.coupon-card {
  width: 100%;
  max-width: 640px;
  margin-top: 36px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  animation: fadeUp .5s .24s ease both;
}

.coupon-label {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

html[lang="ar"] .coupon-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: .9rem;
}

.coupon-code-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
}

.coupon-code {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 20px;
  border: 2px dashed var(--brand);
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  font-family: 'Inter', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: clamp(1.3rem, 3.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand-dark);
  user-select: all;
}

html[lang="ar"] .coupon-code {
  letter-spacing: .06em;
  direction: ltr;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #FF8A1F, var(--brand));
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-brand);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.copy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgba(251, 119, 1, .55);
}

.copy-btn:active {
  transform: translateY(0) scale(.98);
}

.copy-btn:focus-visible {
  outline: 3px solid rgba(251, 119, 1, .4);
  outline-offset: 2px;
}

.copy-btn .icon-copy {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.copy-btn.is-copied {
  background: linear-gradient(180deg, #22C55E, var(--success));
  box-shadow: 0 10px 25px -8px rgba(22, 163, 74, .5);
}

.copy-btn-light {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .35);
}

.copy-btn-light:hover {
  box-shadow: 0 16px 32px -10px rgba(0, 0, 0, .4);
}

.copy-btn-light.is-copied {
  background: #ECFDF5;
  color: var(--success);
}

.coupon-note {
  margin-top: 14px;
  font-size: .86rem;
  color: var(--muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 30px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
  animation: fadeUp .5s .32s ease both;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-row svg {
  width: 17px;
  height: 17px;
  color: var(--success);
  flex-shrink: 0;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--card);
  border-block: 1px solid var(--line);
}

.section h2 {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.section-sub {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.step-card {
  position: relative;
  padding: 30px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 1.15rem;
}

.step-card h3 {
  margin-top: 18px;
  font-size: 1.12rem;
  font-weight: 700;
}

.step-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: .95rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.feature-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s ease, border-color .2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-soft-2);
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 700;
}

.feature-card h3::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--brand);
  flex-shrink: 0;
}

.feature-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
}

.faq-list {
  margin-top: 42px;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  transition: color .2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.15rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: transform .25s ease;
}

.faq-item[open] summary {
  color: var(--brand-dark);
}

.faq-item[open] summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: .95rem;
}

.cta-band {
  padding: 72px 0;
  background: linear-gradient(135deg, #FF8A1F 0%, var(--brand) 55%, #E86300 100%);
  color: #fff;
}

.cta-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.cta-inner p {
  margin-top: 12px;
  margin-bottom: 28px;
  opacity: .92;
}

.site-footer {
  padding: 54px 0 44px;
  background: #1C1917;
  color: #D6D3D1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
  max-width: 780px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand strong {
  color: var(--brand);
}

.copyright {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #292524;
  font-size: .85rem;
  color: #78716C;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  padding: 13px 24px;
  border-radius: 999px;
  background: #1C1917;
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 100;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.success {
  background: var(--success);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }

  .features {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.lang-switch) {
    display: none;
  }

  .hero {
    padding: 52px 0 48px;
  }

  .coupon-card {
    padding: 22px 18px;
  }

  .coupon-code-row {
    flex-direction: column;
  }

  .copy-btn {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }
}
