/* ManaraMR.AI. Palette and type follow the Chingutti/Manara brand:
   palm, sand, terracotta, desert; Reem Kufi + Cairo; square corners, one arch. */

@font-face { font-family: "Cairo"; src: url("fonts/cairo-latin.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Cairo"; src: url("fonts/cairo-arabic.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Reem Kufi"; src: url("fonts/reem-kufi-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Reem Kufi"; src: url("fonts/reem-kufi-arabic.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --palm-950: #0f1b0a;
  --palm-900: #16260f;
  --palm-800: #203716;
  --palm-600: #3a6127;
  --palm-50: #eef4e9;
  --sand-50: #fbf7ef;
  --sand-100: #f5ecd9;
  --sand-200: #eadfca;
  --terracotta-600: #a8521f;
  --terracotta-700: #8c4318;
  --desert-300: #efad57;
  --stone-900: #1f1a15;
  --stone-600: #5a5148;
  --gutter: clamp(16px, 5vw, 72px);
  --display: "Reem Kufi", "Cairo", system-ui, sans-serif;
  --body: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tracking: .14em;
}

:lang(ar) { --tracking: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--stone-900);
  background: var(--sand-50);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--desert-300); outline-offset: 3px; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 30; padding: 8px 14px; background: var(--sand-50); color: var(--stone-900); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: var(--tracking); text-transform: uppercase;
  color: var(--terracotta-600); margin-block-end: 18px;
}
.ltr { direction: ltr; unicode-bidi: isolate; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--palm-950); color: var(--sand-50); border-block-end: 1px solid rgb(255 255 255 / .1); }
.bar__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; font-weight: 500; }
.brand img { width: 30px; height: 30px; }
.brand b { font-weight: 500; color: var(--desert-300); }
.nav { display: flex; gap: 24px; margin-inline-start: auto; font-size: 15px; }
.nav a, .langs a { text-decoration: none; }
.nav a:hover, .langs a:hover { color: var(--desert-300); }
.langs { display: flex; gap: 14px; font-size: 14px; padding-inline-start: 24px; border-inline-start: 1px solid rgb(255 255 255 / .22); }
.langs [aria-current] { color: var(--desert-300); }

/* Hero */
.hero { position: relative; overflow: hidden; color: var(--sand-50); background:
  radial-gradient(1px 1px at 12% 22%, rgb(255 255 255 / .7), transparent),
  radial-gradient(1px 1px at 27% 9%, rgb(255 255 255 / .5), transparent),
  radial-gradient(1.5px 1.5px at 41% 31%, rgb(255 255 255 / .6), transparent),
  radial-gradient(1px 1px at 8% 48%, rgb(255 255 255 / .4), transparent),
  radial-gradient(1px 1px at 55% 12%, rgb(255 255 255 / .5), transparent),
  radial-gradient(1.5px 1.5px at 92% 16%, rgb(255 255 255 / .5), transparent),
  radial-gradient(1px 1px at 96% 54%, rgb(255 255 255 / .4), transparent),
  linear-gradient(180deg, var(--palm-950) 0%, var(--palm-900) 52%, var(--palm-800) 100%);
}
.hero__in { position: relative; z-index: 3; min-height: min(84vh, 760px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px; padding-block: 56px 170px; }
.hero__copy { position: relative; z-index: 2; }
.hero .kicker { color: var(--desert-300); }
.hero h1 { font-size: clamp(40px, 6.6vw, 84px); line-height: 1.04; }
:lang(ar) .hero h1 { line-height: 1.25; }
.hero__lede { margin-block-start: 24px; max-width: 34em; font-size: clamp(18px, 1.7vw, 21px); color: var(--palm-50); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: background-color .18s, color .18s, border-color .18s; }
.btn--solid { background: var(--terracotta-600); color: #fff; }
.btn--solid:hover { background: var(--terracotta-700); }
.btn--line { border-color: rgb(255 255 255 / .45); color: var(--sand-50); }
.btn--line:hover { background: var(--sand-50); color: var(--palm-900); }

.tower { position: absolute; z-index: 1; bottom: 0; inset-inline-end: clamp(0px, 7vw, 120px); width: clamp(190px, 25vw, 340px); aspect-ratio: 420 / 900; }
.tower img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* The beam starts at the lantern (fixed share of the tower) and sweeps toward the headline. */
.beam { position: absolute; top: 9%; left: 50%; width: 1500px; height: 1500px; margin: -750px 0 0 -750px; pointer-events: none;
  background: conic-gradient(from 262deg at 50% 50%, transparent 0deg, rgb(239 173 87 / .26) 7deg, rgb(239 173 87 / .05) 15deg, transparent 17deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 12%, transparent 66%); mask-image: radial-gradient(circle, #000 0 12%, transparent 66%);
  transform-origin: 50% 50%; animation: sweep 11s ease-in-out infinite alternate; }
[dir="rtl"] .beam { scale: -1 1; }
@keyframes sweep { from { transform: rotate(-9deg); } to { transform: rotate(12deg); } }
.glow { position: absolute; top: 9%; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; background: radial-gradient(circle, rgb(255 216 150 / .85), rgb(239 173 87 / .22) 42%, transparent 70%); }

.dunes { position: absolute; z-index: 2; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(90px, 14vw, 190px); }

.definition { padding-block-start: 10px; }
.definition p { font-size: 14.5px; color: var(--stone-600); }
.definition b { font-family: var(--display); font-weight: 500; color: var(--stone-900); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section h2 { font-size: clamp(30px, 4.2vw, 50px); }
.lead { margin-block-start: 22px; font-size: clamp(18px, 1.6vw, 20px); color: var(--stone-600); max-width: 36em; }

.why__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); }
.pains li { padding-block: 24px; border-block-start: 1px solid var(--sand-200); }
.pains li:last-child { border-block-end: 1px solid var(--sand-200); }
.pains h3 { font-size: 22px; margin-block-end: 4px; }
.pains p { color: var(--stone-600); }

/* Product */
.product { background: var(--sand-100); }
.product__top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 6vw, 88px); align-items: end; }
.link-arrow { display: inline-flex; gap: 8px; margin-block-start: 26px; font-weight: 700; color: var(--terracotta-600); text-underline-offset: 4px; }
.link-arrow:hover { color: var(--terracotta-700); }

/* The one arch of the page. */
.arch { background: var(--palm-900); padding: 134px 18px 18px; border-radius: 999px 999px 0 0; max-width: 430px; width: 100%; margin-inline: auto; }
.fig { margin: 0; }
.day { background: var(--sand-50); padding: 16px 16px 8px; font-size: 14px; }
.day__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block-end: 10px; border-block-end: 1px solid var(--sand-200); font-weight: 700; }
.day__head span { font-weight: 500; color: var(--stone-600); font-size: 13px; }
.slot { display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: center; padding-block: 7px; border-block-end: 1px solid var(--sand-100); }
.slot:last-child { border-block-end: 0; }
.slot time { color: var(--stone-600); font-size: 13px; font-variant-numeric: tabular-nums; }
.slot div { padding: 4px 10px; border-inline-start: 3px solid var(--palm-600); background: var(--palm-50); line-height: 1.35; }
.slot--t div { border-color: var(--terracotta-600); background: #f9e9dc; }
.slot--d div { border-color: var(--desert-300); background: #fdf2df; }
.caption { margin-block-start: 10px; text-align: center; font-size: 13px; color: var(--stone-600); }

.modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block-start: clamp(44px, 6vw, 72px); border-block-start: 1px solid #dccbab; }
.modules li { padding: 22px 22px 26px 0; border-block-end: 1px solid #dccbab; }
[dir="rtl"] .modules li { padding: 22px 0 26px 22px; }
.modules h3 { font-size: 19px; margin-block-end: 6px; }
.modules p { font-size: 15.5px; line-height: 1.55; color: var(--stone-600); }

/* Principles */
.principles { background: var(--palm-900); color: var(--sand-50); }
.principles .kicker { color: var(--desert-300); }
.principles__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4.5vw, 56px) clamp(36px, 7vw, 96px); margin-block-start: clamp(36px, 5vw, 60px); counter-reset: p; }
.principles__list li { counter-increment: p; padding-block-start: 18px; border-block-start: 1px solid rgb(255 255 255 / .2); }
.principles__list h3 { font-size: 24px; margin-block-end: 8px; }
.principles__list h3::before { content: counter(p, decimal-leading-zero); display: block; margin-block-end: 10px; font-family: var(--body); font-size: 13px; font-weight: 700; color: var(--desert-300); letter-spacing: .1em; }
.principles__list p { color: #d3dccb; }

/* Contact */
.contact { background: var(--terracotta-600); color: #fff; }
.contact__in { display: flex; justify-content: space-between; align-items: center; gap: 28px 56px; flex-wrap: wrap; padding-block: clamp(52px, 7vw, 88px); }
.contact h2 { font-size: clamp(30px, 4.2vw, 50px); }
.contact p { margin-block-start: 10px; max-width: 34em; color: #fdeee1; }
.btn--light { background: var(--sand-50); color: var(--stone-900); }
.btn--light:hover { background: var(--palm-950); color: #fff; }

/* Footer */
.foot { background: var(--palm-950); color: #c7d0bf; font-size: 14.5px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-block: 26px; }
.foot a { text-underline-offset: 3px; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; padding: 32px var(--gutter); background: var(--palm-900); color: var(--sand-50); text-align: center; }
.lost h1 { font-size: clamp(34px, 6vw, 56px); }
.lost img { width: 56px; height: 56px; margin: 0 auto 22px; }
.lost p { margin-block: 12px 26px; color: var(--palm-50); }
.lost p + p { margin-block-start: 0; }
.lost .btn { justify-content: center; }

@media (max-width: 1000px) {
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product__top, .why__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .bar__in { justify-content: space-between; gap: 12px; height: 60px; }
  .langs { padding-inline-start: 0; border: 0; gap: 12px; }
  .hero__in { display: block; min-height: 0; padding-block: 44px 0; }
  .tower { position: relative; inset: auto; width: 170px; margin: 14px auto -34px; margin-inline: auto 12%; }
  .beam { display: none; }
  .dunes { height: 84px; }
  .principles__list { grid-template-columns: minmax(0, 1fr); }
  .contact__in { display: block; }
  .contact .btn { margin-block-start: 22px; overflow-wrap: anywhere; }
}

@media (max-width: 480px) {
  .modules { grid-template-columns: minmax(0, 1fr); }
  .modules li, [dir="rtl"] .modules li { padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam { animation: none; }
  .btn { transition: none; }
}
