:root {
  --ink: #4a2412;
  --ink-soft: #7a4b30;
  --cream: #fff6e4;
  --paper: rgba(255, 248, 232, 0.92);
  --gold: #ffb703;
  --orange: #f77f00;
  --deep: #d8570a;
  --blue: #2f80ed;
  --red: #e23b3b;
  --green: #2f9e44;
  --yellow: #f4c430;
  --night: #1b1448;
  --line: rgba(92, 46, 18, 0.12);
  --shadow: 0 24px 50px rgba(92, 36, 8, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Cairo", "Geeza Pro", "SF Arabic", "Noto Naskh Arabic", sans-serif;
  background:
    radial-gradient(120% 70% at 50% -10%, #ffe08a 0%, transparent 55%),
    linear-gradient(180deg, #ffd56a 0%, #ffb347 28%, #ff8a3d 62%, #f4c7a1 100%);
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.sky {
  position: relative;
  overflow: hidden;
}
.sky:before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background:
    linear-gradient(45deg, rgba(255,255,255,.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,.18) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,.18) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,.18) 75%);
  background-size: 46px 46px;
  background-position: 0 0, 0 23px, 23px -23px, -23px 0;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  pointer-events: none;
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 6vw 0;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}
.pawns { display: flex; }
.pawns i {
  width: 16px;
  height: 22px;
  border-radius: 10px 10px 6px 6px;
  display: block;
  margin-inline-start: -4px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
}
.pawns i:first-child { margin: 0; }
.pawns .b { background: var(--blue); }
.pawns .r { background: var(--red); }
.pawns .y { background: var(--yellow); }
.pawns .g { background: var(--green); }
.bar nav { display: flex; gap: 8px; flex-wrap: wrap; }
.bar nav a {
  text-decoration: none;
  background: rgba(255,248,232,.72);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.72fr);
  gap: 28px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 6vw 54px;
}
.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #9a3d09;
}
h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.05;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 3px 0 #c45112, 0 10px 24px rgba(140, 48, 0, 0.25);
}
.lede {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.7;
  max-width: 38rem;
  color: #5c2b12;
  font-weight: 700;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pills span {
  background: #fff8ea;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  box-shadow: 0 8px 16px rgba(160, 70, 10, 0.08);
}

.phone {
  background: #fffaf1;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.8);
}
.phone img {
  border-radius: 26px;
  width: 100%;
  height: auto;
}
.hero-phone { transform: rotate(-2.5deg); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 10px 6vw 64px; }
.panel {
  background: var(--paper);
  border-radius: 32px;
  padding: 28px 22px 26px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.65);
}
.panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 900;
}
.sub { margin: 0 0 18px; color: var(--ink-soft); font-weight: 700; }

.rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.rail figure { margin: 0; }
.rail figcaption {
  text-align: center;
  font-weight: 800;
  margin-top: 8px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.shots figure { margin: 0; }
.shots figcaption { text-align: center; font-weight: 800; margin-top: 8px; }

.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.square {
  border-radius: 22px;
  padding: 16px 14px 14px;
  min-height: 160px;
  color: #fff;
  box-shadow: inset 0 -8px 0 rgba(0,0,0,.12);
}
.square b { display: block; font-size: 1.25rem; margin-bottom: 6px; }
.square p { margin: 0; font-weight: 700; line-height: 1.55; }
.square.y { background: linear-gradient(180deg, #ffd45a, #e0a514); color: #5a3a08; }
.square.g { background: linear-gradient(180deg, #3ecf6e, #1f8a3b); }
.square.r { background: linear-gradient(180deg, #ff6b6b, #d22525); }
.square.b { background: linear-gradient(180deg, #5aa2ff, #1f6fe0); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.card {
  background: #fff;
  border-radius: 24px;
  padding: 18px 16px 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(92, 36, 8, 0.06);
}
.card .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  margin-bottom: 6px;
}
.dot {
  width: 14px;
  height: 18px;
  border-radius: 8px 8px 5px 5px;
  display: inline-block;
}
.card p { margin: 0; line-height: 1.75; font-weight: 650; color: #5c351f; }
.card a { color: #b84309; }

.steps { display: grid; gap: 10px; }
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.step em {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 900;
  color: #fff;
  background: var(--orange);
  font-size: 1.3rem;
}
.step p { margin: 0; font-weight: 700; line-height: 1.65; }

.night {
  margin-top: 18px;
  border-radius: 28px;
  padding: 22px 20px;
  color: #fff8e8;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(255, 214, 102, 0.35), transparent 50%),
    linear-gradient(160deg, #2a1b6b, #120c30);
}
.night h2 { color: #ffe08a; }
.night p { margin: 0; font-weight: 700; line-height: 1.7; }

footer {
  text-align: center;
  padding: 8px 6vw 36px;
  font-weight: 700;
  color: #6b3a1d;
}
footer a { font-weight: 900; }

@media (max-width: 900px) {
  .hero, .rail, .shots, .path, .cards { grid-template-columns: 1fr 1fr; }
  .hero { align-items: start; }
}
@media (max-width: 640px) {
  .hero, .rail, .shots, .path, .cards { grid-template-columns: 1fr; }
  .bar { align-items: flex-start; flex-direction: column; }
  h1 { font-size: 2.4rem; }
}
