/* slapworx — one stylesheet for the whole site */

@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url('/assets/fonts/outfit-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url('/assets/fonts/outfit-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 800; font-display: swap; src: url('/assets/fonts/outfit-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 900; font-display: swap; src: url('/assets/fonts/outfit-latin-900-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Mono'; font-weight: 500; font-display: swap; src: url('/assets/fonts/dm-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: #111110;        /* almost-black grey, every page */
  --green: #D6FF1F;     /* highlighter */
  --ink: #0B0B0B;
  --panel: #1C1C1B;     /* dropdown, a step lighter so it shows */
  --white: #FFFFFF;
  --body: #D6D6D6;
  --muted: #A3A3A3;
  --line: #262624;
  --well: #0A0A09;
  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'DM Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --gutter: max(16px, 3vw);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--white); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--green); color: var(--ink); padding: 8px 12px; border-radius: 8px; font: 600 14px var(--sans); text-decoration: none; z-index: 20; }
.skip:focus { left: 8px; }

/* VHS grain: a black-and-white static layer under everything.
   --grain is how strong it is (0.048 = 4.8%). Logo and text sit on top, clean. */
:root { --grain: 0.048; }
body::before {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 0;
  pointer-events: none;
  background: url('/assets/img/grain.png') repeat;
  background-size: 256px 256px;
  opacity: var(--grain);
  animation: grain 0.5s steps(1) infinite;
  will-change: transform;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  10%  { transform: translate(-37px, 61px); }
  20%  { transform: translate(83px, -19px); }
  30%  { transform: translate(-121px, -97px); }
  40%  { transform: translate(17px, 143px); }
  50%  { transform: translate(-71px, 29px); }
  60%  { transform: translate(109px, 113px); }
  70%  { transform: translate(-13px, -151px); }
  80%  { transform: translate(131px, 47px); }
  90%  { transform: translate(-97px, -59px); }
}

/* page frame: header / content / footer */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px var(--gutter) 28px;
}

/* header */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; position: relative; z-index: 10; }
.logo { display: flex; border-radius: 10px; }
.logo img { width: 100px; }

/* plugins menu */
.menu { position: relative; }
.menu > summary {
  list-style: none;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 4px;
  color: var(--green);
  font: 600 16px var(--sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { color: var(--white); }
.menu > summary svg { transition: transform .18s ease; }
.menu[open] > summary svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; right: 0; top: 44px;
  width: 280px; max-width: calc(100vw - 32px);
  padding: 8px;
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column;
}
.menu-panel a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--white);
}
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: #262625; }
.menu-panel .name { font: 600 18px var(--sans); }
.menu-panel .tag { font: 500 12px var(--mono); letter-spacing: 0.08em; color: var(--green); }

/* footer links */
.site-footer nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 22px;
  font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.site-footer a { color: var(--green); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

/* home */
.home-main { display: flex; align-items: center; justify-content: center; min-width: 0; }
.home-main h1 { margin: 0; display: flex; }
.home-main h1 img { width: min(82vw, 820px); }

/* plugin page */
.product .page { gap: 64px; padding-bottom: 32px; }
.product-main {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px; align-items: center;
}
.teaser {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden;
  background: var(--well); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.teaser > img { width: 58%; }
.teaser video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.teaser .label { position: absolute; left: 16px; bottom: 14px; font: 500 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.info { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eyebrow { margin: 0; font: 500 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.info h1 { margin: 0; font: 900 104px/0.9 var(--sans); letter-spacing: -0.035em; text-wrap: balance; }
.desc { margin: 0; max-width: 46ch; font: 400 19px/1.5 var(--sans); color: var(--body); }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 24px; font: 500 13px var(--mono); letter-spacing: 0.04em; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.soon { display: flex; flex-direction: column; gap: 6px; }
.soon .big { font: 900 120px/0.9 var(--sans); letter-spacing: -0.03em; color: var(--green); }
.soon .sub { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* "live" state, for launch day */
.buy { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.buy .price { font: 800 34px var(--sans); }
.buy a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  background: var(--green); color: var(--ink);
  text-decoration: none; font: 800 18px var(--sans);
}
.buy a:hover { background: var(--white); }

.product .site-footer { margin-top: 24px; }

/* 404 */
.lost { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.lost .big { font: 900 clamp(88px, 18vw, 180px)/0.9 var(--sans); letter-spacing: -0.03em; color: var(--green); }
.lost a { font: 500 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lost a:hover { color: var(--white); }

/* phones */
@media (max-width: 800px) {
  .logo img { width: 76px; }
  .home-main h1 img { width: 86vw; }
  .product .page { gap: 40px; }
  .product-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .info h1 { font-size: 64px; }
  .desc { font-size: 17px; }
  .soon .big { font-size: 88px; }
  .product .site-footer { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu > summary svg { transition: none; }
  body::before { animation: none; }   /* grain stays, but stops moving */
}
