@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Syne:wght@600;700;800&display=swap");

:root {
  --void: #070706;
  --panel: #12110e;
  --cream: #f3ead9;
  --ink: #f3ead9;
  --muted: #a89b86;
  --gold: #c9a66b;
  --gold-2: #e4d0a4;
  --line: rgba(243, 234, 217, 0.1);
  --header: rgba(7, 7, 6, 0.78);
  --shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  --radius: 26px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  --void: #f6f1e8;
  --panel: #fffdf8;
  --cream: #16140f;
  --ink: #16140f;
  --muted: #6f6759;
  --line: rgba(22, 20, 15, 0.1);
  --header: rgba(246, 241, 232, 0.82);
  --shadow: 0 24px 60px rgba(22, 20, 15, 0.08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[lang="en"] body {
  font-family: Syne, "IBM Plex Sans Arabic", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  z-index: 2000;
  background: var(--gold);
  color: #111;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 1200;
  transform-origin: var(--origin, right);
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
html[dir="ltr"] .progress { --origin: left; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(1.1);
  background: var(--header);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s var(--ease);
}
.site-header.is-on { border-bottom-color: var(--line); }

.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  transition: transform 0.55s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }

.brand-word {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}
.brand-word b { color: var(--gold); font-weight: 700; }

.nav-links { display: flex; gap: 2px; }

.nav-links a {
  position: relative;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 16px;
  bottom: 6px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang button,
.icon-btn,
.menu-btn {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.lang button {
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang button.is-on {
  background: var(--gold);
  color: #111;
}

.icon-btn,
.menu-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.menu-btn { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #16140f;
  box-shadow: 0 14px 36px rgba(201, 166, 107, 0.22);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-wa {
  background: #1f9a4a;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 150px 0 90px;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    radial-gradient(ellipse at 70% 10%, rgba(201, 166, 107, 0.16), transparent 42%),
    radial-gradient(ellipse at 10% 90%, rgba(201, 166, 107, 0.08), transparent 36%),
    var(--void);
}

.hero-spot {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 166, 107, 0.18), transparent 64%);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 28%;
  z-index: 0;
}

.hero-mark {
  position: absolute;
  width: min(68vw, 580px);
  opacity: 0.08;
  inset-inline-end: -6%;
  top: 14%;
  animation: drift 16s ease-in-out infinite;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  max-width: 860px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-family: "Cormorant Garamond", "IBM Plex Sans Arabic", serif;
}

html[lang="ar"] .hero h1 {
  line-height: 1.18;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 700;
  max-width: 12ch;
}

.hero .lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.9;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  max-width: 34rem;
}

.hero-meta strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 600;
}

.hero-meta span {
  color: var(--muted);
  font-size: 0.86rem;
}

.kicker, .hero h1, .hero .lead, .hero-actions, .hero-meta {
  opacity: 0;
  animation: rise 0.95s var(--ease) forwards;
}
.kicker { animation-delay: 0.08s; }
.hero h1 { animation-delay: 0.2s; }
.hero .lead { animation-delay: 0.36s; }
.hero-actions { animation-delay: 0.5s; }
.hero-meta { animation-delay: 0.64s; }

.scroll-cue {
  position: absolute;
  inset-inline-start: max(20px, calc((100% - var(--max)) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 1;
}

.scroll-cue i {
  width: 16px;
  height: 26px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  position: relative;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
  animation: drop 1.5s var(--ease) infinite;
}

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
html[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }

.marquee-track span {
  font-family: "Cormorant Garamond", "IBM Plex Sans Arabic", serif;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--gold-2);
}
.marquee-track span::before {
  content: "◆";
  color: var(--gold);
  margin-inline-end: 44px;
  font-size: 0.7rem;
}

.section { padding: 108px 0; }

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
  max-width: 38rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.18;
  font-weight: 600;
  font-family: "Cormorant Garamond", "IBM Plex Sans Arabic", serif;
}

html[lang="ar"] .section-head h2 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.bento {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.tile {
  background: linear-gradient(180deg, rgba(201, 166, 107, 0.05), transparent 40%), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.tile:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
  box-shadow: var(--shadow);
}

.tile.span {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
}

.tile h3 { margin: 0 0 8px; font-size: 1.32rem; }
.tile p { margin: 0; color: var(--muted); line-height: 1.75; }

.tile ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.tile ol li {
  display: flex;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 8px;
  flex: 0 0 auto;
}

.idx {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.16em;
}

.reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.reason {
  padding: 28px 24px;
  border-top: 1px solid var(--gold);
}
.reason h3 { margin: 0 0 8px; font-size: 1.15rem; }
.reason p { margin: 0; color: var(--muted); line-height: 1.75; }

.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 36px 22px 10px;
  border-inline-end: 1px solid var(--line);
}
.step:last-child { border-inline-end: 0; }

.step .n {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  transition: color 0.35s var(--ease);
}
.step:hover .n { color: var(--gold); }
.step h3 { margin: 18px 0 8px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); line-height: 1.75; }

.switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}
.switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.switch button.is-on {
  background: var(--gold);
  color: #16140f;
}

.panel { display: none; }
.panel.is-on { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.plan-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.plan-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
}
.plan-card.hot {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  background: linear-gradient(180deg, rgba(201, 166, 107, 0.1), var(--panel) 42%);
}

.plan-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
}
.plan-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.plan-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.time {
  color: var(--gold);
  font-size: 0.86rem;
  white-space: nowrap;
}

.quote-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  color: var(--gold-2);
  font-size: 0.86rem;
  font-weight: 600;
  width: fit-content;
}
.quote-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.plan-card .btn { justify-self: start; margin-top: 4px; }

.contact-box {
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 64px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 166, 107, 0.18), transparent 42%),
    var(--panel);
  border: 1px solid var(--line);
}

.contact-box h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.15;
  font-weight: 600;
  font-family: "Cormorant Garamond", "IBM Plex Sans Arabic", serif;
}
html[lang="ar"] .contact-box h2 {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-weight: 700;
}
.contact-box p {
  margin: 0;
  color: var(--muted);
  max-width: 34rem;
  line-height: 1.85;
}

.wa-number {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

.site-footer {
  padding: 28px 0 110px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
}
.foot-brand img { width: 32px; height: 32px; }

.wa-fab {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 1100;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f9a4a;
  color: #fff;
  box-shadow: 0 16px 40px rgba(31, 154, 74, 0.35);
  animation: pop 2.8s var(--ease) infinite;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  0%, 100% { transform: rotate(-10deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-16px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@keyframes drop {
  0% { opacity: 1; top: 6px; }
  100% { opacity: 0; top: 16px; }
}
@keyframes pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 980px) {
  .menu-btn { display: grid; }
  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 18px;
    top: 90px;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 10px;
  }
  .nav-links.is-open { display: flex; }
  .bento,
  .process-rail,
  .reasons,
  .panel.is-on {
    grid-template-columns: 1fr;
  }
  .tile.span { grid-row: auto; min-height: 240px; }
  .step { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .contact-box { padding: 28px; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .nav { height: 70px; }
  .brand-word,
  .nav-tools .btn { display: none; }
  .section { padding: 78px 0; }
  .plan-card .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  .hero-mark,
  .marquee-track,
  .wa-fab,
  [data-reveal] { animation: none !important; transition: none !important; }
  [data-reveal],
  .kicker, .hero h1, .hero .lead, .hero-actions, .hero-meta {
    opacity: 1;
    transform: none;
  }
}
