/* ==============================================
   QLYK — COMING SOON | STYLE SHEET
   ============================================== */

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --bg-primary: #050510;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #f0f0f5;
  --text-secondary: rgba(240, 240, 245, 0.55);
  --accent-blue: #00c8ff;
  --accent-purple: #7b2fff;
  --accent-cyan: #00e5ff;
  --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  --gradient-accent-h: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --gap: clamp(1rem, 3vw, 2rem);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* ============================== */
/* LOADER                        */
/* ============================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  gap: 1.5rem;
  transition: opacity 0.6s var(--ease-out), visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
}

.loader__ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent-blue);
  border-right-color: var(--accent-purple);
  animation: spin 1s linear infinite;
}

.loader__text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* ============================== */
/* PARTICLE CANVAS                */
/* ============================== */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ============================== */
/* BACKGROUND GLOW ORBS           */
/* ============================== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  animation: float-orb 18s ease-in-out infinite alternate;
}

.orb--blue {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  top: -10%;
  right: -8%;
  animation-delay: 0s;
}

.orb--purple {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  bottom: -15%;
  left: -10%;
  animation-delay: -6s;
}

.orb--cyan {
  width: 350px;
  height: 350px;
  background: var(--accent-cyan);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  animation-delay: -12s;
}

@keyframes float-orb {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -40px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ============================== */
/* PAGE LAYOUT                    */
/* ============================== */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
  gap: var(--gap);
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out) 0.2s;
}

.page.visible {
  opacity: 1;
}

/* ---- Fade-up animation helper ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out) var(--delay, 0s),
              transform 0.8s var(--ease-out) var(--delay, 0s);
}

.page.visible .fade-up {
  opacity: 1;
  transform: translateY(0);
}

/* ============================== */
/* LOGO & TAGLINE                 */
/* ============================== */
.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
  position: relative;
}

.logo__q {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(0, 200, 255, 0.35));
}

.logo__rest {
  color: var(--text-primary);
}

.tagline {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* ============================== */
/* HERO SECTION                   */
/* ============================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.rocket {
  display: inline-block;
  animation: bounce-rocket 2s ease-in-out infinite;
}

@keyframes bounce-rocket {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.hero__sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
}

/* ============================== */
/* COUNTDOWN                      */
/* ============================== */
.countdown {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.2rem);
  flex-wrap: wrap;
  justify-content: center;
}

.countdown__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  min-width: clamp(60px, 12vw, 90px);
  padding: clamp(0.8rem, 2vw, 1.2rem) clamp(0.6rem, 2vw, 1.4rem);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s;
}

.countdown__card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(0, 200, 255, 0.2);
}

.countdown__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s var(--ease-spring);
}

/* Tick animation class */
.countdown__value.tick {
  animation: tick-pop 0.4s var(--ease-spring);
}

@keyframes tick-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.countdown__label {
  font-size: clamp(0.6rem, 1.4vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  font-weight: 500;
}

.countdown__separator {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-secondary);
  opacity: 0.4;
  align-self: flex-start;
  padding-top: clamp(0.8rem, 2vw, 1.2rem);
  animation: blink-colon 1s step-end infinite;
}

@keyframes blink-colon {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0; }
}

/* ============================== */
/* EMAIL SUBSCRIBE                */
/* ============================== */
.subscribe {
  width: 100%;
  max-width: 500px;
}

.subscribe__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.subscribe__input-wrap {
  display: flex;
  align-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 5px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.35s, box-shadow 0.35s;
}

.subscribe__input-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.12), 0 0 30px rgba(0, 200, 255, 0.06);
}

.subscribe__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
}

.subscribe__input::placeholder {
  color: var(--text-secondary);
}

.subscribe__btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border: none;
  border-radius: 10px;
  background: var(--gradient-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring),
              box-shadow 0.35s;
}

.subscribe__btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent-h);
  opacity: 0;
  transition: opacity 0.35s;
  border-radius: inherit;
}

.subscribe__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.3), 0 0 60px rgba(123, 47, 255, 0.15);
}

.subscribe__btn:hover::before {
  opacity: 1;
}

.subscribe__btn:active {
  transform: scale(0.97);
}

.subscribe__btn-text,
.subscribe__btn-icon {
  position: relative;
  z-index: 1;
}

.subscribe__btn-icon {
  transition: transform 0.3s var(--ease-spring);
}

.subscribe__btn:hover .subscribe__btn-icon {
  transform: translateX(3px);
}

.subscribe__msg {
  font-size: 0.82rem;
  min-height: 1.2em;
  color: var(--accent-cyan);
  font-weight: 500;
  transition: opacity 0.3s;
}

/* ============================== */
/* SOCIAL LINKS                   */
/* ============================== */
.socials {
  display: flex;
  gap: 1rem;
}

.socials__link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.socials__link svg {
  width: 20px;
  height: 20px;
}

.socials__link:hover {
  color: var(--accent-blue);
  border-color: rgba(0, 200, 255, 0.3);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 0 16px rgba(0, 200, 255, 0.15);
}

/* ============================== */
/* FOOTER                         */
/* ============================== */
.footer {
  padding-top: 1rem;
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

/* ============================== */
/* RESPONSIVE                     */
/* ============================== */
@media (max-width: 480px) {
  .countdown__separator {
    display: none;
  }

  .countdown {
    gap: 0.6rem;
  }

  .subscribe__input-wrap {
    flex-direction: column;
    padding: 6px;
  }

  .subscribe__input {
    width: 100%;
    text-align: center;
  }

  .subscribe__btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem;
    border-radius: 10px;
  }
}
