/* =============================================================
   MIRA CLEAN – Premium Coming Soon
   ============================================================= */

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

:root {
  --bg:         #06080f;
  --blue:       #5b8def;
  --blue-dark:  #3a6fd8;
  --violet:     #8b6cf7;
  --white:      #eef1ff;
  --muted:      rgba(238, 241, 255, 0.42);
  --border:     rgba(238, 241, 255, 0.07);
  --glow-blue:  rgba(91, 141, 239, 0.22);
  --glow-violet:rgba(139, 108, 247, 0.16);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem 2rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Dot grid ──────────────────────────────────────────────── */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  /* Fade out at edges so grid doesn't look cut off */
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Top beam ──────────────────────────────────────────────── */

.top-beam {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  max-width: 600px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(91, 141, 239, 0.7) 30%,
    rgba(160, 120, 255, 0.65) 50%,
    rgba(91, 141, 239, 0.7) 70%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

.top-beam::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: radial-gradient(
    ellipse 80% 100% at 50% 0%,
    rgba(91, 141, 239, 0.12) 0%,
    transparent 70%
  );
}

/* ── Aurora orb background ─────────────────────────────────── */

.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.orb-1 {
  width: min(75vw, 700px);
  height: min(75vw, 700px);
  background: radial-gradient(circle, rgba(91, 141, 239, 0.26) 0%, transparent 65%);
  top: -25%;
  left: -20%;
  animation: float1 24s ease-in-out infinite;
}

.orb-2 {
  width: min(65vw, 600px);
  height: min(65vw, 600px);
  background: radial-gradient(circle, rgba(139, 108, 247, 0.22) 0%, transparent 65%);
  bottom: -20%;
  right: -18%;
  animation: float2 30s ease-in-out infinite;
}

.orb-3 {
  width: min(40vw, 380px);
  height: min(40vw, 380px);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.13) 0%, transparent 65%);
  top: 45%;
  left: 55%;
  animation: float3 38s ease-in-out infinite;
}

/* Warm teal accent orb */
.orb-4 {
  width: min(35vw, 300px);
  height: min(35vw, 300px);
  background: radial-gradient(circle, rgba(20, 210, 170, 0.1) 0%, transparent 65%);
  top: 5%;
  right: 5%;
  animation: float1 32s ease-in-out infinite reverse;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(40px, 35px) scale(1.04); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-35px, -28px) scale(1.03); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-28px, 22px); }
  66%       { transform: translate(22px, -18px); }
}

/* ── Edge vignette ─────────────────────────────────────────── */

.vignette {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, #06080f 0%, transparent 16%),
    linear-gradient(to top,    #06080f 0%, transparent 16%);
}

/* ── Film grain ────────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain 0.4s steps(3) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 3%); }
  40%  { transform: translate(3%, -2%); }
  60%  { transform: translate(-1%, -3%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(-3%, 2%); }
}

/* ── Main wrapper ──────────────────────────────────────────── */

.wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
}

/* Staggered fade-up entrance */
.wrapper > *,
footer {
  animation: fadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.logo-wrap  { animation-delay: 0.05s; }
.badge      { animation-delay: 0.15s; }
h1          { animation-delay: 0.25s; }
.rule       { animation-delay: 0.35s; }
.sub        { animation-delay: 0.4s;  }
.buttons    { animation-delay: 0.5s;  }
footer      { animation-delay: 0.6s;  }

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

/* ── Logo ──────────────────────────────────────────────────── */

.logo-wrap {
  position: relative;
  width: clamp(112px, 26vw, 172px);
  height: clamp(112px, 26vw, 172px);
}

/* Animated glow ring */
.logo-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: clamp(23px, 6vw, 31px);
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    rgba(91, 141, 239, 0.6) 25%,
    rgba(139, 108, 247, 0.5) 50%,
    transparent 75%
  );
  animation: spin 4s linear infinite;
  z-index: -1;
  filter: blur(2px);
}

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

.logo-wrap::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: clamp(19px, 5vw, 27px);
  background: var(--bg);
  z-index: -1;
}

.logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(20px, 5.5vw, 28px);
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

/* ── Status badge ──────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(91, 141, 239, 0.08);
  border: 1px solid rgba(91, 141, 239, 0.22);
  border-radius: 999px;
  padding: 0.38rem 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 200, 255, 0.85);
  backdrop-filter: blur(8px);
}

.dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
  animation: pulse 2.5s ease-in-out infinite;
}

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

/* ── Headline ──────────────────────────────────────────────── */

h1 {
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.gradient-text {
  background: linear-gradient(135deg, #aac8ff 0%, #5b8def 35%, #8b6cf7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Vertical rule ─────────────────────────────────────────── */

.rule {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(238,241,255,0.15), transparent);
}

/* ── Subtext ───────────────────────────────────────────────── */

.sub {
  font-size: 0.93rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  line-height: 1.75;
  max-width: 320px;
}

/* ── Buttons ───────────────────────────────────────────────── */

.buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
}

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  border: 1px solid transparent;
  width: 100%;
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.22s ease;
}

/* Shine sweep */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.14),
    transparent
  );
  transform: skewX(-15deg);
  transition: left 0.45s ease;
}

.btn:hover::before {
  left: 160%;
}

/* Top inner highlight */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  border-radius: 14px 14px 0 0;
}

.btn:hover {
  transform: translateY(-2px) scale(1.015);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.1s;
}

.btn-phone {
  background: linear-gradient(145deg, #3a6fd8 0%, #5b8def 100%);
  box-shadow:
    0 4px 24px rgba(91, 141, 239, 0.38),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

.btn-phone:hover {
  box-shadow:
    0 8px 36px rgba(91, 141, 239, 0.55),
    0 1px 0 rgba(255,255,255,0.08) inset;
}

.btn-insta {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.btn-insta:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.btn svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  opacity: 0.88;
}

/* ── Footer ────────────────────────────────────────────────── */

footer {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(238, 241, 255, 0.55);
}

footer a {
  color: rgba(238, 241, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: rgba(238, 241, 255, 0.9);
}

.sep {
  opacity: 0.3;
}

/* ── Reduced motion (accessibility) ───────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .orb,
  .grain,
  .logo-wrap::before,
  .dot {
    animation: none;
  }

  .wrapper > *,
  footer {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .btn {
    transition: box-shadow 0.2s ease;
  }

  .btn::before {
    display: none;
  }

  .btn:hover,
  .btn:active {
    transform: none;
  }
}

/* ── Mobile ────────────────────────────────────────────────── */

@media (max-width: 480px) {
  body {
    padding: 1.75rem 1.25rem 1.5rem;
  }

  /* Stronger vignette on mobile so orb edges are fully hidden */
  .vignette {
    background:
      linear-gradient(to bottom, #06080f 0%, transparent 22%),
      linear-gradient(to top,    #06080f 0%, transparent 22%);
  }

  /* Wider beam on narrow screens, less harsh */
  .top-beam {
    width: 90%;
  }

  footer {
    margin-top: 1.25rem;
    font-size: 0.73rem;
  }
}
