/* ═══════════════════════════════════════════════════════════
   OMNI Distribution — Growth Engine
   Components: Buttons, Cards, Glassmorphism, Widgets
   ═══════════════════════════════════════════════════════════ */

/* ── Primary CTA Button ── */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--obsidian);
  background: var(--cyan);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out-expo),
              box-shadow var(--t-fast);
  will-change: transform;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-fast);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4),
              0 0 60px rgba(0, 240, 255, 0.15);
}

.btn-primary .btn-arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ── Ghost Button ── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: transparent;
  border: 1px solid rgba(0, 240, 255, 0.3);
  transition: all var(--t-fast) var(--ease-out-expo);
}

.btn-ghost:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* ── Glassmorphism Panel ── */
.glass-panel {
  background: rgba(18, 18, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(240, 240, 245, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--t-med),
              box-shadow var(--t-med);
}

.glass-panel:hover {
  border-color: rgba(0, 240, 255, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(240, 240, 245, 0.05);
}

/* ── Dashboard Widget ── */
.widget {
  position: relative;
  padding: 32px;
  background: rgba(18, 18, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(240, 240, 245, 0.06);
  border-radius: 16px;
  overflow: hidden;
}

.widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.widget-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--cyan);
}

.widget-status .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 240, 255, 0); }
}

.widget-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  line-height: 1.1;
}

.widget-value .cyan { color: var(--cyan); }

.widget-sub {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--white-muted);
}

/* ── Ticker ── */
.ticker-wrap {
  overflow: hidden;
  width: 100%;
  background: rgba(10, 10, 15, 0.8);
  border-top: 1px solid rgba(240, 240, 245, 0.04);
  border-bottom: 1px solid rgba(240, 240, 245, 0.04);
  padding: 12px 0;
}

.ticker-track {
  display: flex;
  gap: 48px;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--white-dim);
}

.ticker-item .up { color: #22C55E; }
.ticker-item .separator {
  width: 4px;
  height: 4px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0.5;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Service Toggle ── */
.service-toggle {
  display: flex;
  background: rgba(18, 18, 26, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(240, 240, 245, 0.08);
  border-radius: 12px;
  padding: 4px;
  position: relative;
  overflow: hidden;
}

.service-toggle-btn {
  flex: 1;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--white-muted);
  background: transparent;
  border-radius: 8px;
  transition: color var(--t-fast);
  position: relative;
  z-index: 2;
}

.service-toggle-btn.active {
  color: var(--obsidian);
}

.service-toggle-slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  border-radius: 8px;
  background: var(--cyan);
  transition: all var(--t-med) var(--ease-out-expo);
  z-index: 1;
}

/* ── Service Card ── */
.service-card {
  position: relative;
  padding: 40px;
  background: rgba(18, 18, 26, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(240, 240, 245, 0.06);
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-med) var(--ease-out-expo),
              transform var(--t-med) var(--ease-out-expo);
}

.service-card.active {
  opacity: 1;
  transform: translateY(0);
}

.service-card .energy-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, var(--glow-color, var(--cyan-glow)) 0%, transparent 60%);
  opacity: 0.15;
  pointer-events: none;
  transition: opacity var(--t-slow);
}

.service-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--cyan);
}

.service-features {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--white-dim);
}

.service-feature .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 4px;
  color: var(--cyan);
  font-size: 0.7rem;
}

/* ── Audience Card ── */
.audience-card {
  position: relative;
  padding: 36px;
  background: rgba(18, 18, 26, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(240, 240, 245, 0.05);
  border-radius: 16px;
  transition: transform var(--t-med) var(--ease-out-expo),
              border-color var(--t-med),
              box-shadow var(--t-med);
  transform-style: preserve-3d;
  perspective: 800px;
}

.audience-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.audience-card .card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.audience-card .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.audience-card .card-desc {
  font-size: 0.9rem;
  color: var(--white-dim);
  line-height: 1.6;
}

/* ── Timeline Step ── */
.timeline-step {
  position: relative;
  display: flex;
  gap: 32px;
  padding: 32px 0;
  opacity: 0.3;
  transition: opacity var(--t-med) var(--ease-out-expo);
}

.timeline-step.active {
  opacity: 1;
}

.timeline-step .step-marker {
  position: relative;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--obsidian-mid);
  border: 2px solid rgba(240, 240, 245, 0.1);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white-muted);
  transition: all var(--t-med) var(--ease-out-expo);
  z-index: 2;
}

.timeline-step.active .step-marker {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2),
              0 0 40px rgba(0, 240, 255, 0.05);
}

.timeline-step .step-content {
  padding-top: 4px;
}

.timeline-step .step-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
  transition: color var(--t-med);
}

.timeline-step.active .step-title {
  color: var(--cyan);
}

.timeline-step .step-desc {
  font-size: 0.88rem;
  color: var(--white-muted);
  max-width: 400px;
}

/* ── Timeline Connector ── */
.timeline-line {
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(240, 240, 245, 0.06);
}

.timeline-line-fill {
  position: absolute;
  left: 27px;
  top: 0;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), rgba(0, 240, 255, 0.1));
  transition: height 0.1s linear;
  z-index: 1;
}

/* ── Section Label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

/* ── Grid Lines Background ── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 240, 245, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 240, 245, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
