:root {
  --green-950: #183318;
  --green-900: #254d25;
  --green-700: #4f8d4a;
  --sage: #b7c6b6;
  --cream: #f5f2e8;
  --ink: #101710;
  --muted: #61705f;
  --card: rgba(255, 255, 255, 0.74);
  --line: rgba(24, 51, 24, 0.12);
  --red: #ef4444;
  --gold: #f4b84a;
  --blue: #1683f5;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(239, 68, 68, 0.18), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(79, 141, 74, 0.22), transparent 28%),
    linear-gradient(135deg, #f8f6ec 0%, #dfe7d9 48%, #c4d0bd 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 51, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 51, 24, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 75%);
  z-index: -2;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(24, 51, 24, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(24, 51, 24, 0.16);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 18px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  transform: translateY(-1px);
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 72px 0 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 4% auto auto 2%;
  width: min(72vw, 820px);
  aspect-ratio: 1;
  background: url("assets/syria-map-logo.png") center / contain no-repeat;
  opacity: 0.18;
  transform: rotate(-4deg);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 10px;
  font-family: "Inter", "Cairo", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-700);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 24px;
  max-width: 820px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.32rem;
  margin-bottom: 8px;
}

.hero-text,
.section p,
.legal p,
.contact p {
  font-size: 1.08rem;
  line-height: 2;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-action {
  color: white;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  box-shadow: 0 18px 36px rgba(37, 77, 37, 0.25);
}

.secondary-action {
  color: var(--green-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
  perspective: 1200px;
  z-index: 1;
}

.phone-shell {
  position: absolute;
  inset-inline-end: 0;
  bottom: 5%;
  width: min(34vw, 380px);
  aspect-ratio: 0.52;
  border-radius: 46px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 239, 227, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 34px 90px rgba(24, 51, 24, 0.28);
  transform: rotateY(-7deg) rotateX(3deg);
  animation: floatPhone 5s ease-in-out infinite;
}

.phone-top {
  height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  padding: 0 16px;
}

.signal {
  width: 54px;
  height: 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #111 0 22%, transparent 22% 32%, #111 32% 54%, transparent 54% 64%, #111 64% 100%);
  opacity: 0.86;
}

.map-preview {
  position: relative;
  height: calc(100% - 38px);
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(30deg, rgba(255, 255, 255, 0.38) 8%, transparent 8% 12%, rgba(255, 255, 255, 0.5) 12% 14%, transparent 14% 32%, rgba(255, 255, 255, 0.5) 32% 34%, transparent 34%),
    linear-gradient(125deg, #e9e7d9, #f8f5e7);
}

.map-preview img {
  position: absolute;
  width: 72%;
  inset-inline-start: 12%;
  top: 19%;
  opacity: 0.2;
  mix-blend-mode: multiply;
}

.floating-pill,
.floating-button {
  position: absolute;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(24, 51, 24, 0.16);
  font-weight: 900;
}

.owner-pill {
  top: 26px;
  inset-inline-start: 24px;
  padding: 10px 18px;
  border-radius: 24px;
  color: #f59e0b;
}

.online-pill {
  top: 120px;
  inset-inline-end: 22px;
  padding: 10px 18px;
  border-radius: 24px;
}

.floating-button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 2rem;
}

.search-dot {
  top: 178px;
  inset-inline-end: 28px;
}

.locate-dot {
  top: 246px;
  inset-inline-end: 28px;
}

.section {
  padding: 96px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.feature-grid,
.legal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.legal article,
.glass-panel,
.notice,
.contact,
.metric-stack div,
.terms-list {
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(24, 51, 24, 0.12);
}

.feature-card,
.legal article,
.metric-stack div {
  border-radius: 28px;
  padding: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: white;
  font-size: 1.4rem;
}

.notice {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 32px;
  align-items: center;
  border-radius: 34px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 244, 224, 0.72));
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.glass-panel,
.terms-list,
.contact {
  border-radius: 34px;
  padding: 34px;
}

.metric-stack {
  display: grid;
  gap: 14px;
}

.metric-stack div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.metric-stack strong {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
}

.metric-stack span {
  color: var(--muted);
  font-weight: 800;
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.terms-list {
  display: grid;
  gap: 14px;
}

.terms-list p {
  margin: 0;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 96px 0 64px;
}

footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 800;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatPhone {
  0%,
  100% {
    transform: rotateY(-7deg) rotateX(3deg) translateY(0);
  }
  50% {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-14px);
  }
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .notice,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 420px;
  }

  .hero::before {
    inset: 10% auto auto 50%;
    width: 92vw;
    transform: translateX(-50%) rotate(-4deg);
  }

  .phone-shell {
    width: min(76vw, 340px);
    inset-inline-end: 50%;
    transform: translateX(50%);
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  main,
  .site-header,
  footer {
    width: min(100% - 20px, 1120px);
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .nav-links a {
    text-align: center;
  }

  .feature-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.6rem;
  }

  .phone-shell {
    transform: translateX(50%);
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
