/* ==========================================================================
   اوجاسافت — گردونه شانس آنلاین · Landing additions
   Builds on top of css/giveaway.css (shared base + theme tokens)
   ========================================================================== */

/* ============================ Hero wheel ============================ */
.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  gap: 24px;
  width: min(360px, 100%);
  animation: wheelBob 7s ease-in-out infinite;
}
@keyframes wheelBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.wheel {
  --w: 330px;
  position: relative;
  width: var(--w);
  height: var(--w);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
.wheel-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 8px solid #fff;
  background: conic-gradient(
    #143B2F 0deg 45deg,
    #5E9C80 45deg 90deg,
    #1E5B48 90deg 135deg,
    #8FC0A8 135deg 180deg,
    #143B2F 180deg 225deg,
    #5E9C80 225deg 270deg,
    #1E5B48 270deg 315deg,
    #8FC0A8 315deg 360deg
  );
  overflow: hidden;
  --wheel-r: -126px;
}

.seg {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}
.seg:nth-child(even) { color: #143B2F; text-shadow: none; }
.seg-1 { transform: translate(-50%, -50%) rotate(22.5deg)   translateY(var(--wheel-r)) rotate(-22.5deg); }
.seg-2 { transform: translate(-50%, -50%) rotate(67.5deg)   translateY(var(--wheel-r)) rotate(-67.5deg); }
.seg-3 { transform: translate(-50%, -50%) rotate(112.5deg)  translateY(var(--wheel-r)) rotate(-112.5deg); }
.seg-4 { transform: translate(-50%, -50%) rotate(157.5deg)  translateY(var(--wheel-r)) rotate(-157.5deg); }
.seg-5 { transform: translate(-50%, -50%) rotate(202.5deg)  translateY(var(--wheel-r)) rotate(-202.5deg); }
.seg-6 { transform: translate(-50%, -50%) rotate(247.5deg)  translateY(var(--wheel-r)) rotate(-247.5deg); }
.seg-7 { transform: translate(-50%, -50%) rotate(292.5deg)  translateY(var(--wheel-r)) rotate(-292.5deg); }
.seg-8 { transform: translate(-50%, -50%) rotate(337.5deg)  translateY(var(--wheel-r)) rotate(-337.5deg); }

.wheel-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--green);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px -10px rgba(30, 91, 72, 0.55);
  z-index: 2;
}
.wheel-hub img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
}

.wheel-pointer {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 27px solid var(--green);
  filter: drop-shadow(0 4px 8px rgba(30, 91, 72, 0.45));
}

.wheel-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  box-shadow: 0 12px 28px -10px rgba(30, 91, 72, 0.5);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.25s;
  cursor: pointer;
}
.wheel-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(30, 91, 72, 0.6); }
.wheel-btn:disabled { opacity: 0.65; cursor: default; transform: none; }
.wheel-btn svg { transition: transform 0.3s var(--ease); }
.wheel-btn:hover svg { transform: rotate(120deg); }

/* Small decorative wheel (sample section) */
.wheel-sm { --w: 250px; box-shadow: none; position: relative; z-index: 1; transition: transform 0.5s var(--ease); }
.sample-frame:hover .wheel-sm { transform: rotate(-4deg); }
.wheel-sm .wheel-disc { border-width: 6px; --wheel-r: -95px; }
.wheel-sm .seg { font-size: 10.5px; }
.wheel-sm .wheel-hub { width: 60px; height: 60px; border-width: 3px; }
.wheel-sm .wheel-hub img { width: 40px; height: 40px; }
.wheel-sm .wheel-pointer { top: -11px; border-left-width: 12px; border-right-width: 12px; border-top-width: 22px; }

/* ============================ Concept / benefits ============================ */
.concept {
  background: var(--bg-soft);
  padding-block: clamp(70px, 9vw, 120px);
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.concept-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px 30px 32px;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.concept-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 91, 72, 0.35);
}
.concept-num {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(30, 91, 72, 0.35);
  direction: ltr;
  unicode-bidi: isolate;
}
.concept-ic {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 20px;
  display: grid; place-items: center;
  background: var(--green-tint);
  color: var(--green);
  border: 1px solid rgba(30, 91, 72, 0.25);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.concept-card:hover .concept-ic {
  background: var(--grad-brand);
  color: #fff;
  transform: translateY(-3px);
}
.concept-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.concept-card p { font-size: 14px; color: var(--muted); line-height: 2; }

/* ============================ 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; }

/* ============================ Sample ============================ */
.sample {
  padding-block: clamp(70px, 9vw, 120px);
}
.sample-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.sample-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sample-media { display: grid; place-items: center; }
.sample-frame {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(94, 156, 128, 0.2), transparent 55%),
    #FBFCFA;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.sample-frame-glow {
  position: absolute; inset: -30%;
  background: conic-gradient(from 90deg, transparent, rgba(30, 91, 72, 0.1), transparent 30%);
  animation: rotateGlow 14s linear infinite;
}
.sample-badge {
  position: absolute;
  bottom: 24px;
  inset-inline-end: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: #fff;
  border-radius: 16px;
  padding: 13px 18px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.sample-badge-ic {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff;
}
.sample-badge strong { display: block; font-size: 13px; font-weight: 700; }
.sample-badge small { font-size: 11px; color: rgba(255, 255, 255, 0.6); }

/* ============================ Responsive ============================ */
@media (max-width: 1024px) {
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
  .sample-grid { grid-template-columns: 1fr; gap: 50px; }
  .sample-copy { text-align: center; }
  .sample-actions { justify-content: center; }
}

@media (max-width: 768px) {
  .hero-visual .chip-1 { top: 6%; }
  .hero-visual .chip-2 { bottom: 6%; }
  .wheel { --w: 300px; }
  .wheel-disc { --wheel-r: -114px; }
  .concept-grid { grid-template-columns: 1fr; }
  .why-strip { justify-content: center; text-align: center; }
  .why-strip .btn { width: 100%; }
  .sample-frame { max-width: 340px; }
  .sample-badge { inset-inline-end: 12px; bottom: 16px; }
  .sample-actions .btn { width: 100%; }
  .wheel-sm { --w: 220px; }
  .wheel-sm .wheel-disc { --wheel-r: -83px; }
  .wheel-sm .seg { font-size: 9.5px; }
}

@media (max-width: 420px) {
  .wheel { --w: 260px; }
  .wheel-disc { --wheel-r: -98px; }
  .wheel-hub { width: 64px; height: 64px; }
  .wheel-hub img { width: 42px; height: 42px; }
}

