:root {
  --bg-deep: #070708;
  --bg-mid: #12110f;
  --ink: #f7f3ec;
  --ink-muted: rgba(247, 243, 236, 0.68);
  --accent: #f79f1f;
  --accent-hot: #ffb347;
  --accent-deep: #e07800;
  --line: rgba(247, 243, 236, 0.14);
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-brand: "Outfit", "IBM Plex Sans Arabic", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-ar);
  color: var(--ink);
  background: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(247, 159, 31, 0.18), transparent 55%),
    linear-gradient(165deg, #0c0b0a 0%, var(--bg-deep) 42%, #10100e 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.glow-a {
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  top: -8%;
  left: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.45), transparent 70%);
  animation: drift 14s var(--ease) infinite alternate;
}

.glow-b {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  bottom: 8%;
  right: 12%;
  background: radial-gradient(circle, rgba(224, 120, 0, 0.28), transparent 70%);
  animation: drift 18s var(--ease) infinite alternate-reverse;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  gap: 0;
}

.logo {
  width: clamp(96px, 18vw, 140px);
  height: auto;
  display: block;
  margin-bottom: clamp(1rem, 2.5vw, 1.4rem);
  filter: drop-shadow(0 18px 40px rgba(247, 159, 31, 0.22));
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(105deg, #fff8ee 10%, var(--accent-hot) 48%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--ink);
}

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  width: min(100%, 52rem);
  margin: 0 auto 1.75rem;
  text-align: start;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.product:hover,
.product:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(247, 159, 31, 0.45);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(247, 159, 31, 0.12);
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141210;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(7, 7, 8, 0.72), transparent);
  pointer-events: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}

.product:hover .product-media img,
.product:focus-visible .product-media img {
  transform: scale(1.05);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.05rem 1.15rem 1.2rem;
}

.product-title {
  margin: 0;
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.product-desc {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-muted);
}

.product-link {
  margin-top: 0.35rem;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-hot);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 40rem;
}

.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.action:hover,
.action:focus-visible {
  color: var(--ink);
  border-color: rgba(247, 159, 31, 0.55);
  background: rgba(247, 159, 31, 0.1);
  transform: translateY(-2px);
}

.icon-whatsapp {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: #25d366;
}

.action-whatsapp:hover .icon-whatsapp,
.action-whatsapp:focus-visible .icon-whatsapp {
  color: #3be07a;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 4%, 0) scale(1.06);
  }
}

@media (max-width: 760px) {
  .products {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column;
    width: min(100%, 20rem);
  }

  .action {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-a,
  .glow-b {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
