/* Homepage only (built by web/build.mjs). Shared header, footer and cards come from styles.css. */

main .container,
header .container,
footer .container {
  max-width: 960px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  border-radius: 7px;
}

/* Right-to-left (Arabic): the shared styles use left/right margins. */
[dir="rtl"] nav a {
  margin-left: 0;
  margin-right: 24px;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 24px 48px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px 0 auto;
  height: 420px;
  background: radial-gradient(closest-side, rgba(212, 168, 67, 0.22), transparent);
  z-index: -1;
  pointer-events: none;
}

.hero-icon {
  display: block;
  margin-inline: auto;
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(212, 168, 67, 0.25);
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-light) !important;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 14px;
  margin: 0 auto 20px !important;
}

.hero h1 {
  font-size: 3.25rem;
}

.hero .lead {
  max-width: 560px;
}

/* Screenshots: a row on wide screens, a swipeable strip on phones. */
.shots {
  padding: 8px 0 64px;
}

.shots-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 220px));
  justify-content: center;
  gap: 20px;
  padding: 0 24px;
}

.shots figure {
  margin: 0;
  text-align: center;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.shots figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
}

.features {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Closing call to action */
.cta {
  text-align: center;
  padding-bottom: 80px !important;
}

.cta h2 {
  margin-bottom: 8px;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Language menu */
.language {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.language select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font: inherit;
}

@media (max-width: 900px) {
  .shots-track {
    grid-template-columns: repeat(4, 200px);
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .shots figure {
    scroll-snap-align: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero {
    padding: 48px 16px 32px;
  }

  .shots-track {
    grid-template-columns: repeat(4, 70vw);
    padding: 0 16px 8px;
  }

  [dir="rtl"] nav a {
    margin-right: 16px;
  }
}
