/* ==========================================================================
   اوجاسافت — قرعه‌کشی روبیکا · Landing
   Extends css/giveaway.css with Rubika-specific pieces:
   phone mockup (rmock), how-section variant, why strip.
   Font: Estedad (aminabedi68/Estedad, SIL OFL 1.1)
   Colors & design tokens match ojasoft main theme (css/style.css)
   ========================================================================== */

/* ============================ Hero visual — Rubika phone mockup ============================ */
.hero-visual:hover .rmock { transform: rotate(0deg); }

.rmock {
  position: relative;
  width: min(300px, 78%);
  border-radius: 42px;
  background: #101412;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.5s var(--ease);
}
.rmock-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  border-radius: 20px;
  background: #101412;
  z-index: 3;
}
.rmock-screen {
  border-radius: 32px;
  background: #fff;
  overflow: hidden;
}
.rmock-head {
  display: flex; align-items: center; gap: 9px;
  padding: 38px 14px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.rmock-back {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.rmock-avatar {
  width: 38px; height: 38px; flex: none;
  border-radius: 50%;
  padding: 2px;
  background: var(--grad-brand);
  display: grid; place-items: center;
}
.rmock-avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}
.rmock-title { display: flex; flex-direction: column; line-height: 1.3; }
.rmock-title strong { font-size: 12px; font-weight: 800; }
.rmock-title small { font-size: 10px; color: var(--muted); }
.rmock-head > i {
  font-style: normal;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--muted);
  margin-inline-start: auto;
}
.rmock-media {
  position: relative;
  height: 168px;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(94, 156, 128, 0.5), transparent 50%),
    linear-gradient(140deg, #203B30, #0F1F18);
  display: grid; place-items: center;
}
.rmock-media::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(94, 156, 128, 0.28) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle at 50% 55%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 55%, #000, transparent 78%);
}
.rmock-badge {
  position: relative; z-index: 1;
  font-size: 15px; font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 10px 22px;
  border-radius: 30px;
}
.rmock-caption { padding: 14px 16px 10px; }
.rmock-caption strong { display: block; font-size: 13px; font-weight: 800; line-height: 1.7; }
.rmock-caption p { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 4px; }
.rmock-reactions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 16px 18px;
}
.rmock-reactions span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 6px 12px;
  white-space: nowrap;
}

/* ============================ How it works variant ============================ */
.rubika-how { position: relative; }
.rubika-how::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(30, 91, 72, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
  pointer-events: none;
}
.rubika-how .container { position: relative; }

/* ============================ Why strip ============================ */
.why {
  padding-block: clamp(40px, 6vw, 70px);
}
.why-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #121713, #1C2620 50%, #121713);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(94, 156, 128, 0.25);
  padding: clamp(40px, 6vw, 64px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.why-strip-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(500px 300px at 50% -20%, rgba(94, 156, 128, 0.22), transparent 60%),
    radial-gradient(400px 260px at 12% 110%, rgba(94, 156, 128, 0.1), transparent 60%);
}
.why-text { position: relative; z-index: 1; max-width: 62ch; }
.why-text h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.6;
}
.why-text p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
  line-height: 2;
}
.why-brands {
  background: var(--grad-luxe-dark);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.why-strip .btn { position: relative; z-index: 1; flex: none; }

/* ============================ Responsive ============================ */
@media (max-width: 768px) {
  .rmock { width: min(300px, 82%); }
  .why-strip { justify-content: center; text-align: center; }
  .why-strip .btn { width: 100%; }
}

@media (max-width: 480px) {
  .rmock { width: min(300px, 88%); }
  .rmock-media { height: 150px; }
}

