/* ═══════════════════════════════════════════════════════════════
   Zia IT Training — Coming Soon
   Pure CSS — no framework, no library
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom properties ──────────────────────────────────────── */
:root {
  --orange:      #FF9E1B;
  --ink:         #231F20;
  --blue-kicker: #0A52C2;
  --blue-btn:    #0A53C0;
  --panel:       #F8F5F1;
  --border:      #E5E0DB;
  --muted:       rgba(35, 31, 32, 0.35);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans:   'Inter', sans-serif;
  --font-display:'Outfit', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: #ffffff;
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; }
img { display: block; }
::selection { background: rgba(255, 158, 27, 0.2); }

/* ── Page wrapper ───────────────────────────────────────────── */
.page {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   BACKGROUND LAYERS
   ═══════════════════════════════════════════════════════════════ */

/* Dot-matrix */
.dot-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(35,31,32,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  animation: dotDrift 14s ease-in-out infinite;
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

/* Cursor glows */
.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: 0;
  left: 0;
  will-change: transform;
}
.glow-orange {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255,158,27,0.13) 0%, transparent 65%);
  transition: transform 0.12s ease-out;
  transform: translate(-1000px, -1000px);
}
.glow-blue {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(9,82,194,0.08) 0%, transparent 65%);
  transition: transform 0.28s ease-out;
  transform: translate(-1000px, -1000px);
}

/* ═══════════════════════════════════════════════════════════════
   FUSE ANIMATION
   ═══════════════════════════════════════════════════════════════ */
.fuse-line {
  position: fixed;
  top: 50%;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 50;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, #FF9E1B 80%, #fff 100%);
  box-shadow: 0 0 8px #FF9E1B, 0 0 18px rgba(255,158,27,0.35);
  display: none;
}
.fuse-line.playing {
  display: block;
  animation: fuseSlide 0.8s linear forwards;
}

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  padding: 3rem 1rem;
}

.stack {
  max-width: 56rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .stack { gap: 2.5rem; }
}

/* ── Parallax wrappers (JS sets transform) ──────────────────── */
.plx {
  width: 100%;
  display: flex;
  justify-content: center;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

/* ── Fade-in items ──────────────────────────────────────────── */
.item {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  width: 100%;
}

/* stagger delays on ignition */
body.ignited .item-logo      { opacity: 1; transition-delay: 0s; }
body.ignited .item-text      { opacity: 1; transition-delay: 0.12s; }
body.ignited .item-countdown { opacity: 1; transition-delay: 0.24s; }
body.ignited .item-cta       { opacity: 1; transition-delay: 0.36s; }
body.ignited .ticker         { opacity: 1; transition-delay: 0.6s; }
body.ignited .float-wa       { opacity: 1; transition-delay: 0.9s; }

/* logo appears one step earlier (at 800 ms, on logo-visible) */
body.logo-visible .item-logo { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   LOGO
   ═══════════════════════════════════════════════════════════════ */
.item-logo {
  display: flex;
  justify-content: center;
}
.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: filter 0.7s ease-out;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
body.ignited .logo-img {
  filter: drop-shadow(0 0 20px rgba(255,158,27,0.35));
}
@media (min-width: 768px) {
  .logo-img { height: 96px; }
}

/* ═══════════════════════════════════════════════════════════════
   KICKER + HEADLINE
   ═══════════════════════════════════════════════════════════════ */
.item-text { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
@media (min-width: 768px) { .item-text { gap: 1rem; } }

.kicker {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-kicker);
  line-height: 1.3;
}

.headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (min-width: 640px)  { .headline { font-size: 56px; } }
@media (min-width: 768px)  { .headline { font-size: 80px; } }
@media (min-width: 1024px) { .headline { font-size: 96px; } }

/* ═══════════════════════════════════════════════════════════════
   COUNTDOWN TIMER
   ═══════════════════════════════════════════════════════════════ */
.item-countdown { padding-top: 0.5rem; }
@media (min-width: 768px) { .item-countdown { padding-top: 1rem; } }

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}
@media (min-width: 768px) { .countdown { gap: 1.5rem; } }

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) { .cd-unit { gap: 0.75rem; } }

.cd-panel {
  position: relative;
  height: 64px;
  width: 56px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(35,31,32,0.06);
}
@media (min-width: 768px) {
  .cd-panel { height: 110px; width: 100px; }
}

.cd-hairline {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 1;
  pointer-events: none;
}

.cd-val {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 30px;
  color: var(--orange);
  position: relative;
  z-index: 2;
  transition: opacity 0.2s ease;
}
@media (min-width: 768px) { .cd-val { font-size: 64px; } }

.cd-colon {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 24px;
  color: rgba(255,158,27,0.3);
  margin-top: 12px;
  user-select: none;
  display: none;
}
@media (min-width: 640px)  { .cd-colon { display: block; } }
@media (min-width: 768px)  { .cd-colon { font-size: 48px; margin-top: 24px; } }

.cd-lbl {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(35,31,32,0.4);
}
@media (min-width: 768px) { .cd-lbl { font-size: 12px; } }

/* ═══════════════════════════════════════════════════════════════
   CTA ROW
   ═══════════════════════════════════════════════════════════════ */
.item-cta {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .item-cta { padding-top: 3rem; gap: 1.5rem; }
}

/* Register button */
.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  background-color: var(--blue-btn);
  border: 2px solid var(--blue-btn);
  color: var(--panel);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 14px rgba(10,83,192,0.22);
  cursor: pointer;
  white-space: nowrap;
}
.btn-register:hover {
  background-color: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}
.btn-register:hover *{
  color: var(--ink);
}
.btn-register svg {
  color: var(--panel);
}
.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--orange);
}

/* Social buttons */
.social-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 768px) { .social-row { gap: 1rem; } }

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #ffffff;
  color: rgba(35,31,32,0.5);
  transition: border-color 0.3s ease, background-color 0.3s ease,
              color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover {
  border-color: var(--orange);
  background-color: rgba(255,158,27,0.05);
  color: var(--orange);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER TICKER
   ═══════════════════════════════════════════════════════════════ */
.ticker {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 1rem 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.ticker-track {
  display: flex;
  white-space: nowrap;
}

.ticker-row {
  display: inline-flex;
  align-items: center;
  animation: marquee 40s linear infinite;
  min-width: 100%;
  flex-shrink: 0;
}

.course {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 1rem;
  white-space: nowrap;
}

/* Animated diamond separator */
.diamond {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: #0A52C2;
  transform: rotate(45deg);
  flex-shrink: 0;
  align-self: center;
  margin: 0 0.25rem;
  animation: diamondPulse 3s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
   ═══════════════════════════════════════════════════════════════ */
.float-wa {
  position: fixed;
  bottom: 64px; /* 40px higher than a standard 24px bottom offset */
  right: 1.5rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--orange);
  border-radius: 9999px;
  color: #000000;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.3s ease;
  animation: floatPulse 2.6s ease-out infinite;
  will-change: box-shadow;
}

.float-wa span  { color: #000000; }

.float-wa:hover { 
  transform: translateY(-2px); 
  background: var(--blue-kicker);
  box-shadow: 0 4px 14px rgba(10, 83, 192, 0.22);
}
.float-wa:hover *{
  color:var(--panel);
  fill:var(--panel);
}

.wa-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #000000;
}

/* ═══════════════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════════════ */
@keyframes dotDrift {
  0%, 100% { background-position: 0 0; }
  33%       { background-position: 3px 2px; }
  66%       { background-position: -2px 4px; }
}

@keyframes fuseSlide {
  from { width: 0; }
  to   { width: 50%; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

@keyframes diamondPulse {
  0%, 100% { opacity: 0.65; box-shadow: 0 0 4px rgba(10,82,194,0.35); }
  50%       { opacity: 1;    box-shadow: 0 0 9px rgba(10,82,194,0.7); }
}

@keyframes floatPulse {
  0%   { box-shadow: 0 0 0 0    rgba(255,158,27,0.55), 0 6px 20px rgba(0,0,0,0.10); }
  70%  { box-shadow: 0 0 0 12px rgba(255,158,27,0),    0 6px 20px rgba(0,0,0,0.10); }
  100% { box-shadow: 0 0 0 0    rgba(255,158,27,0),    0 6px 20px rgba(0,0,0,0.10); }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .ticker-row   { animation: none; }
  .dot-bg       { animation: none; opacity: 0.5; }
  .diamond      { animation: none; opacity: 0.8; }
  .float-wa     { animation: none; box-shadow: 0 6px 20px rgba(0,0,0,0.10); }
  .glow-orange,
  .glow-blue    { display: none; }
  * { transition-duration: 0.01ms !important; }
}
