:root {
  --sage: #3a6b56;
  --sage-deep: #1f3d32;
  --sage-mid: #2f5746;
  --mist: #e6efe9;
  --fog: #f2f6f3;
  --ink: #14241d;
  --muted: #5d7268;
  --gold: #c4a35a;
  --white: #ffffff;
  --radius: 1.35rem;
  --shadow: 0 28px 70px rgba(20, 36, 29, 0.18);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Amiri", "IBM Plex Sans Arabic", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--fog);
  line-height: 1.75;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--sage-deep);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  z-index: 100;
}

.skip:focus {
  top: 1rem;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 85% -5%, rgba(58, 107, 86, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 40% at 8% 18%, rgba(196, 163, 90, 0.08), transparent 50%),
    linear-gradient(180deg, #ebf2ee 0%, var(--fog) 42%, #e9f0ec 100%);
}

.shell {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0 0;
  position: relative;
  z-index: 5;
}

.brand-lock {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--sage-deep);
}

.brand-lock img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
}

.top-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}

.top-links a:hover {
  color: var(--sage-deep);
}

/* Hero: brand-first, one composition, no screenshot clutter */
.hero {
  position: relative;
  min-height: min(78svh, 680px);
  display: grid;
  align-items: center;
  padding: 5.5rem 0 3.5rem;
}

.hero-plane {
  position: absolute;
  inset: 0 -6% auto;
  height: 100%;
  z-index: -1;
  border-radius: 0 0 42% 42% / 0 0 16% 16%;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(31, 61, 50, 0.97) 0%, rgba(47, 87, 70, 0.93) 48%, rgba(24, 50, 40, 0.98) 100%);
  box-shadow: var(--shadow);
}

.hero-plane::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 20%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.18), transparent 68%);
  animation: glow 10s ease-in-out infinite alternate;
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background:
    radial-gradient(ellipse 80% 100% at 50% 120%, rgba(242, 246, 243, 0.14), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='80' viewBox='0 0 160 80'%3E%3Cpath d='M0 60 Q40 20 80 60 T160 60' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1.5'/%3E%3C/svg%3E")
      center bottom / 280px repeat-x;
}

@keyframes glow {
  from { transform: translate(-2%, 2%) scale(1); opacity: 0.7; }
  to { transform: translate(3%, -3%) scale(1.06); opacity: 1; }
}

.hero-copy {
  text-align: center;
  color: var(--white);
  max-width: 36rem;
  margin: 0 auto;
  padding: 1rem 0.5rem 2.5rem;
}

.hero-mark {
  width: 5.5rem;
  height: 5.5rem;
  margin: 0 auto 1.1rem;
  border-radius: 1.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  animation: rise 0.95s var(--ease) both;
}

.hero-brand {
  margin: 0;
  font-size: clamp(3rem, 9vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  animation: rise 0.95s var(--ease) 0.06s both;
}

.hero-line {
  margin: 0.85rem 0 0;
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  animation: rise 0.95s var(--ease) 0.12s both;
}

.hero-support {
  margin: 0.7rem auto 0;
  max-width: 28rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.74);
  animation: rise 0.95s var(--ease) 0.18s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.65rem;
  animation: rise 0.95s var(--ease) 0.24s both;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--white);
  color: var(--sage-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-ghost:hover {
  border-color: var(--white);
}

.btn-solid {
  background: var(--sage);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--sage-deep);
}

.btn.is-disabled,
.store-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.section,
.showcase {
  padding: 4.2rem 0 1.5rem;
}

.section-head {
  max-width: 34rem;
  margin: 0 auto 2.4rem;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sage-deep);
}

.section-head p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 500;
}

/* Professional device stage — straight, framed, layered */
.device-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  padding: 1.25rem 0 0.5rem;
  opacity: 1;
  transform: none;
}

.device {
  margin: 0;
  text-align: center;
  flex: 0 0 auto;
}

.device-frame {
  position: relative;
  width: 100%;
  border-radius: 2.15rem;
  padding: 0.72rem;
  background:
    linear-gradient(145deg, #3a3f3c 0%, #111614 38%, #000 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 28px 60px rgba(20, 36, 29, 0.28);
  overflow: hidden;
}

.device-notch {
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 0.72rem;
  border-radius: 999px;
  background: #050705;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  z-index: 2;
  pointer-events: none;
}

.device-frame img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 1.55rem;
  display: block;
  background: #0b120f;
}

.device figcaption {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

.device-main {
  width: min(250px, 42vw);
  z-index: 3;
  position: relative;
}

.device-side {
  width: min(200px, 34vw);
  z-index: 1;
  opacity: 0.98;
}

.device-side:first-child {
  margin-inline-end: -2.4rem;
  transform: translateY(1.4rem);
}

.device-side:last-child {
  margin-inline-start: -2.4rem;
  transform: translateY(1.4rem);
}

.showcase-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.features {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(58, 107, 86, 0.14);
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.4rem 0.2rem;
  border-bottom: 1px solid rgba(58, 107, 86, 0.14);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.feature.is-in,
.reveal.is-in {
  opacity: 1;
  transform: none;
}

.feature-ico {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--sage-deep);
  font-size: 1.1rem;
  font-weight: 700;
}

.feature h3 {
  margin: 0.1rem 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
}

.quote {
  padding: 3.8rem 0 1.2rem;
}

.quote-frame {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  padding: 2rem 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.quote-frame blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.8vw, 2.05rem);
  line-height: 1.85;
  color: var(--sage-deep);
  font-weight: 700;
}

.quote-frame cite {
  display: block;
  margin-top: 0.95rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
}

.download {
  padding: 2rem 0 5rem;
}

.download-panel {
  text-align: center;
  padding: 2.6rem 1.25rem 2.3rem;
  border-radius: calc(var(--radius) + 0.25rem);
  background:
    linear-gradient(145deg, rgba(58, 107, 86, 0.09), rgba(196, 163, 90, 0.06)),
    rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(58, 107, 86, 0.12);
}

.download-mark {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 0.9rem;
  border-radius: 0.85rem;
}

.download-panel h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.3vw, 1.95rem);
  font-weight: 700;
  color: var(--sage-deep);
}

.download-panel > p {
  margin: 0.6rem auto 1.4rem;
  max-width: 28rem;
  color: var(--muted);
  font-weight: 500;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.store-btn {
  min-width: 11.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 1rem;
  text-align: start;
  color: var(--white);
  transition: transform 0.25s var(--ease);
  box-shadow: 0 10px 24px rgba(20, 36, 29, 0.14);
}

.store-btn:hover {
  transform: translateY(-2px);
}

.store-ios {
  background: linear-gradient(160deg, #171717, #2a2a2a);
}

.store-android {
  background: linear-gradient(160deg, var(--sage-mid), var(--sage-deep));
}

.store-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.78;
}

.store-btn strong {
  font-size: 1.12rem;
  font-weight: 700;
}

.store-soon {
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 600;
}

.download-foot {
  margin-top: 1.35rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.download-foot a:hover {
  color: var(--sage-deep);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(58, 107, 86, 0.12);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
}

.footer-links a:hover {
  color: var(--sage-deep);
}

.page {
  padding: 2rem 0 4rem;
}

.page-card {
  max-width: 42rem;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(58, 107, 86, 0.1);
  border-radius: var(--radius);
  padding: 2rem 1.35rem 2.4rem;
  backdrop-filter: blur(8px);
}

.page-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.7rem;
  color: var(--sage-deep);
}

.page-card h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.1rem;
}

.page-card p,
.page-card li {
  color: var(--muted);
  font-weight: 500;
}

.page-card a {
  color: var(--sage);
  font-weight: 700;
}

@media (max-width: 860px) {
  .device-stage {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 0.25rem;
  }

  .device-main {
    width: min(250px, 68vw);
    order: -1;
  }

  .device-side {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 4.5rem 0 3rem;
  }

  .hero-copy {
    padding: 0.5rem 0.25rem 1.5rem;
  }

  .hero-plane {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .top-links {
    gap: 0.75rem;
    font-size: 0.84rem;
  }
}
