/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body {
  font-family: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0b0b0b;
  background: linear-gradient(135deg, #0f172a 0%, #0b1220 35%, #08202a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

/* subtle animated background blobs */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 10% 20%, rgba(255,110,180,0.06), transparent 8%),
              radial-gradient(circle at 90% 80%, rgba(88,175,255,0.05), transparent 12%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: floatBG 18s linear infinite;
  opacity: .9;
}
@keyframes floatBG {
  0% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(6%, -4%, 0) rotate(3deg); }
  100% { transform: translate3d(0,0,0) rotate(0deg); }
}

/* ---------- card (frosted glass) ---------- */
.container { width: 100%; max-width: 1100px; z-index: 1; display: flex; justify-content: center; align-items: center; }
.card {
  width: 100%;
  max-width: 1440px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 10px 30px rgba(2,6,23,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 30px;
  border: 1px solid rgba(255,255,255,0.06);
  transform: translateZ(0);
}

/* ---------- branding ---------- */
.branding { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.logo { width: 110px; height: auto; display: block; }
.title { font-size: clamp(20px, 2.3vw, 34px); font-weight: 700; letter-spacing: .2px; color: #fff; }
.tag { font-size: 14px; color: rgba(255,255,255,0.85); font-style: italic; }

/* ---------- coming soon (one line) ---------- */
.coming {
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin: 18px 0;
  letter-spacing: 8px;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: clamp(48px, 8vw, 160px);
  text-shadow: 0 6px 30px rgba(0,0,0,0.55), 0 2px 0 rgba(255,255,255,0.02);
  white-space: nowrap; /* forces single line */
  pointer-events: none;
}

/* --- Letter-by-letter continuous wave (NO BLUR) --- */
.letter {
  display: inline-block;
  /* single smooth wave loop */
  animation: waveMove 1.6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
  /* ensure crisp text (no blur) */
  filter: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes waveMove {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    transform: translateY(-12px) scale(1.05);
    opacity: 1;
  }
}

/* stagger delays for "COMING SOON" (11 characters) */
.letter:nth-child(1)  { animation-delay: 0s;   }
.letter:nth-child(2)  { animation-delay: .06s; }
.letter:nth-child(3)  { animation-delay: .12s; }
.letter:nth-child(4)  { animation-delay: .18s; }
.letter:nth-child(5)  { animation-delay: .24s; }
.letter:nth-child(6)  { animation-delay: .30s; }
.letter:nth-child(7)  { animation-delay: .36s; }
.letter:nth-child(8)  { animation-delay: .42s; }
.letter:nth-child(9)  { animation-delay: .48s; }
.letter:nth-child(10) { animation-delay: .54s; }
.letter:nth-child(11) { animation-delay: .60s; }

/* fall-back for longer/shorter strings — keep delays cyclic (optional) */
.letter:nth-child(12) { animation-delay: .66s; }
.letter:nth-child(13) { animation-delay: .72s; }

/* accessibility: stop motion if user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .letter { animation: none !important; transform: none !important; }
}

/* ---------- social + email (visible immediately) ---------- */
.social { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.social-text { font-size: 16px; color: rgba(255,255,255,0.92); font-weight: 600; }

.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
  padding: 8px;
}

/* icon buttons */
.link {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.02);
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.link:hover, .link:focus {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  color: #fff;
  outline: none;
}

/* Brand hover rules (keeps your existing brand colors) */
.link:nth-child(1):hover { background: #1877F2; color:#fff; border-color:#1877F2; }
.link:nth-child(2):hover { background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4); color:#fff; border-color:transparent; }
.link:nth-child(3):hover { background: #000; color:#fff; border-color:#000; }
.link:nth-child(4):hover { background: #0A66C2; color:#fff; border-color:#0A66C2; }
.link:nth-child(5):hover { background: #EA4C89; color:#fff; border-color:#EA4C89; }
.link:nth-child(6):hover { background: #1769FF; color:#fff; border-color:#1769FF; }

/* enhanced glow + scale on hover */
.social-links .link { will-change: transform, box-shadow; }
.social-links .link:hover,
.social-links .link:focus {
  transform: translateY(-4px) scale(1.08);
  transition: transform .18s cubic-bezier(.2,.9,.2,1), box-shadow .25s cubic-bezier(.2,.9,.2,1);
  z-index: 2;
}

/* brand glows */
.social-links .link:nth-child(1):hover { box-shadow: 0 10px 30px rgba(24,119,242,0.16), 0 4px 12px rgba(24,119,242,0.08); }
.social-links .link:nth-child(2):hover { box-shadow: 0 8px 20px rgba(245,133,41,0.12), 0 12px 34px rgba(221,42,123,0.10), 0 18px 60px rgba(81,91,212,0.06); }
.social-links .link:nth-child(3):hover { box-shadow: 0 10px 30px rgba(0,0,0,0.45), 0 4px 12px rgba(0,0,0,0.18); }
.social-links .link:nth-child(4):hover { box-shadow: 0 10px 30px rgba(10,102,194,0.16), 0 4px 12px rgba(10,102,194,0.08); }
.social-links .link:nth-child(5):hover { box-shadow: 0 10px 30px rgba(234,76,137,0.16), 0 4px 12px rgba(234,76,137,0.08); }
.social-links .link:nth-child(6):hover { box-shadow: 0 10px 30px rgba(23,105,255,0.16), 0 4px 12px rgba(23,105,255,0.08); }

/* email button */
.email-box { margin-top: 8px; }
.email-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.email-link:hover, .email-link:focus {
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  box-shadow: 0 10px 30px rgba(2,6,23,0.55);
  color: #fff;
  outline: none;
}

/* reduced motion global */
@media (prefers-reduced-motion: reduce) {
  .scale-pulse, .glow, body::before { animation: none !important; }
  .social-links .link, .social-links .link:hover, .social-links .link:focus { transition: none !important; transform: none !important; box-shadow: none !important; }
}

/* responsive */
@media (max-width: 640px) {
  .card { padding: 20px; border-radius: 14px; }
  .coming { letter-spacing: 6px; font-size: clamp(36px, 20vw, 64px); }
  .link { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
  .logo { width: 92px; }
}
/* Prevent horizontal scroll from very-large text + keep one-line where possible */
html, body { overflow-x: hidden; }

/* Extra aggressive shrink for very small screens (Option A) */
@media (max-width: 420px) {
  .coming {
    font-size: 30px;       /* smaller for tiny phones */
    letter-spacing: 2px;   /* reduce spacing so it fits */
    white-space: nowrap;   /* keep 1-line if possible */
  }
  .card { padding: 14px; gap: 16px; }
  .logo { width: 76px; }
}

/* Ultra-tiny screens or extreme zoom: allow wrap as fallback (Option B) */
@media (max-width: 320px) {
  .coming {
    white-space: normal;   /* allow wrap as last resort so layout doesn't break */
    font-size: 26px;
    letter-spacing: 1px;
    word-break: keep-all;  /* prefer not to break letters */
  }
}

/* Optional: make sure the coming block never forces horizontal scroll */
.coming {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
}

/* If you want to strictly avoid ANY clipping, you can scale it down to fit:
   (use only if you see overflow; this is safe and automatic) */
@media (max-width: 440px) {
  .coming {
    transform-origin: center top;
    transform: scale(0.98);
  }
}
