:root {
  --color-primary: #b0804c;
  --color-primary-dark: #8f6539;
  --color-secondary: #dcab68;
  --color-bg: #ffffff;
  --color-text: #241c14;
  --color-text-muted: #6b5c48;
  --color-border: #f0e4d3;
  --radius-lg: 28px;
  --radius-md: 16px;
  --container: 720px;
}

* {
  box-sizing: border-box;
}

/* Single-screen page: the whole layout is one viewport tall and never scrolls. */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

body {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* Header */
.site-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(8px, 1.6vh, 16px) 24px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-header__logo {
  height: clamp(34px, 7vh, 72px);
  width: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: background-color .2s ease, transform .2s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--small {
  padding: clamp(7px, 1.2vh, 10px) 22px;
  font-size: 14px;
}

/* Main column takes the space left between header and footer. */
main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Hero */
.hero {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(8px, 2vh, 40px) 24px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(clamp(180px, 46vw, 400px), 36vh);
  height: auto;
  margin-bottom: clamp(8px, 2vh, 26px);
}

.hero__headline {
  margin: 0 0 clamp(6px, 1.4vh, 18px);
  font-size: clamp(24px, min(6vw, 5.4vh), 52px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--color-secondary);
}

.hero__desc {
  margin: 0 auto;
  max-width: 560px;
  font-size: clamp(0.95rem, min(0.85rem + 0.9vw, 2.1vh), 1.5rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Download */
.download {
  flex: 0 0 auto;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(10px, 2vh, 28px) 24px;
  text-align: center;
}

.store-badges {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-text);
  color: #fff;
  padding: clamp(7px, 1.2vh, 10px) 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-width: 170px;
  direction: ltr;
}

.store-badge:hover {
  background: var(--color-primary-dark);
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-badge__text small {
  font-size: 11px;
  opacity: .85;
}

.store-badge__text strong {
  font-size: 16px;
  font-weight: 700;
}

/* Phone showcase — absorbs whatever vertical space is left over. */
.phone-showcase {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: min(340px, 88vw);
  margin: clamp(10px, 2vh, 40px) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-showcase__blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(90%, 44vh);
  height: min(90%, 44vh);
  max-width: 320px;
  max-height: 320px;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  background: linear-gradient(155deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  opacity: .18;
  filter: blur(2px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  aspect-ratio: 220 / 448;
  background: var(--color-text);
  border-radius: clamp(18px, 4vh, 40px);
  padding: clamp(6px, 1.2vh, 12px);
  box-shadow: 0 24px 48px -12px rgba(36, 28, 20, .35);
}

.phone-frame__notch {
  position: absolute;
  top: clamp(6px, 1.2vh, 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: clamp(10px, 1.8vh, 18px);
  background: var(--color-text);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: clamp(12px, 2.8vh, 28px);
  background: linear-gradient(160deg, #fff 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-frame__logo {
  width: 68%;
  opacity: 1;
}

/* Footer */
.site-footer {
  flex: 0 0 auto;
  text-align: center;
  padding: clamp(8px, 1.6vh, 24px) 24px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: clamp(11px, 1.7vh, 14px);
  line-height: 1.5;
}

.site-footer__rights {
  margin: 0 0 clamp(2px, .6vh, 10px);
}

.site-footer__contact {
  margin: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer__contact a {
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: var(--color-primary);
}

/* Short viewports (landscape phones, small laptops): drop the mockup, then the
   description, so the core message and the store links always stay on screen. */
@media (max-height: 620px) {
  .phone-showcase {
    display: none;
  }

  .hero {
    justify-content: center;
  }
}

@media (max-height: 420px) {
  .hero__desc {
    display: none;
  }

  .site-footer__rights {
    display: none;
  }
}

@media (max-width: 420px) {
  .store-badge {
    min-width: 150px;
    padding: 9px 14px;
  }
}
