/* ============================================================
   DIGITAL DADI — AI Orb CTA Section
   ============================================================ */

.orb-cta-section {
  position: relative;
  min-height: 100vh;
  background: #080d1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 2rem;
}

/* ── AI-generated background image ─────────────────────── */
.orb-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url('/assets/images/bg-orb-cta.webp') center center / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* ── Ambient overlay on top of image ───────────────────── */
.orb-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.orb-cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(8,13,26,.55) 0%, transparent 65%),
    radial-gradient(ellipse 100% 40% at 50% 100%, rgba(8,13,26,.9) 0%, transparent 60%),
    radial-gradient(ellipse 100% 30% at 50% 0%, rgba(8,13,26,.7) 0%, transparent 50%);
}

/* Noise grain overlay */
.orb-cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.4;
}

/* ── Star particles ─────────────────────────────────────── */
.orb-cta-stars,
.orb-cta-label,
.orb-cta-orb-wrap,
.orb-cta-text,
.orb-cta-stats { position: relative; z-index: 2; }

.orb-cta-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb-cta-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: orb-star-twinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes orb-star-twinkle {
  0%, 100% { opacity: var(--min-op, 0.1); transform: scale(1); }
  50%       { opacity: var(--max-op, 0.5); transform: scale(1.3); }
}

/* ── Label ──────────────────────────────────────────────── */
.orb-cta-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 3.5rem;
}
.orb-cta-label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dadi-yellow);
  animation: orb-dot-pulse 2s ease-in-out infinite;
}
@keyframes orb-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(253,187,17,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 6px rgba(253,187,17,0); }
}

/* ── Orb container ──────────────────────────────────────── */
.orb-cta-orb-wrap {
  position: relative;
  z-index: 2;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Outer ambient glow rings */
.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(74,75,113,0.3);
  pointer-events: none;
}
.orb-ring-1 { inset: -40px; animation: orb-ring-expand 4s ease-in-out infinite; }
.orb-ring-2 { inset: -70px; animation: orb-ring-expand 4s ease-in-out 0.8s infinite; }
.orb-ring-3 { inset: -100px; animation: orb-ring-expand 4s ease-in-out 1.6s infinite; }
@keyframes orb-ring-expand {
  0%   { opacity: 0.5; transform: scale(0.97); }
  50%  { opacity: 0.15; transform: scale(1.02); }
  100% { opacity: 0.5; transform: scale(0.97); }
}

/* Yellow glow behind sphere */
.orb-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,187,17,0.12) 0%, rgba(74,75,113,0.18) 45%, transparent 70%);
  animation: orb-glow-breathe 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orb-glow-breathe {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50%       { opacity: 1;   transform: scale(1.05); }
}

/* The sphere itself */
.orb-sphere {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #3a3b6b, #1a1b3a 55%, #0d0e1f);
  box-shadow:
    0 0 60px rgba(74,75,113,0.5),
    0 0 120px rgba(74,75,113,0.25),
    inset 0 0 40px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.orb-cta-orb-wrap:hover .orb-sphere {
  transform: scale(1.04);
  box-shadow:
    0 0 80px rgba(253,187,17,0.3),
    0 0 140px rgba(74,75,113,0.35),
    inset 0 0 40px rgba(0,0,0,0.5);
}

/* Rotating grid lines inside sphere */
.orb-sphere-grid {
  position: absolute;
  inset: 0;
  animation: orb-grid-rotate 25s linear infinite;
}
.orb-sphere-grid-b {
  position: absolute;
  inset: 0;
  animation: orb-grid-rotate 18s linear reverse infinite;
  opacity: 0.5;
}

/* Wave bars (AI voice effect) */
.orb-wave-bars {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  align-items: flex-end;
}
.orb-wave-bar {
  width: 3px;
  border-radius: 9999px;
  background: linear-gradient(to top, #60a5fa, #a78bfa);
  box-shadow: 0 0 6px rgba(96,165,250,0.6);
}

/* Inner highlight + reflection */
.orb-highlight {
  position: absolute;
  top: 12%;
  left: 18%;
  width: 30%;
  height: 25%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  filter: blur(4px);
}
.orb-reflection {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 20%;
  height: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253,187,17,0.12) 0%, transparent 70%);
  filter: blur(6px);
}

/* Yellow equator accent */
.orb-equator {
  position: absolute;
  top: 50%;
  left: -5%;
  right: -5%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(253,187,17,0.3), rgba(253,187,17,0.5), rgba(253,187,17,0.3), transparent);
  transform: translateY(-50%) rotateX(60deg);
  pointer-events: none;
}

/* Center icon */
.orb-center-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.orb-center-icon svg {
  color: rgba(255,255,255,0.7);
  filter: drop-shadow(0 0 8px rgba(253,187,17,0.5));
  transition: transform 0.3s, color 0.3s;
}
.orb-cta-orb-wrap:hover .orb-center-icon svg {
  color: var(--dadi-yellow);
  transform: scale(1.1);
}
.orb-center-icon span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* Tap hint */
.orb-tap-hint {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.orb-tap-text {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
  animation: orb-tap-blink 2s ease-in-out infinite;
}
.orb-tap-arrow {
  color: rgba(255,255,255,0.2);
  animation: orb-tap-bounce 2s ease-in-out infinite;
}
@keyframes orb-tap-blink  { 0%,100%{opacity:.25} 50%{opacity:.6} }
@keyframes orb-tap-bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(4px)} }

@keyframes orb-grid-rotate { from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* ── Text + CTA area ────────────────────────────────────── */
.orb-cta-text {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 580px;
}
.orb-cta-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
  margin: 0 0 1.25rem;
}
.orb-cta-headline em {
  font-style: normal;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.5px var(--dadi-yellow);
}
.orb-cta-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  margin: 0 0 2.75rem;
}
.orb-cta-sub strong { color: rgba(255,255,255,0.7); font-weight: 500; }

/* ── Action buttons ─────────────────────────────────────── */
.orb-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Primary yellow button */
.orb-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 2rem;
  background: var(--dadi-yellow);
  color: #0a0f1e;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.orb-btn-primary:hover {
  background: #ffc72c;
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(253,187,17,0.35);
}
.orb-btn-primary svg { flex-shrink: 0; transition: transform 0.2s; }
.orb-btn-primary:hover svg { transform: translate(2px,-2px); }

/* Ghost button */
.orb-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 2rem;
  background: transparent;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.orb-btn-ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}

/* ── Bottom stat bar ────────────────────────────────────── */
.orb-cta-stats {
  position: relative;
  z-index: 2;
  margin-top: 5rem;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 2rem;
}
.orb-cta-stat {
  flex: 1;
  text-align: center;
  padding: 0 2rem;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.orb-cta-stat:last-child { border-right: none; }
.orb-cta-stat-num {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 0.25rem;
}
.orb-cta-stat-num em {
  font-style: normal;
  color: var(--dadi-yellow);
}
.orb-cta-stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.28);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .orb-cta-orb-wrap { width: 260px; height: 260px; }
  .orb-sphere { width: 200px; height: 200px; }
  .orb-ring-1 { inset: -25px; }
  .orb-ring-2 { inset: -45px; }
  .orb-ring-3 { inset: -65px; }
  .orb-cta-stats { flex-direction: column; gap: 1.5rem; }
  .orb-cta-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 0 0 1.5rem; }
  .orb-cta-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .orb-cta-actions { flex-direction: column; align-items: stretch; }
  .orb-btn-primary, .orb-btn-ghost { justify-content: center; }
}
