/* TND Coming Soon Pro - Frontend CSS */
@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --tnd-bg: #0a0a0f;
  --tnd-accent: #f5a623;
  --tnd-text: #ffffff;
  --tnd-card-bg: rgba(255,255,255,0.06);
  --tnd-border: rgba(255,255,255,0.1);
  --tnd-muted: rgba(255,255,255,0.55);
}

/* ---- FULL PAGE ---- */
.tnd-cs-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  background: var(--tnd-bg);
}

/* ---- ELEMENTOR WIDGET ---- */
.tnd-cs-wrap {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  background: var(--tnd-bg);
}

.tnd-cs-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1;
}

/* ---- PARTICLES ---- */
.tnd-cs-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.tnd-particle {
  position: absolute;
  border-radius: 50%;
  animation: tnd-float linear infinite;
  opacity: 0;
}
@keyframes tnd-float {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ---- NOISE GRAIN ---- */
.tnd-cs-page::before,
.tnd-cs-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 2;
  opacity: 0.35;
}

/* ---- GLOW ORBS ---- */
.tnd-cs-page::after,
.tnd-cs-wrap::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--tnd-accent, #f5a623) 0%, transparent 70%);
  opacity: 0.06;
  top: -200px;
  right: -200px;
  pointer-events: none;
  z-index: 0;
  animation: tnd-pulse 6s ease-in-out infinite;
}
@keyframes tnd-pulse {
  0%, 100% { transform: scale(1); opacity: 0.06; }
  50% { transform: scale(1.1); opacity: 0.1; }
}

/* ---- CONTENT ---- */
.tnd-cs-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 60px 40px;
  max-width: 900px;
  width: 100%;
  animation: tnd-fade-up 0.8s ease forwards;
}
@keyframes tnd-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- LOGO ---- */
.tnd-cs-logo {
  margin-bottom: 40px;
  animation: tnd-fade-up 0.6s ease forwards;
}
.tnd-cs-logo img {
  max-height: 70px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(255,255,255,0.15));
}

/* ---- BADGE ---- */
.tnd-cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--tnd-border);
  border-radius: 100px;
  color: var(--tnd-accent, #f5a623);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(245,166,35,0.08);
  backdrop-filter: blur(10px);
  margin-bottom: 28px;
  animation: tnd-fade-up 0.5s ease forwards;
  animation-delay: 0.1s;
  opacity: 0;
}

/* ---- HEADLINE ---- */
.tnd-cs-headline {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--tnd-text, #fff);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  animation: tnd-fade-up 0.6s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}
.tnd-cs-headline span {
  color: var(--tnd-accent, #f5a623);
  position: relative;
  display: inline-block;
}
.tnd-cs-headline span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--tnd-accent, #f5a623);
  border-radius: 2px;
  opacity: 0.5;
}

/* ---- SUBHEADLINE ---- */
.tnd-cs-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--tnd-muted);
  line-height: 1.7;
  margin: 0 auto 50px;
  max-width: 540px;
  font-weight: 300;
  animation: tnd-fade-up 0.6s ease forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

/* ---- COUNTDOWN ---- */
.tnd-cs-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: tnd-fade-up 0.6s ease forwards;
  animation-delay: 0.4s;
  opacity: 0;
}
.tnd-count-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--tnd-card-bg);
  border: 1px solid var(--tnd-border);
  border-radius: 20px;
  padding: 28px 32px 22px;
  min-width: 120px;
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.tnd-count-block:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,0.4);
}
.tnd-count-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tnd-accent, #f5a623), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.tnd-count-block:hover::before {
  opacity: 1;
}
.tnd-count-number {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--tnd-accent, #f5a623);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: transform 0.2s ease;
  display: block;
  min-width: 2ch;
  text-align: center;
}
.tnd-count-number.tnd-flip {
  animation: tnd-number-flip 0.3s ease;
}
@keyframes tnd-number-flip {
  0%   { transform: translateY(-10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.tnd-count-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tnd-muted);
  margin-top: 8px;
}
.tnd-count-sep {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--tnd-accent, #f5a623);
  opacity: 0.4;
  line-height: 1;
  margin-top: -20px;
  animation: tnd-blink 1s ease-in-out infinite;
}
@keyframes tnd-blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.1; }
}
.tnd-count-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  margin-top: 16px;
  overflow: hidden;
}
.tnd-progress-fill {
  height: 100%;
  background: var(--tnd-accent, #f5a623);
  border-radius: 2px;
  transition: width 1s linear;
}

/* ---- SUBSCRIBE ---- */
.tnd-cs-subscribe {
  animation: tnd-fade-up 0.6s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}
.tnd-subscribe-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tnd-cs-input {
  padding: 16px 24px;
  border-radius: 50px;
  border: 1px solid var(--tnd-border);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  width: 300px;
  backdrop-filter: blur(10px);
  outline: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.tnd-cs-input::placeholder { color: rgba(255,255,255,0.35); }
.tnd-cs-input:focus {
  border-color: var(--tnd-accent, #f5a623);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.15);
}
.tnd-cs-btn {
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  background: var(--tnd-accent, #f5a623);
  color: #0a0a0f;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}
.tnd-cs-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.2);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}
.tnd-cs-btn:hover::before { transform: translateX(0); }
.tnd-cs-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,166,35,0.4);
}
.tnd-cs-btn:active { transform: translateY(0); }
.tnd-subscribe-msg {
  font-size: 13px;
  color: var(--tnd-accent, #f5a623);
  min-height: 20px;
  margin: 0;
}

/* ---- SOCIALS ---- */
.tnd-cs-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  animation: tnd-fade-up 0.6s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}
.tnd-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--tnd-border);
  background: rgba(255,255,255,0.06);
  color: var(--tnd-muted);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
}
.tnd-social-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}
.tnd-social-link:hover {
  border-color: var(--tnd-accent, #f5a623);
  color: var(--tnd-accent, #f5a623);
  background: rgba(245,166,35,0.1);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.tnd-social-link:hover svg { transform: scale(1.1); }

/* ---- LIVE TEXT ---- */
.tnd-live-text {
  font-size: clamp(2rem, 5vw, 4rem);
  animation: tnd-bounce 1s ease;
}
@keyframes tnd-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .tnd-cs-content { padding: 40px 24px; }
  .tnd-count-block { min-width: 80px; padding: 20px 18px 16px; }
  .tnd-count-number { font-size: 2.5rem; }
  .tnd-count-sep { font-size: 2rem; }
  .tnd-cs-input { width: 100%; }
  .tnd-subscribe-form { flex-direction: column; align-items: stretch; }
  .tnd-cs-countdown { gap: 10px; }
}
@media (max-width: 480px) {
  .tnd-count-block { min-width: 70px; padding: 16px 14px 14px; }
  .tnd-count-number { font-size: 2rem; }
  .tnd-count-sep { display: none; }
  .tnd-cs-countdown { gap: 8px; }
}
