/* ==========================================================================
   The Ecom Seller — coming soon page
   Design tokens first, then layout, then components, then motion.
   No external dependencies: one request for CSS, one for JS.
   ========================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-soft: #121214;
  --paper: #f4efe6;
  --paper-dim: #b9b2a6;
  --paper-faint: #7d776d;
  --accent: #3ecf8e;
  --accent-soft: #9be8c4;
  --line: rgba(244, 239, 230, 0.14);

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino,
    Georgia, "Times New Roman", serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --max-width: 78rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   Backdrop: two slow-moving glows and a film grain layer.
   Everything here is decorative and pointer-events free.
   -------------------------------------------------------------------------- */

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

.backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--pointer-x, 50%) var(--pointer-y, 30%),
    rgba(155, 232, 196, 0.1),
    transparent 45%
  );
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%, transparent 35%, rgba(11, 11, 12, 0.72) 100%),
    linear-gradient(180deg, rgba(11, 11, 12, 0) 55%, var(--ink) 100%);
}

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

.glow--one {
  width: min(52vw, 40rem);
  aspect-ratio: 1;
  top: -18%;
  right: -8%;
  background: radial-gradient(circle at 30% 30%, rgba(62, 207, 142, 0.5), transparent 68%);
  animation: drift-one 26s var(--ease-out) infinite alternate;
}

.glow--two {
  width: min(46vw, 34rem);
  aspect-ratio: 1;
  bottom: -22%;
  left: -10%;
  background: radial-gradient(circle at 60% 40%, rgba(214, 178, 112, 0.28), transparent 70%);
  animation: drift-two 32s var(--ease-out) infinite alternate;
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  transform: rotate(6deg);
}

@keyframes drift-one {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-6%, 8%, 0) scale(1.12);
  }
}

@keyframes drift-two {
  from {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  to {
    transform: translate3d(8%, -6%, 0) scale(0.94);
  }
}

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

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  text-decoration: none;
}

.brand__mark {
  width: 2.1rem;
  height: 2.1rem;
  flex: none;
  color: var(--paper);
  transition: color 0.4s var(--ease-out), transform 0.6s var(--ease-out);
}

.brand:hover .brand__mark,
.brand:focus-visible .brand__mark {
  color: var(--accent-soft);
  transform: rotate(-6deg);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-dim);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.status__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.55);
  animation: ping 2.6s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 0.55rem rgba(228, 87, 46, 0);
  }
}

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

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(2.5rem, 8vh, 6rem) var(--gutter) clamp(3rem, 9vh, 6.5rem);
}

.stage__inner {
  width: min(100%, 62rem);
}

.eyebrow {
  margin: 0 0 clamp(1.1rem, 2.4vw, 1.8rem);
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.headline__accent {
  display: inline-block;
  color: var(--accent-soft);
  font-style: italic;
  padding-right: 0.06em;
}

.headline__accent::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 0.06em;
  background: linear-gradient(90deg, var(--accent), transparent 85%);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw 1.4s 0.9s var(--ease-out) forwards;
}

@keyframes draw {
  to {
    transform: scaleX(1);
  }
}

.lede {
  max-width: 34rem;
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 0;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.7;
  text-wrap: pretty;
}

.launch {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: clamp(2rem, 4.5vw, 3.4rem);
}

.launch__pulse {
  width: 0.62rem;
  height: 0.62rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.launch__text {
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.launch__line {
  width: min(14rem, 32vw);
  height: 1px;
  background: var(--line);
  overflow: hidden;
}

.launch__line::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: sweep 3.4s var(--ease-out) infinite;
}

@keyframes sweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(340%);
  }
}

/* --------------------------------------------------------------------------
   Marquee strip
   -------------------------------------------------------------------------- */

.marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  width: max-content;
  animation: marquee 34s linear infinite;
  color: var(--paper-faint);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__dot {
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.4rem var(--gutter) 1.7rem;
  color: var(--paper-faint);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.site-footer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Reveal on load
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 1s var(--ease-out) forwards;
}

.reveal:nth-child(1) {
  animation-delay: 0.12s;
}
.reveal:nth-child(2) {
  animation-delay: 0.24s;
}
.reveal:nth-child(3) {
  animation-delay: 0.42s;
}
.reveal:nth-child(4) {
  animation-delay: 0.58s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Responsive + motion preferences
   -------------------------------------------------------------------------- */

@media (min-width: 60rem) {
  .stage {
    padding-right: clamp(2rem, 8vw, 7rem);
  }
}

@media (max-width: 34rem) {
  .brand__name {
    font-size: 0.98rem;
  }

  .status {
    padding: 0.4rem 0.7rem;
    font-size: 0.62rem;
  }

  .launch__line {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .marquee__track {
    animation: none;
  }

  .headline__accent::after {
    transform: scaleX(1);
  }
}
