/* ============================================================
   glahh.com — coming soon landing
   Plain CSS, no build step. Theme via the custom properties below.
   ============================================================ */

:root {
  /* Brand accent (violet). Change these two to re-theme the whole site. */
  --accent: #8b5cf6;
  --accent-2: #a78bfa;

  /* Surface */
  --bg: #0a0a0f;
  --bg-soft: #101019;

  /* Text */
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-faint: #6b6b78;

  /* Layout */
  --maxw: 40rem;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 3rem);

  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);

  /* Vertical rhythm anchor for the centred hero */
  text-align: center;
  overflow-x: hidden;
}

/* ---------- Decorative background ---------- */

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

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

.orb--1 {
  top: -10%;
  left: 50%;
  width: min(70vw, 40rem);
  height: min(70vw, 40rem);
  transform: translateX(-50%);
  background: radial-gradient(circle at center, var(--accent), transparent 68%);
  animation: drift-1 18s ease-in-out infinite alternate;
}

.orb--2 {
  bottom: -20%;
  left: 15%;
  width: min(60vw, 32rem);
  height: min(60vw, 32rem);
  background: radial-gradient(circle at center, var(--accent-2), transparent 70%);
  opacity: 0.32;
  animation: drift-2 22s ease-in-out infinite alternate;
}

/* Faint dot grid for texture */
.grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 1px
  );
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

@keyframes drift-1 {
  from { transform: translateX(-50%) translateY(0) scale(1); }
  to   { transform: translateX(-50%) translateY(4%) scale(1.08); }
}

@keyframes drift-2 {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-6%) scale(1.12); }
}

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

.hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: var(--maxw);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.badge__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 0 var(--accent-2);
  animation: pulse 2.4s ease-out infinite;
}

.wordmark {
  margin: 0;
  font-size: clamp(3.5rem, 15vw, 7.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 30%, var(--accent-2) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 40px rgba(139, 92, 246, 0.35));
}

.tagline {
  margin: 0.2rem 0 0;
  font-size: clamp(1.35rem, 4.5vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.subtext {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
}

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

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  font-size: 0.9rem;
  animation: rise 0.9s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact:hover,
.contact:focus-visible {
  color: var(--accent-2);
  border-color: var(--accent-2);
}

.socials {
  display: flex;
  gap: 1.25rem;
}

.socials a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--accent-2);
}

.copyright {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Shared focus + motion ---------- */

a:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 3px;
}

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

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(167, 139, 250, 0); }
  100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
