/* =========================================================
   Marqlume — Coming Soon
   Palette taken from the logo: deep navy (app icon),
   cyan → electric blue → violet ribbon, four-point star.
   ========================================================= */

:root {
  --ink: #040a24;
  --navy: #010a7b;
  --cyan: #1ec8f5;
  --sky: #0097f5;
  --blue: #1636e8;
  --indigo: #340cec;
  --violet: #a855f7;
  --purple: #7c3aed;
  --lavender: #d8c7ff;

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.58);
  --line: rgba(216, 199, 255, 0.12);

  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1290px;
  color-scheme: dark;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---------- Ambiance ---------- */

.ambiance {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.aurora {
  position: absolute;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
  will-change: transform;
}

.aurora--cyan {
  top: -18%;
  left: -12%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, var(--sky) 0%, transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.aurora--blue {
  top: 22%;
  left: 28%;
  width: 48vw;
  height: 48vw;
  background: radial-gradient(circle, var(--blue) 0%, transparent 65%);
  opacity: 0.5;
  animation: drift-b 26s ease-in-out infinite alternate;
}

.aurora--violet {
  right: -15%;
  bottom: -25%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--purple) 0%, transparent 65%);
  animation: drift-c 30s ease-in-out infinite alternate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(216, 199, 255, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

.star {
  position: absolute;
  width: var(--size, 14px);
  height: var(--size, 14px);
  color: #fff;
  filter: drop-shadow(0 0 6px rgba(30, 200, 245, 0.9)) drop-shadow(0 0 14px rgba(168, 85, 247, 0.6));
  animation: twinkle 4.5s ease-in-out infinite;
}

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
}

.logo {
  display: block;
  width: auto;
  height: 32px;
  filter: drop-shadow(0 0 28px rgba(22, 54, 232, 0.55)) drop-shadow(0 0 60px rgba(168, 85, 247, 0.25));
}

.header-link {
  display: none;
  font-size: 0.875rem;
  color: var(--text-3);
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--text);
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 56px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cyan);
  animation: ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

h1 {
  max-width: 980px;
  margin-top: 28px;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(100deg, var(--cyan) 0%, #3b82f6 35%, #6d5cff 65%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 680px;
  margin-top: 24px;
  font-size: 1rem;
  color: var(--text-2);
}

.free {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    linear-gradient(100deg, var(--cyan), var(--blue) 50%, var(--violet)) border-box;
  box-shadow: 0 0 32px rgba(22, 54, 232, 0.35);
  font-size: 0.875rem;
  color: var(--text);
}

.free svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.free strong {
  font-weight: 600;
}

.muted {
  color: rgba(255, 255, 255, 0.75);
}

.audiences {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.audiences li {
  padding: 4px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Features ---------- */

.features {
  padding-bottom: 64px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 199, 255, 0.25), transparent);
}

.features .divider {
  margin-bottom: 48px;
}

.features h2 {
  margin-bottom: 32px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-3);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;
}

.card:hover {
  border-color: rgba(30, 200, 245, 0.4);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  transform: translateY(-3px);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(216, 199, 255, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 200, 245, 0.22), rgba(52, 12, 236, 0.28) 55%, rgba(168, 85, 247, 0.3));
  color: #e0f2fe;
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-top: 20px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.card p {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--text-3);
}

/* ---------- Footer ---------- */

.footer {
  padding-bottom: 32px;
}

.footer .divider {
  margin-bottom: 24px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-3);
}

.footer-row a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
}

.footer-row a:hover {
  color: var(--text);
}

/* ---------- Entrance animation ---------- */

.rise {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ---------- Responsive ---------- */

@media (min-width: 640px) {
  h1 {
    font-size: 58px;
  }

  .header-link {
    display: inline;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .header {
    padding-top: 32px;
  }

  .logo {
    height: 40px;
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .lead {
    font-size: 1.125rem;
  }

  .free {
    font-size: 1rem;
  }

  .features {
    padding-bottom: 96px;
  }

  .features .divider {
    margin-bottom: 64px;
  }

  .features h2 {
    margin-bottom: 40px;
  }

  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 80px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Keyframes ---------- */

@keyframes drift-a {
  to {
    transform: translate(8vw, 6vh) scale(1.1);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-10vw, -4vh) scale(0.9);
  }
}

@keyframes drift-c {
  to {
    transform: translate(-6vw, -8vh) scale(1.08);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.75) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(45deg);
  }
}

@keyframes ping {
  75%,
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora,
  .star,
  .pulse::after,
  .rise {
    animation: none;
  }

  .card,
  .card:hover {
    transition: none;
    transform: none;
  }
}
