/* =====================================================================
   Abrar Sharif - Coming Soon
   Ported from a Claude Design export to standalone CSS.
   Theme: dark, glass, Indigo accent. One theme, one accent, locked.
   ===================================================================== */

:root {
  /* Accent: Indigo */
  --accent: #6366F1;
  --accent2: #A855F7;
  --ring: rgba(99, 102, 241, .5);

  /* Surfaces + text */
  --bg: #08080B;
  --text-strong: #FAFAFA;
  --text: #F4F4F5;
  --text-soft: #D4D4D8;
  --text-muted: #A1A1AA;
  --text-faint: #71717A;
  --text-dim: #52525B;

  /* Radius scale (documented + consistent):
     pills = full, card = 30px, controls = 14px, social = 12px */
  --r-card: 30px;
  --r-control: 14px;
  --r-social: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(99, 102, 241, .3); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------------
   Background layers
   --------------------------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(125% 90% at 50% 40%, rgba(8,8,11,0) 30%, rgba(8,8,11,.55) 72%, var(--bg) 100%);
}

/* Mobile-only bottom scrim, keeps card text readable over aurora */
.mscrim {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 82%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,8,11,0) 0%, rgba(8,8,11,.45) 50%, rgba(8,8,11,.85) 100%);
}

/* ASCII "SOON" watermark */
.ghost-layer {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100dvh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.ghost {
  position: absolute;
  left: 50%;
  bottom: -.5rem;
  transform: translateX(-50%);
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-weight: 500;
  font-size: clamp(6px, .8vw, 16px);
  /*font-size: clamp(9px, 1.5vw, 18px);*/
  line-height: 1.04;
  letter-spacing: 0;
  color: rgb(190 255 225 / 0.06);
  white-space: pre;
  text-align: center;
}

/* ---------------------------------------------------------------------
   Header
   --------------------------------------------------------------------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 56px);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Syne', 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-dot { color: var(--accent); }

.avail {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.1);
}
.avail-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2.2s ease-out infinite;
}
.avail-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: .01em;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Card
   --------------------------------------------------------------------- */
.stage-main {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 20px 80px;
}

.card {
  position: relative;
  width: 100%;
  max-width: 600px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: var(--r-card);
  background: linear-gradient(158deg, rgba(32,32,42,.74), rgba(13,13,19,.66));
  -webkit-backdrop-filter: blur(46px) saturate(1.55);
  backdrop-filter: blur(46px) saturate(1.55);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 1px 0 rgba(255,255,255,.1) inset,
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent),
    0 50px 120px -50px rgba(0,0,0,.85),
    0 0 90px -34px color-mix(in srgb, var(--accent) 24%, transparent);
  animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) both;
}
.card-hairline {
  position: absolute;
  top: 0; left: 30px; right: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ---------------------------------------------------------------------
   Mascot
   --------------------------------------------------------------------- */
.mascot-stage {
  position: absolute;
  top: 0;
  left: clamp(30px, 5vw, 52px);
  right: clamp(30px, 5vw, 52px);
  height: 0;
  z-index: 6;
  pointer-events: none;
}
.mascot-ground {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px 1px var(--accent);
  animation: groundGlow 3s ease-in-out infinite;
}
.mascot-patrol {
  position: absolute;
  top: -42px;
  width: 92px;
  height: 54px;
  animation: mascotPatrol 7s linear infinite;
}
.mascot-shadow {
  position: absolute;
  left: 50%;
  top: 50px;
  width: 52px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,0));
  transform: translateX(-50%);
  animation: catShadow .3s ease-in-out infinite;
}
/* flip to face the direction of travel (at the turn) */
.mascot-tilt { width: 100%; height: 100%; transform-origin: center; animation: mascotFace 7s linear infinite; }
.mascot-hop { width: 100%; height: 100%; }
/* running-cat sprite sheet: 16 frames, 8123px wide (507.69px/frame), scaled down.
   Source recolored to a light silhouette so it reads on the dark card. */
.cat-sprite {
  width: 507.69px;
  height: 300px;
  background: url('../assets/cat-run.svg') 0 0 no-repeat;
  transform: scale(.18);
  transform-origin: top left;
  filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(99,102,241,.45));
  animation: catRun 1.2s steps(16) infinite;
}

/* ---------------------------------------------------------------------
   Card content
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) .05s both;
}
.badge-text {
  font-family: 'Space Grotesk', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 42%, #ffffff);
  white-space: nowrap;
}

.headline {
  margin: 0 0 18px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--text-strong);
  text-wrap: balance;
  animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) .1s both;
}
.headline-accent {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent2) 26%, #ffffff 50%, var(--accent2) 74%, var(--accent) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hlSweep 5s ease-in-out infinite;
}

.lede {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 48ch;
  animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) .16s both;
}

.points {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) .22s both;
}
.point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.point-dot {
  width: 6px; height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------------------------------------------
   Notify form
   --------------------------------------------------------------------- */
.notify { animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) .28s both; }

.notify-prompt {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.notify-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notify-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border-radius: var(--r-control);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.notify-input::placeholder { color: var(--text-dim); }
.notify-input:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* honeypot - visually and pointer hidden, still in the DOM for bots */
.notify-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.notify-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--r-control);
  border: none;
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow:
    0 12px 30px -10px color-mix(in srgb, var(--accent) 75%, transparent),
    0 0 0 1px rgba(255,255,255,.1) inset;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, filter .2s;
}
.notify-btn-label, .notify-btn-arrow { position: relative; z-index: 1; }
.notify-btn-shine {
  position: absolute;
  top: 0; left: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  animation: btnShine 4s ease-in-out infinite;
}
.notify-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 44px -12px color-mix(in srgb, var(--accent) 85%, transparent),
    0 0 0 1px rgba(255,255,255,.18) inset;
  filter: brightness(1.07);
}
.notify-btn:active { transform: translateY(0) scale(.98); }
.notify-btn:focus-visible {
  outline: none;
  box-shadow:
    0 12px 30px -10px color-mix(in srgb, var(--accent) 75%, transparent),
    0 0 0 3px var(--ring);
}
.notify-btn[disabled] { cursor: progress; filter: brightness(.92) saturate(.8); }
.notify-btn.is-loading .notify-btn-label { opacity: .7; }

.notify-error {
  margin: 10px 0 0;
  font-size: 13px;
  color: #FCA5A5;
  min-height: 0;
  display: none;
}
.notify.has-error .notify-error { display: block; }

.notify-done {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r-control);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.notify-check {
  display: flex;
  width: 26px; height: 26px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.notify-done span:last-child {
  font-size: 14.5px;
  color: #E4E4E7;
  font-weight: 500;
}

/* state machine: idle shows form, done shows confirmation */
.notify[data-state="done"] .notify-prompt,
.notify[data-state="done"] .notify-form,
.notify[data-state="done"] .notify-error { display: none; }
.notify[data-state="done"] .notify-done { display: flex; animation: fadeUp .5s cubic-bezier(.2,.8,.2,1) both; }

/* ---------------------------------------------------------------------
   Social row
   --------------------------------------------------------------------- */
.social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) .34s both;
}
.social-link {
  display: flex;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-social);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-muted);
  transition: transform .18s, color .18s, border-color .18s;
}
.social-link:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.social-link:focus-visible {
  outline: none;
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
}
.social-tag {
  margin-left: auto;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  font-size: 12.5px;
  color: var(--text-dim);
}
.site-footer-note {
  font-family: 'Space Grotesk', monospace;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Keyframes (ported verbatim from the source)
   --------------------------------------------------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes dotPulse { 0%,100% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 7px transparent; } }
@keyframes hlSweep { 0% { background-position: 120% 0; } 50% { background-position: -20% 0; } 100% { background-position: 120% 0; } }
@keyframes btnShine { 0% { transform: translateX(-160%) skewX(-18deg); } 60%,100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes mascotPatrol { 0% { left: 0; } 48% { left: calc(100% - 104px); } 50% { left: calc(100% - 104px); } 98% { left: 0; } 100% { left: 0; } }
@keyframes catShadow { 0%,100% { transform: translateX(-50%) scale(1); opacity: .4; } 50% { transform: translateX(-50%) scale(.92); opacity: .32; } }
@keyframes catRun { from { background-position: 0 0; } to { background-position: -8123px 0; } }
@keyframes groundGlow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
/* face the direction of travel (reversed so the run cycle matches the motion) */
@keyframes mascotFace { 0%,48% { transform: scaleX(1); } 50%,98% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }

/* ---------------------------------------------------------------------
   Mobile: drop the card chrome, keep it readable on the aurora
   --------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Header: tighter, give the pill room next to the wordmark */
  .site-header { padding: 18px 16px; }
  .wordmark { font-size: 17px; }
  .avail { gap: 7px; padding: 6px 11px; }
  .avail-dot { width: 7px; height: 7px; }
  .avail-label { font-size: 11px; }

  /* Keep a real card on mobile (the old version dropped it and looked unfinished) */
  .stage-main { padding: 86px 16px 88px; align-items: center; }
  .card {
    padding: 30px 22px;
    border-radius: 24px;
    background: linear-gradient(158deg, rgba(28,28,38,.82), rgba(12,12,18,.78));
    box-shadow:
      0 1px 0 rgba(255,255,255,.08) inset,
      0 30px 70px -40px rgba(0,0,0,.9),
      0 0 70px -40px color-mix(in srgb, var(--accent) 24%, transparent);
  }
  .badge { margin-bottom: 18px; }
  .headline { font-size: clamp(30px, 8.4vw, 40px); margin-bottom: 14px; }
  .lede { font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
  .points { margin-bottom: 28px; }

  /* Form stacks full-width: easier tap targets, no awkward wrap */
  .notify-form { flex-direction: column; gap: 10px; }
  .notify-input { min-width: 0; width: 100%; }
  .notify-btn { width: 100%; justify-content: center; padding: 15px 24px; }

  /* Social row wraps cleanly; tag drops to its own line */
  .social { flex-wrap: wrap; gap: 9px; margin-top: 26px; padding-top: 22px; }
  .social-tag { margin-left: 0; width: 100%; margin-top: 6px; }

  .site-footer { padding: 16px; font-size: 11.5px; }
}

/* Very small phones: trim the cat so it doesn't crowd the card edge */
@media (max-width: 380px) {
  .mascot-patrol { transform: scale(.85); }
  .headline { font-size: clamp(27px, 8.2vw, 34px); }
}

/* ---------------------------------------------------------------------
   Reduced transparency: solid card instead of frosted glass
   --------------------------------------------------------------------- */
@media (prefers-reduced-transparency: reduce) {
  .card {
    background: #14141B;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .avail {
    background: #16161C;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------------------------------------------------------------------
   Reduced motion: stop all looping/decorative animation.
   (JS additionally freezes the canvas + ghost flicker.)
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .headline-accent {
    background: none;
    -webkit-text-fill-color: var(--accent);
    color: var(--accent);
  }
}
