/* ============================================
   OPTIVANCE DIGITAL — COMING SOON
   Premium CSS Design System
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-1: #0a0f2e;
  --blue-2: #0d1545;
  --blue-3: #1a2a6c;
  --accent-blue: #4f9cf9;
  --accent-violet: #a855f7;
  --accent-cyan: #22d3ee;
  --accent-gold: #f59e0b;
  --white: #ffffff;
  --white-80: rgba(255,255,255,0.8);
  --white-60: rgba(255,255,255,0.6);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --card-bg: rgba(255,255,255,0.05);
  --card-border: rgba(255,255,255,0.12);
  --font-main: 'Outfit', sans-serif;
  --font-alt: 'Space Grotesk', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--blue-1);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Particle Canvas ---- */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Mesh Grid ---- */
.mesh-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 156, 249, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 156, 249, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* ---- Floating Orbs ---- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,156,249,0.22) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation-duration: 10s;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.18) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation-duration: 14s;
  animation-delay: -4s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(34,211,238,0.14) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-duration: 18s;
  animation-delay: -7s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-40px) scale(1.05); }
}

/* ---- Main Container ---- */
.container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  max-width: 900px;
  margin: 0 auto;
}

/* ---- Header / Logo ---- */
.header {
  width: 100%;
  padding: 32px 0 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeSlideDown 0.8s ease forwards 0.2s;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 44px; height: 44px;
  animation: logoSpin 8s linear infinite;
}

@keyframes logoSpin {
  0% { filter: drop-shadow(0 0 4px rgba(79,156,249,0.4)); }
  50% { filter: drop-shadow(0 0 12px rgba(168,85,247,0.6)); }
  100% { filter: drop-shadow(0 0 4px rgba(79,156,249,0.4)); }
}

.logo-text {
  font-family: var(--font-alt);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white-80);
}
.logo-text strong {
  font-weight: 700;
  color: var(--white);
}

/* ---- Hero Section ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 0 40px;
  gap: 0;
}

/* ---- Badge ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,156,249,0.12);
  border: 1px solid rgba(79,156,249,0.3);
  border-radius: 100px;
  padding: 7px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-blue);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeSlideDown 0.7s ease forwards 0.5s;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 8px var(--accent-blue);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ---- Headline ---- */
.headline {
  font-family: var(--font-main);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.7s;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-violet) 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---- Subheadline ---- */
.subheadline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--white-60);
  max-width: 560px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

/* ---- Countdown ---- */
.countdown-section {
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 1.1s;
}

.countdown-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-60);
  margin-bottom: 16px;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 12px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px 24px;
  backdrop-filter: blur(20px);
  min-width: 88px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.countdown-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,156,249,0.5), transparent);
}

.countdown-item:hover {
  transform: translateY(-3px);
  border-color: rgba(79,156,249,0.4);
}

.cd-number {
  font-family: var(--font-alt);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--white), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.cd-unit {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-60);
}

.countdown-sep {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-blue);
  opacity: 0.6;
  margin-top: -20px;
  animation: blink 1s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.1; }
}

/* ---- Notify Form ---- */
.notify-form {
  width: 100%;
  max-width: 500px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 1.3s;
}

.input-group {
  display: flex;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 6px;
  backdrop-filter: blur(20px);
  box-shadow: 0 0 30px rgba(79,156,249,0.05);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group:focus-within {
  border-color: rgba(79,156,249,0.5);
  box-shadow: 0 0 30px rgba(79,156,249,0.15);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--white);
}

.input-group input::placeholder {
  color: rgba(255,255,255,0.35);
}

.input-group button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(79,156,249,0.3);
}

.input-group button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(79,156,249,0.45);
}

.input-group button:active { transform: translateY(0); }

.btn-arrow { width: 18px; height: 18px; }

.form-note {
  font-size: 0.75rem;
  color: var(--white-60);
  text-align: center;
  margin-top: 12px;
}

/* Success message */
.success-msg {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 0.92rem;
  color: #4ade80;
  text-align: center;
}

.success-msg svg { width: 22px; height: 22px; flex-shrink: 0; }

.success-msg.visible { display: flex; }

/* ---- Services Preview ---- */
.services-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 1.5s;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--white-80);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: default;
}

.service-chip:hover {
  background: rgba(79,156,249,0.12);
  border-color: rgba(79,156,249,0.4);
  color: var(--white);
  transform: translateY(-2px);
}

.service-chip svg {
  width: 16px; height: 16px;
  stroke: var(--accent-blue);
}

/* ---- Footer ---- */
.footer {
  width: 100%;
  padding: 24px 0 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards 1.7s;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--white-60);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: rgba(79,156,249,0.15);
  border-color: rgba(79,156,249,0.4);
  color: var(--accent-blue);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79,156,249,0.2);
}

.social-link svg {
  width: 17px; height: 17px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--white-60);
  text-align: center;
  line-height: 1.8;
}

.footer-copy strong { color: var(--white-80); }

.footer-domain {
  font-size: 0.75rem;
  color: rgba(79,156,249,0.7);
  font-family: var(--font-alt);
}

/* ---- Keyframes ---- */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* ---- Scroll Number Animation ---- */
.cd-number.flip {
  animation: flipNum 0.35s ease;
}

@keyframes flipNum {
  0% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(-8px); opacity: 0; }
  60% { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .header { padding: 24px 0 0; }

  .headline { font-size: 2.4rem; }

  .countdown { gap: 8px; }

  .countdown-item {
    min-width: 70px;
    padding: 14px 12px;
  }

  .cd-number { font-size: 1.9rem; }

  .input-group { flex-direction: column; }

  .input-group button { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .countdown { gap: 5px; }
  .countdown-item { min-width: 60px; padding: 12px 8px; }
  .cd-number { font-size: 1.6rem; }
  .countdown-sep { font-size: 1.5rem; }
}
