/* ===========================================================================
   Shareet — landing page
   Hero, marquee, feature bento, steps, FAQ, closing CTA.
   =========================================================================== */

.landing {
  position: relative;
  z-index: 1;
  display: block;
  overflow-x: clip;
}

/* ===========================================================================
   Hero
   =========================================================================== */
.hero {
  position: relative;
  padding: 168px 0 96px;
  text-align: center;
}

@media (max-width: 720px) {
  .hero { padding: 132px 0 64px; }
}

/* ===== Announcement pill ===== */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 6px 0 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  animation: fadeUp 0.7s var(--ease-out) both;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.hero__pill:hover {
  transform: translateY(-2px);
  border-color: var(--line-green);
  box-shadow: 0 0 26px -4px var(--glow);
}

.hero__pill-badge {
  display: inline-grid;
  place-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero__pill-text { color: var(--text); }

.hero__pill-arrow {
  opacity: 0.5;
  transition: transform 0.3s var(--ease);
}

.hero__pill:hover .hero__pill-arrow { transform: translateX(-3px); }

/* The pill runs to the screen edges on narrow phones — shrink it rather than
   let it wrap or clip. */
@media (max-width: 430px) {
  .hero__pill {
    height: 34px;
    padding: 0 5px 0 12px;
    gap: 8px;
    font-size: 0.76rem;
  }

  .hero__pill-badge {
    height: 24px;
    padding: 0 9px;
    font-size: 0.67rem;
  }
}

/* ===== Headline ===== */
/* Arabic needs far more leading than Latin display type — its ascenders and
   descenders are tall, so the tight tracking/leading used for Latin headlines
   makes the lines collide. */
.hero__headline {
  margin: 34px auto 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6.6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--text);
  animation: fadeUp 0.7s 0.08s var(--ease-out) both;
}

/* Brand-gradient word. background-clip:text needs a painted background, and
   inline-block + padding keeps the clip box off the descenders. */
.hero__headline--accent {
  display: inline-block;
  padding-bottom: 0.12em;
  background: linear-gradient(100deg, var(--mint-hi), var(--mint) 50%, var(--mint-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin: 26px auto 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  font-weight: 400;
  line-height: 1.9;
  color: var(--muted);
  animation: fadeUp 0.7s 0.16s var(--ease-out) both;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
  animation: fadeUp 0.7s 0.24s var(--ease-out) both;
}

.hero__note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--faint);
  animation: fadeUp 0.7s 0.3s var(--ease-out) both;
}

/* ===========================================================================
   Hero showcase — phone inside a framed, glowing stage
   =========================================================================== */
.showcase {
  position: relative;
  margin-top: 84px;
  animation: fadeUp 0.9s 0.34s var(--ease-out) both;
}

.showcase__stage {
  position: relative;
  border-radius: 32px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 90% at 50% 0%, var(--glow-soft), transparent 70%),
    linear-gradient(to bottom, var(--surface-2), var(--bg-soft));
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 40px 120px -40px rgba(0, 0, 0, 0.8);
  padding: 56px 24px 0;
  overflow: hidden;
}

:root[data-theme="light"] .showcase__stage {
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 40px 90px -40px rgba(13, 20, 17, 0.28);
}

/* Glowing arc behind the phone */
.showcase__halo {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  filter: blur(50px);
  pointer-events: none;
}

/* Corner ticks — a small "engineered" detail */
.showcase__tick {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line);
  opacity: 0.7;
}

.showcase__tick--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.showcase__tick--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }

/* ===== Phone mockup ===== */
.phone-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  perspective: 1400px;
}

.phone-composite {
  position: relative;
  width: min(64vw, 290px);
  aspect-ratio: 951 / 2056;
  flex-shrink: 0;
  /* Clip the bottom so the phone rises out of the stage floor */
  margin-bottom: -6%;
  /* Glossy black rail — piano-black with sharp specular highlights */
  border-radius: 13.5% / 6.2%;
  background:
    linear-gradient(145deg,
      #55585b 0%, #050506 12%, #23262a 30%,
      #000000 58%, #191c1f 82%, #4c4f54 100%);
  filter:
    drop-shadow(0 0 24px rgba(0, 0, 0, 0.55))
    drop-shadow(0 44px 74px rgba(0, 0, 0, 0.6));
  box-shadow:
    inset 0 0 0 1.4px rgba(255, 255, 255, 0.16),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.75);
  transform: rotateX(var(--phone-rx, 0deg)) rotateY(var(--phone-ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
  will-change: transform;
  animation: phoneFloat 7s 1.4s ease-in-out infinite;
}

:root[data-theme="light"] .phone-composite {
  filter:
    drop-shadow(0 0 22px rgba(13, 20, 17, 0.18))
    drop-shadow(0 44px 64px rgba(13, 20, 17, 0.3));
}

/* Volume + action buttons (left rail) and side/power button (right rail) */
.phone-composite::before,
.phone-composite::after {
  content: "";
  position: absolute;
  width: 1.7%;
  border-radius: 2px;
  z-index: -1;
}
.phone-composite::before {
  left: -1.2%;
  top: 21%;
  height: 15%;
  background: linear-gradient(to right, #46494c, #030304);
  box-shadow: 0 -6.5% 0 -0.5% #1a1c1e, 0 12.5% 0 -0.4% #1a1c1e;
}
.phone-composite::after {
  right: -1.2%;
  top: 26%;
  height: 11%;
  background: linear-gradient(to left, #46494c, #030304);
}

.phone-composite__screen {
  position: absolute;
  /* Uniform bezel: 2.4% of width horizontally, matched in px vertically */
  inset: 1.11% 2.4%;
  border-radius: 11.4% / 5.2%;
  overflow: hidden;
  background: #000;
  /* Black gasket + faint screen glass reflection */
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.9),
    inset 0 0 20px rgba(0, 0, 0, 0.45);
}

.phone-composite__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic Island */
.phone-composite__island {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: 31%;
  height: 3.1%;
  background: #000;
  border-radius: 999px;
  z-index: 3;
  box-shadow:
    inset 0 0 4px rgba(255, 255, 255, 0.05),
    0 0 0 0.5px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .phone-composite { width: min(32vw, 320px); }
  .showcase__stage { padding-top: 72px; }
}

/* ===========================================================================
   Marquee — infinite brand strip
   =========================================================================== */
.marquee {
  position: relative;
  z-index: 1;
  padding: 46px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(to left, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

/* Two identical groups sit side by side; the track slides exactly one group
   width, so the loop is seamless. */
.marquee__group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-left: 44px;
  flex-shrink: 0;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.marquee__item:hover { color: var(--text); }

.marquee__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  flex-shrink: 0;
  opacity: 0.85;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ===========================================================================
   Features — bento grid
   =========================================================================== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

/* Wide cards take 3 columns, the hero-ish one takes 6 on small screens */
.features__grid > .reveal:nth-child(1) { grid-column: span 3; }
.features__grid > .reveal:nth-child(2) { grid-column: span 3; }
.features__grid > .reveal:nth-child(3) { grid-column: span 2; }
.features__grid > .reveal:nth-child(4) { grid-column: span 2; }
.features__grid > .reveal:nth-child(5) { grid-column: span 2; }

@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid > .reveal:nth-child(n) { grid-column: span 1; }
}

@media (max-width: 560px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ===== Feature card ===== */
.feature-card {
  position: relative;
  height: 100%;
  padding: 30px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  isolation: isolate;
  text-align: right;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
  box-shadow: 0 2px 18px -6px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .feature-card {
  box-shadow: 0 4px 20px -8px rgba(13, 20, 17, 0.12);
}

/* Cursor-following glow, positioned from --mx / --my set in feature_card.rs */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 50%),
    var(--glow),
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.feature-card:hover {
  border-color: var(--line-green);
  box-shadow:
    0 18px 50px -18px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--glow-soft);
}

.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  font-size: 22px;
  line-height: 1;
  box-shadow: inset 0 1px 0 var(--sheen);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.feature-card:hover .feature-card__icon {
  transform: translateY(-3px) scale(1.06);
  border-color: var(--line-green);
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.feature-card__desc {
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--muted);
}

/* ===========================================================================
   Steps — how it works
   =========================================================================== */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}

@media (max-width: 860px) {
  .steps__grid { grid-template-columns: 1fr; }
}

.step {
  position: relative;
  height: 100%;
  padding: 32px 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--surface-2), var(--surface));
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.step:hover {
  border-color: var(--line-green);
  transform: translateY(-4px);
}

/* Big ghosted numeral in the corner */
.step__num {
  position: absolute;
  top: -14px;
  left: 10px;
  font-family: var(--font-en);
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1;
  color: transparent;
  background: linear-gradient(to bottom, var(--line-strong), transparent 80%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
}

.step__badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 18px -8px var(--glow);
}

.step__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step__desc {
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--muted);
}

/* ===========================================================================
   FAQ — accordion
   =========================================================================== */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; gap: 32px; }
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.faq__item[data-open="true"] {
  border-color: var(--line-green);
  background: var(--surface-2);
}

/* The trigger is wrapped in an h3 for document outline; the button carries the
   type, so neutralise the heading's own sizing. */
.faq__item h3 {
  font: inherit;
  margin: 0;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  text-align: right;
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s var(--ease);
}

.faq__q:hover { color: var(--mint); }

.faq__q:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: -3px;
  border-radius: 16px;
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

/* The plus/minus is two bars; the vertical one collapses when open. */
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.faq__icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq__item[data-open="true"] .faq__icon { color: var(--mint); }
.faq__item[data-open="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* grid-template-rows 0fr -> 1fr animates height without knowing the height. */
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }

.faq__a-inner { overflow: hidden; }

.faq__a-text {
  padding: 0 22px 22px;
  font-size: 0.94rem;
  line-height: 1.95;
  color: var(--muted);
}

/* ===========================================================================
   Closing CTA
   =========================================================================== */
.cta {
  position: relative;
  padding: 72px 32px;
  border-radius: 32px;
  border: 1px solid var(--line-green);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, var(--glow), transparent 68%),
    linear-gradient(to bottom, var(--surface-2), var(--surface));
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 40px 100px -40px rgba(0, 0, 0, 0.7);
  text-align: center;
  overflow: hidden;
}

:root[data-theme="light"] .cta {
  box-shadow:
    inset 0 1px 0 var(--sheen),
    0 40px 80px -40px rgba(13, 20, 17, 0.22);
}

.cta__glow {
  position: absolute;
  bottom: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  aspect-ratio: 2 / 1;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 68%);
  filter: blur(60px);
  pointer-events: none;
}

.cta__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  filter: drop-shadow(0 0 26px var(--glow));
  animation: logoFloat 6s ease-in-out infinite;
}

.cta__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.cta__lede {
  max-width: 46ch;
  margin: 0 auto 36px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--muted);
}

.cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .cta { padding: 56px 20px; border-radius: 24px; }
}

/* ===========================================================================
   Connect band
   =========================================================================== */
.connect__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 720px) {
  .connect__grid { grid-template-columns: 1fr; }
}

.connect__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition:
    border-color 0.35s var(--ease),
    transform 0.35s var(--ease),
    background 0.35s var(--ease);
}

.connect__card:hover {
  transform: translateY(-3px);
  border-color: var(--line-green);
  background: var(--surface-2);
}

.connect__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--mint);
  transition: transform 0.35s var(--ease);
}

.connect__card:hover .connect__icon { transform: scale(1.08); }

.connect__meta { display: flex; flex-direction: column; min-width: 0; }

.connect__label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.connect__value {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  direction: ltr;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===========================================================================
   404
   =========================================================================== */
.notfound {
  position: relative;
  z-index: 1;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 140px 0 96px;
}

.notfound__inner {
  text-align: center;
  max-width: 560px;
}

.notfound__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  filter: drop-shadow(0 0 24px var(--glow));
  animation: logoFloat 6s ease-in-out infinite;
}

.notfound__code {
  font-family: var(--font-en);
  font-size: clamp(3.6rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(to bottom, var(--text), transparent 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.notfound__title {
  margin-top: 6px;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.notfound__lede {
  margin: 14px auto 32px;
  max-width: 44ch;
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--muted);
}

.notfound__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================================================================
   Animations
   =========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes phoneFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
