/* =========================================================
   Merch Makers — marketing site
   Static one-pager. Dark theme, gradient accents, system font
   stack so first paint ships zero web-font weight.
   ========================================================= */

:root {
  --bg: #0b0d12;
  --bg-soft: #11141b;
  --bg-elev: #161a23;
  --bg-elev-2: #1c2230;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #f3f5f8;
  --fg-muted: #9aa3b2;
  --fg-dim: #6b7280;
  --accent: #b6f5d6;
  --accent-2: #8b9bff;
  --accent-3: #ff9b76;
  --warn: #f7c873;
  --late: #ff7a7a;
  --grad: linear-gradient(120deg, #b6f5d6 0%, #8b9bff 50%, #ff9b76 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --maxw-narrow: 760px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 600ms;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

button {
  font: inherit;
}

p {
  margin: 0 0 12px;
  color: var(--fg-muted);
}

h2,
h3,
h4 {
  margin: 0;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow {
  max-width: var(--maxw-narrow);
}
.center {
  text-align: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  background: rgba(11, 13, 18, 0.65);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 17px;
}

/* Full wordmark logo: subtle pulse + slow brand-gradient color wash,
   running together on the whole SVG so the diamonds and the MM letters
   stay in sync visually. */
.logo-svg {
  height: 30px;
  width: auto;
  display: block;
  color: var(--fg);
  animation:
    logo-pulse 4s ease-in-out infinite,
    logo-color-cycle 8s ease-in-out infinite;
  transform-origin: center;
  transition: transform 200ms var(--ease);
  overflow: visible;
}

.logo:hover .logo-svg {
  transform: scale(1.04);
}

@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(139, 155, 255, 0));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(139, 155, 255, 0.5));
  }
}

@keyframes logo-color-cycle {
  0%, 100% { color: #f3f5f8; }
  33%      { color: #8b9bff; }
  66%      { color: #b6f5d6; }
}


.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  color: var(--fg-muted);
  margin-left: auto;
}
.nav-links a {
  transition: color 200ms var(--ease);
}
.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  display: none;
}
@media (min-width: 720px) {
  .nav-cta {
    display: inline-flex;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }
}

/* ------------ Buttons ------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 200ms var(--ease),
    background 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.btn-primary {
  background: var(--fg);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(139, 155, 255, 0.55);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--fg-muted);
  background: rgba(255, 255, 255, 0.03);
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding: 96px 0 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 700px;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(139, 155, 255, 0.28), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(182, 245, 214, 0.20), transparent 70%),
    radial-gradient(50% 50% at 50% 80%, rgba(255, 155, 118, 0.14), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2%, -3%, 0) scale(1.05); }
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 18ch;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--fg-muted);
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}
.hero-cta.center {
  justify-content: center;
  margin-bottom: 0;
}

/* Growth grid (in hero) */

.growth-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 8px;
}

.growth-card {
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035) 0%,
    rgba(255, 255, 255, 0.005) 100%
  );
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}
.growth-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.growth-icon {
  display: inline-block;
  font-size: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.growth-card h3 {
  font-size: 16px;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  color: var(--fg);
}
.growth-card p {
  font-size: 14.5px;
  margin: 0;
  color: var(--fg-muted);
}

/* ------------ Generic section / typography ------------ */

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

/* Section with a fullbleed video background. Video sits behind a heavy
   vignette so the headline + cards stay legible regardless of frame
   brightness. Container content gets bumped above with z-index. */
.has-video {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}
.has-video > .container {
  position: relative;
  z-index: 2;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* Slight desaturation lets the gradient overlays read more brand-like
     and keeps the video from competing with the gradient hero sections
     above and below. */
  filter: saturate(0.85) brightness(0.95);
}
.bg-video-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* Edge darkening — classic vignette */
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.7) 70%,
      rgba(0, 0, 0, 0.92) 100%
    ),
    /* Brand-tinted base for high contrast with white type */
    linear-gradient(180deg, rgba(11, 13, 18, 0.55), rgba(11, 13, 18, 0.65));
}
.has-video .section-title,
.has-video p {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 22ch;
}
.section-title.center {
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  color: var(--fg-muted);
  max-width: 56ch;
  margin: 0 0 48px;
}

.platform-head {
  margin-bottom: 16px;
}

/* ------------ Dashboard mockup ------------ */

.dashboard {
  margin-top: 32px;
}

.dashboard-frame {
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow:
    0 30px 80px -30px rgba(139, 155, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.dashboard-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.dashboard-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}
.dashboard-url {
  margin: 0 0 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: var(--fg-dim);
}

.dashboard-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 520px;
}
@media (max-width: 720px) {
  .dashboard-body {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    display: none;
  }
}

.dashboard-side {
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  background: rgba(0, 0, 0, 0.2);
}
.side-logo {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.dashboard-side ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dashboard-side li {
  padding: 7px 10px;
  font-size: 13px;
  color: var(--fg-muted);
  border-radius: 8px;
}
.dashboard-side li.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.dashboard-main {
  padding: 22px;
}

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 18px;
}
.stat {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev-2);
}
.stat-label {
  margin: 0 0 6px;
  color: var(--fg-dim);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.stat-value {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.stat-trend {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg-muted);
}
.stat-trend.up {
  color: var(--accent);
}
.stat-trend.warn {
  color: var(--warn);
}

.dashboard-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.05fr 1fr;
}
@media (max-width: 720px) {
  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

.panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev-2);
  padding: 16px 18px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.panel-head h4 {
  font-size: 14px;
  font-weight: 600;
}
.panel-meta {
  font-size: 11.5px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.prod-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prod-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 13.5px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fg-dim);
  display: inline-block;
}
.dot.ok   { background: var(--accent); }
.dot.warn { background: var(--warn); }
.dot.late { background: var(--late); }
.prod-name {
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-state,
.prod-eta {
  font-size: 12px;
  color: var(--fg-muted);
}
.prod-eta {
  text-align: right;
  min-width: 92px;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.bar-list li {
  display: grid;
  grid-template-columns: 80px 1fr 40px;
  align-items: center;
  gap: 12px;
}
.bar-name {
  color: var(--fg);
}
.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w, 50%);
  background: var(--grad);
}
.bar-val {
  color: var(--fg-muted);
  text-align: right;
}

/* ------------ Differentiation table ------------ */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
}
.compare th,
.compare td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.compare tr:last-child td {
  border-bottom: 0;
}
.compare th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.compare td:first-child {
  color: var(--fg-muted);
  border-right: 1px solid var(--border);
  width: 45%;
}
.compare td:last-child {
  color: var(--fg);
}
.check {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--bg);
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  vertical-align: -3px;
}

/* ------------ Use cases (reuse .grid from earlier) ------------ */

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}
.card p {
  margin: 0;
}

/* ------------ Mid-page CTA ------------ */

.midcta {
  padding: 80px 0;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(139, 155, 255, 0.14), transparent 70%);
}

/* ------------ Quote / case study ------------ */

.quote {
  margin: 0 0 32px;
  text-align: center;
}
.quote blockquote {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--fg);
  font-weight: 500;
}
.quote figcaption {
  margin-top: 16px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.result-list li {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--fg);
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--bg-elev);
}
.result-num {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: var(--bg);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* ------------ Final CTA ------------ */

.cta {
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 30%, rgba(139, 155, 255, 0.20), transparent 60%),
    var(--bg-soft);
  border-block: 1px solid var(--border);
}

.cta-title {
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 auto 16px;
  max-width: 22ch;
}

.cta-sub {
  color: var(--fg-muted);
  margin-bottom: 28px;
  font-size: 17px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  font-size: 14px;
  color: var(--fg-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.footer-tag {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  gap: 18px;
}
.footer-links a:hover {
  color: var(--fg);
}

/* ------------ Reveal-on-scroll ------------ */

.reveal {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger inside grids/lists */
.growth-grid .reveal:nth-child(2) { transition-delay: 60ms; }
.growth-grid .reveal:nth-child(3) { transition-delay: 120ms; }
.growth-grid .reveal:nth-child(4) { transition-delay: 180ms; }
.grid .reveal:nth-child(2) { transition-delay: 60ms; }
.grid .reveal:nth-child(3) { transition-delay: 120ms; }
.grid .reveal:nth-child(4) { transition-delay: 180ms; }
.result-list .reveal:nth-child(2) { transition-delay: 60ms; }
.result-list .reveal:nth-child(3) { transition-delay: 120ms; }
.result-list .reveal:nth-child(4) { transition-delay: 180ms; }

/* Respect users who don't want motion */
@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;
  }
  .hero-bg {
    animation: none;
  }
  /* Hide background videos for users who don't want motion — the
     vignette + section background still look intentional underneath. */
  .bg-video {
    display: none;
  }
}
