/* 
 * PRADUMNA_FX V3 EXPERIMENTAL — APPLE KEYNOTE / LINEAR AESTHETIC
 * Ultra-premium visual redesign for experimental download workflow.
 */

:root {
  --bg-dark: #030308;
  --glass-bg: rgba(12, 14, 24, 0.55);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-glow: rgba(34, 211, 238, 0.12);
  
  --accent-purple: #8b5cf6;
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --success: #10b981;
  
  --text-pure: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-dark: rgba(255, 255, 255, 0.3);
}

body {
  margin: 0;
  background-color: var(--bg-dark);
  color: var(--text-pure);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════
   AURORA MULTI-LAYER ATMOSPHERE & BACKGROUND LIGHTING
   ═══════════════════════════════════════ */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg-dark);
  overflow: hidden;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.45;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.55;
  will-change: transform;
  animation: floatAurora 22s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
  z-index: 2;
}

.aurora-blob.purple {
  top: -15%;
  left: -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(124, 58, 237, 0.08) 60%, transparent 80%);
}

.aurora-blob.cyan {
  top: 20%;
  right: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.3) 0%, rgba(6, 182, 212, 0.05) 60%, transparent 80%);
  animation-delay: -7s;
}

.aurora-blob.blue {
  bottom: -20%;
  right: 15%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 75%);
  animation-delay: -14s;
}

.aurora-blob.green {
  bottom: 10%;
  left: 10%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  animation-delay: -4s;
}

/* Spotlights & Radial Lights */
.spotlight-card {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translate(50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, rgba(139, 92, 246, 0.08) 40%, transparent 75%);
  filter: blur(80px);
  z-index: 3;
  pointer-events: none;
}

.spotlight-preview {
  position: absolute;
  top: 45%;
  left: 15%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  filter: blur(90px);
  z-index: 3;
  pointer-events: none;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: radial-gradient(circle at center, transparent 30%, rgba(3, 3, 8, 0.85) 100%);
  pointer-events: none;
}

.aurora-noise {
  position: absolute;
  inset: 0;
  z-index: 5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes floatAurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 6%, 0) scale(1.08); }
  100% { transform: translate3d(-3%, -4%, 0) scale(0.95); }
}

/* ═══════════════════════════════════════
   MAIN LAYOUT & CONTAINER (1400px Max Width)
   ═══════════════════════════════════════ */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 40px 120px 40px;
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  animation: pageFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Breadcrumb ── */
.dlp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-dark);
  margin-bottom: 40px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.dlp-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.dlp-breadcrumb a:hover {
  color: var(--text-pure);
}
.dlp-breadcrumb svg {
  opacity: 0.4;
}

/* ── Product Header ── */
.product-header {
  margin-bottom: 56px;
}
.product-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.product-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 24px;
}
.product-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s ease;
}
.badge-pill:hover {
  border-color: rgba(255, 255, 255, 0.16);
}
.badge-pill svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ── Grid Architecture (45% / 55%) ── */
.download-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) {
  .download-layout {
    grid-template-columns: 45% 55%;
    gap: 48px;
    align-items: center;
  }
}

/* ═══════════════════════════════════════
   LEFT COLUMN: RESOURCE PREVIEW
   ═══════════════════════════════════════ */
.preview-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.preview-card {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: rgba(10, 12, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 50px rgba(139, 92, 246, 0.15);
  animation: cardFloat 7s ease-in-out infinite alternate;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.preview-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 70px rgba(139, 92, 246, 0.25);
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-glass-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 40%, transparent 60%, rgba(255, 255, 255, 0.03) 100%);
  pointer-events: none;
}

@keyframes cardFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* ═══════════════════════════════════════
   RIGHT COLUMN: DOWNLOAD GATEWAY (HERO)
   ═══════════════════════════════════════ */
.gateway-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(80px) saturate(170%);
  -webkit-backdrop-filter: blur(80px) saturate(170%);
  border-radius: 24px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 
    0 40px 120px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 0 60px var(--glass-glow);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.gateway-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(255, 255, 255, 0.4) 50%, transparent 95%);
}

.glass-reflection-beam {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.03) 50%, transparent 55%);
  pointer-events: none;
  animation: shineShift 12s ease-in-out infinite alternate;
}

@keyframes shineShift {
  0% { transform: translate(-10%, -10%); }
  100% { transform: translate(10%, 10%); }
}

.dlp-gateway-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.dlp-status-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 40px;
  line-height: 1.5;
}

/* ── Circular Timer ── */
.timer-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 40px;
}
.timer-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.timer-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 4;
}
.timer-progress {
  fill: none;
  stroke: url(#timerGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 641;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 16px rgba(34, 211, 238, 0.5));
}
.timer-progress.done {
  stroke: var(--success);
  filter: drop-shadow(0 0 20px rgba(16, 185, 129, 0.7));
}

.timer-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.timer-num {
  font-size: 4.2rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.timer-num.done {
  color: var(--success);
  font-weight: 500;
}

/* ── Connected Horizontal Timeline ── */
.timeline-wrapper {
  width: 100%;
  max-width: 440px;
  margin-bottom: 40px;
}

.timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  padding: 0 12px;
  box-sizing: border-box;
}

.timeline-line-bg {
  position: absolute;
  top: 13px;
  left: 36px;
  right: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.timeline-line-fill {
  position: absolute;
  top: 13px;
  left: 36px;
  height: 2px;
  width: 0%;
  max-width: calc(100% - 72px);
  background: linear-gradient(90deg, #8b5cf6 0%, #3b82f6 50%, #22d3ee 100%);
  z-index: 0;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.timeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  width: 72px;
}

.node-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 17, 26, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.check-icon {
  width: 12px;
  height: 12px;
  color: #ffffff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.node-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  text-align: center;
  transition: color 0.4s ease, font-weight 0.4s ease;
  letter-spacing: -0.01em;
}

/* Node Active & Done States */
.timeline-node.active .node-dot {
  background: rgba(34, 211, 238, 0.15);
  border-color: #22d3ee;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.6), inset 0 0 8px rgba(34, 211, 238, 0.4);
  animation: nodePulse 2s ease-in-out infinite;
}

.timeline-node.active .node-label {
  color: #ffffff;
  font-weight: 600;
}

.timeline-node.done .node-dot {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.timeline-node.done .check-icon {
  opacity: 1;
}

.timeline-node.done .node-label {
  color: rgba(255, 255, 255, 0.7);
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4), 0 0 12px rgba(34, 211, 238, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0), 0 0 22px rgba(34, 211, 238, 0.7); }
}

/* ── Magnetic Liquid Button ── */
.btn-liquid {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 20px 32px;
  background: rgba(15, 18, 28, 0.7);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 32px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-gradient-border {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: opacity 0.4s;
}

.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.btn-liquid.ready {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  color: #09090b;
  border-color: transparent;
  box-shadow: 
    0 16px 40px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.15),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.btn-liquid.ready .btn-gradient-border { opacity: 0; }

.btn-liquid.ready:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 
    0 24px 50px rgba(255, 255, 255, 0.35),
    0 0 40px rgba(255, 255, 255, 0.25);
}

.btn-liquid.ready:hover .btn-shine {
  left: 100%;
}

/* ── Trust Strip (Minimal Verification Banner) ── */
.trust-strip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(16, 185, 129, 0.025);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.14);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.trust-strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}
.trust-sep {
  color: rgba(255, 255, 255, 0.2);
  font-size: 10px;
}

/* ═══════════════════════════════════════
   ADVERTISEMENTS (STRICT CLS SAFE)
   ═══════════════════════════════════════ */
.ad-slot {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}
.ad-slot::before {
  content: 'SPONSORED';
  position: absolute;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.15);
}
.ad-banner { height: 90px; margin-bottom: 40px; }
.ad-rect { height: 250px; }
.ad-footer { height: 90px; }

/* ── Responsive Spacing ── */
@media (max-width: 1023px) {
  .main-container { padding: 48px 24px 80px 24px; }
  .download-layout { grid-template-columns: 1fr; gap: 40px; }
  .gateway-panel { padding: 40px 28px; border-radius: 20px; }
  .timer-container { width: 180px; height: 180px; }
  .timer-num { font-size: 3.5rem; }
  .timeline-line-bg { left: 24px; right: 24px; }
  .timeline-line-fill { left: 24px; }
}

@media (max-width: 767px) {
  .main-container { padding: 32px 16px 60px 16px; }
  .product-title { font-size: 2.2rem; }
  .timeline-node { width: 64px; }
  .node-label { font-size: 0.68rem; }
  .trust-strip {
    width: 100%;
    padding: 12px 16px;
    height: auto;
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
  }
}
