@font-face {
  font-family: "Geist Pixel";
  src: url("/assets/font.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink:   #eef3f6;
  --dim:   #8a94a2;
  --green: #4ade80;  /* L channel */
  --blue:  #6db4ff;  /* R channel */
  --pink:  #f3a8c0;
  --amber: #f5d27a;
  --line:  #2c3c32;
  --luna1: #3f7fd6;  /* Windows "Luna" titlebar gradient — matches the plugin chrome */
  --luna2: #1a48b0;
  --day:   #eaedf3;
  --day2:  #d3d9e2;
  --card:  #141c18;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }

/* custom retro arrow cursor (matches xavpain.github.io/junk-atelier) */
html, body, a, button, .featured, .btn, .cta {
  cursor: url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M3%202%20L3%2018.6%20L7.3%2014.3%20L10.3%2021%20L13.1%2019.7%20L10.1%2013.1%20L16.2%2013.1%20Z'%20fill='%23ffffff'%20stroke='%23000000'%20stroke-width='1.4'%20stroke-linejoin='round'/%3e%3c/svg%3e") 2 2, auto;
}

body {
  background: radial-gradient(130% 100% at 50% -10%, var(--day) 0%, var(--day2) 100%);
  color: var(--ink);
  font-family: "Geist Pixel", ui-monospace, "Cascadia Mono", monospace;
  display: grid;
  place-items: center;
  padding: clamp(10px, 4vw, 48px);
  -webkit-font-smoothing: none;
  line-height: 1.45;
}
/* film grain, artsy texture */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 2; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* soft organic colour bands, blurred into painterly drifts */
#scope {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  filter: blur(4px) saturate(1.1);
  opacity: .82;
}

/* the mainframe: a retro window floating on the day background */
.device {
  position: relative; z-index: 1;
  width: min(680px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05),
              0 26px 56px -24px rgba(16,30,22,.5),
              0 0 80px -18px rgba(74,222,128,.13);
  padding: clamp(14px, 3vw, 22px) clamp(18px, 5vw, 44px) clamp(20px, 4vw, 34px);
}
.device.wide { width: min(860px, 100%); }

/* authentic Windows "Luna" title bar — matches the Warble plugin + xavpain.github.io/junk-atelier */
.titlebar {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; padding: 5px 5px 5px 10px;
  border: 1px solid #0a1f4a; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--luna1) 0%, var(--luna2) 100%);
  box-shadow: inset 0 1px rgba(255,255,255,.45), 0 1px 2px rgba(0,0,0,.35);
}
/* glossy highlight across the top half (the classic Luna sheen) */
.titlebar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%;
  pointer-events: none; border-radius: 7px 7px 0 0;
  background: linear-gradient(rgba(255,255,255,.4), rgba(255,255,255,0));
}
.titlebar > * { position: relative; z-index: 1; }
.titlebar .tt { font-size: 11px; letter-spacing: .02em; font-weight: 700; color: #fff;
                text-shadow: 1px 1px rgba(0,0,0,.5); white-space: nowrap;
                display: inline-flex; align-items: center; gap: 8px; }
/* small app-icon square keeps the green brand accent at top-left */
.titlebar .tt::before { content: ""; width: 11px; height: 11px; border-radius: 2px;
                        background: var(--green);
                        box-shadow: 0 0 6px var(--green), inset 0 1px rgba(255,255,255,.7), inset 0 0 0 1px rgba(0,0,0,.25); }
/* glossy 3D window buttons */
.titlebar .winbtns { margin-left: auto; display: flex; gap: 4px; }
.titlebar .winbtns i {
  position: relative; width: 21px; height: 19px; display: block;
  border: 1px solid #0a1f4a; border-radius: 4px;
  background: linear-gradient(#fff 0%, #eaeaf2 49%, #c4c4d2 51%, #dadae6 100%);
  box-shadow: inset 0 1px #fff, inset 0 -2px 3px rgba(0,0,0,.22), 0 1px 2px rgba(0,0,0,.4);
}
.titlebar .winbtns i::before { content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 45%;
  pointer-events: none; border-radius: 3px 3px 50% 50% / 3px 3px 100% 100%;
  background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.1)); }
.titlebar .winbtns .min::after { content: ""; position: absolute; z-index: 1; left: 4px; right: 4px; bottom: 4px;
  height: 2px; background: #16213a; }
.titlebar .winbtns .max::after { content: ""; position: absolute; z-index: 1; inset: 4px;
  border: 1.5px solid #16213a; border-top-width: 2.5px; border-radius: 1px; }
.titlebar .winbtns .cls { border-color: #6e1414;
  background: linear-gradient(#ffc2c2 0%, #ff8585 49%, #d83c3c 51%, #e85656 100%); }
.titlebar .winbtns .cls::after { content: "\00d7"; position: absolute; z-index: 1; inset: 0;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  text-shadow: 0 1px rgba(0,0,0,.4); line-height: 1; }

/* nav */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
  font-size: 11px; letter-spacing: .18em; color: var(--dim);
  padding-bottom: 4px;
}
.nav .home { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--dim); }
.nav .home b { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
               box-shadow: 0 0 8px var(--green); animation: blink 2.4s steps(1) infinite; }
.nav .home:hover { color: var(--ink); }
@keyframes blink { 90% { opacity: 1; } 95% { opacity: .25; } }
.nav .links { display: flex; gap: 18px; }
.nav a { color: var(--dim); text-decoration: none; transition: color .12s; }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--ink); outline: none; }

/* hero */
.hero { text-align: center; padding-top: clamp(10px, 3vw, 22px); }
.logo {
  width: clamp(150px, 36vw, 210px); height: auto; display: block; margin: 0 auto;
  filter: drop-shadow(0 0 14px rgba(74,222,128,.25)); overflow: visible;
  animation: bob 5.5s ease-in-out infinite;
}
.float { transform-box: fill-box; transform-origin: center; }
.f1 { animation: drift 4.2s ease-in-out infinite; }
.f2 { animation: drift 5.1s ease-in-out infinite .4s; }
.f3 { animation: drift 4.7s ease-in-out infinite .8s; }
.f4 { animation: drift 5.6s ease-in-out infinite .2s; }
@keyframes bob   { 50% { transform: translateY(-6px); } }
@keyframes drift { 50% { transform: translateY(-5px) rotate(3deg); } }

.wordmark { margin-top: clamp(16px, 3vw, 24px); font-size: clamp(32px, 10vw, 62px);
            letter-spacing: .04em; line-height: 1; }
.wordmark .jl { color: var(--green); text-shadow: 0 0 14px rgba(74,222,128,.55); }
.wordmark .at { color: var(--blue);  text-shadow: 0 0 14px rgba(109,180,255,.55); }
.tagline { margin-top: 14px; font-size: clamp(10px, 2.4vw, 13px); color: var(--dim);
           letter-spacing: .16em; text-transform: uppercase; }

/* featured product card */
.featured {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px;
  margin: clamp(28px, 6vw, 42px) auto 0; max-width: 480px;
  padding: 16px 18px; background: #0d1410;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none;
  box-shadow: 0 0 26px rgba(74,222,128,.06) inset, 0 10px 24px -16px #000;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.featured:hover, .featured:focus-visible {
  transform: translateY(-2px); border-color: #3e5547;
  box-shadow: 0 0 30px rgba(109,180,255,.12) inset, 0 16px 30px -16px #000; outline: none;
}
.featured .meta { text-align: left; }
.featured .eyebrow { font-size: 9px; letter-spacing: .22em; color: var(--amber); }
.featured .name { font-size: clamp(22px, 5vw, 28px); letter-spacing: .05em; display: block; margin-top: 2px; }
.featured .desc { font-size: 10px; letter-spacing: .1em; color: var(--dim);
                  text-transform: uppercase; display: block; margin-top: 4px; }
.featured .stereo { display: flex; gap: 5px; margin-top: 8px; }
.featured .stereo i { width: 8px; height: 8px; border-radius: 2px; display: block; }
.featured .stereo .l { background: var(--green); }
.featured .stereo .r { background: var(--blue); }
.featured .buy { text-align: right; }
.featured .price { font-size: clamp(17px, 4vw, 21px); color: var(--ink); display: block; }
.featured .cta { margin-top: 8px; font-size: 11px; letter-spacing: .16em; color: var(--green);
                 border: 1px solid var(--green); border-radius: 5px; padding: 7px 13px; display: inline-block; }

/* footer */
.foot { margin-top: clamp(24px, 5vw, 34px); border-top: 1px solid var(--line); padding: 12px 6px 2px;
        font-size: 9.5px; letter-spacing: .12em; color: #6b7682;
        display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.foot a { color: #6b7682; text-decoration: none; }
.foot a:hover { color: var(--dim); }

/* about + legal pages */
.about { padding-top: clamp(8px, 3vw, 16px); }
.about h1 { font-size: clamp(24px, 6vw, 38px); letter-spacing: .04em; color: var(--green);
            text-shadow: 0 0 14px rgba(74,222,128,.5); }
.about .lede { color: var(--ink); font-size: clamp(13px, 3vw, 16px); margin-top: 16px; line-height: 1.7; }
.about p { color: var(--dim); font-size: clamp(12px, 2.6vw, 14px); margin-top: 14px; line-height: 1.8; }
.about a { color: var(--blue); text-decoration: none; border-bottom: 1px solid rgba(109,180,255,.4); }
.about a:hover { color: var(--ink); }
.about .sig { margin-top: 22px; font-size: 12px; letter-spacing: .1em; }
.about h2 { color: var(--ink); font-size: clamp(14px, 3vw, 16px); letter-spacing: .04em; margin-top: 28px; }
.about ul { margin: 10px 0 0 18px; color: var(--dim); font-size: clamp(12px, 2.6vw, 14px); line-height: 1.8; }
.about li { margin-top: 4px; }
.about .updated { color: #6b7682; font-size: 10px; letter-spacing: .1em; margin-top: 6px; }
.about .toc { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; font-size: 10px; letter-spacing: .14em; }
.about .toc a { border-bottom: none; color: var(--dim); }

/* warble product page */
.product { padding-top: clamp(6px, 2vw, 12px); }
.product .head { text-align: center; }
.product .kicker { font-size: 10px; letter-spacing: .24em; color: var(--amber); text-transform: uppercase; }
.product h1 { font-size: clamp(40px, 12vw, 76px); letter-spacing: .04em; color: var(--green);
              text-shadow: 0 0 18px rgba(74,222,128,.5); line-height: 1; margin-top: 6px; }
.product .sub { color: var(--ink); font-size: clamp(12px, 2.8vw, 15px); margin-top: 12px; letter-spacing: .08em; }
.product .shot {
  width: 100%; height: auto; display: block; margin: clamp(22px, 5vw, 34px) 0 0;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 20px 44px -22px #000, 0 0 50px -20px rgba(74,222,128,.18);
}
/* feature list styled like the plugin's own module tabs (not generic cards) */
.modlist { margin-top: clamp(26px, 5vw, 38px); }
.mod { display: grid; grid-template-columns: 156px 1fr; gap: 22px; align-items: start;
       padding: 18px 4px; border-top: 1px solid var(--line); }
.mod:last-of-type { border-bottom: 1px solid var(--line); }
.mod .tab { justify-self: start; font-size: 10px; letter-spacing: .12em; color: #0c1410;
            padding: 5px 11px; border-radius: 5px 5px 5px 1px; border: 1px solid rgba(0,0,0,.45);
            display: inline-block; white-space: nowrap; }
.mod .tab.g { background: #7fe0a3; } .mod .tab.b { background: #9cc9ff; }
.mod .tab.p { background: #f3b4c8; } .mod .tab.a { background: #f3d98f; }
.mod p { color: var(--dim); font-size: clamp(12px, 2.6vw, 14px); line-height: 1.7; margin: 0; }
@media (max-width: 540px) { .mod { grid-template-columns: 1fr; gap: 9px; } }
.buybar { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
          margin-top: clamp(28px, 6vw, 40px); padding: 18px 20px;
          border: 1px solid var(--line); border-radius: 11px; background: #0d1410; }
.buybar .price { font-size: clamp(24px, 6vw, 34px); color: var(--ink); }
.buybar .price small { font-size: 10px; letter-spacing: .14em; color: var(--dim); display: block; text-transform: uppercase; }
.buybar .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font-size: 12px; letter-spacing: .14em; text-decoration: none; padding: 12px 20px;
       border-radius: 6px; border: 1px solid var(--line); }
.btn.buy { color: #07120b; background: var(--green); border-color: var(--green); font-weight: 400; }
.btn.buy:hover { box-shadow: 0 0 22px rgba(74,222,128,.4); }
.btn.demo { color: var(--blue); border-color: var(--blue); }
.specs { margin-top: 18px; font-size: 10px; letter-spacing: .14em; color: #6b7682;
         display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* success page actions */
.acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.acts a { font-size: 11px; letter-spacing: .14em; text-decoration: none; padding: 10px 15px;
          border-radius: 5px; border: 1px solid var(--line); }
.acts .dl  { color: #07120b; background: var(--green); border-color: var(--green); }
.acts .por { color: var(--blue); border-color: var(--blue); }
.ref { margin-top: 20px; font-size: 9px; letter-spacing: .1em; color: #6b7682; }

/* mobile */
@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .device { border-radius: 14px; }
  .featured { grid-template-columns: 1fr; gap: 12px; }
  .featured .buy { text-align: left; }
  .featured .cta { width: 100%; text-align: center; }
  .buybar { flex-direction: column; align-items: stretch; }
  .buybar .actions .btn { flex: 1; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .logo, .float, .nav .home b { animation: none !important; }
}
