/* ============================================================
   JELLONITY — site stylesheet v2 ("soft jelly" direction)
   Dark but warm and friendly: rounded corners, soft gradients,
   no terminal/hacker signals. Palette roles unchanged:
   green = software/action, flame = production, blue = trust.
   ============================================================ */

:root {
  /* palette */
  --sea-green: #2E8466;
  --mint: #3CB08B;
  --ufo-green: #3CD189;
  --gamboge: #DF9809;
  --urobilin: #F5AF27;
  --sinopia: #E13404;
  --flame: #EC551C;
  --midnight: #163561;
  --slate: #677A95;
  --jungle: #222227;
  --paynes: #373942;
  --davys: #565765;
  --platinum: #E0E0E6;

  /* roles */
  --bg: #202024;
  --surface: #2A2A31;
  --surface-2: #313139;
  --line: #3A3B44;
  --text: var(--platinum);
  --text-dim: #ABADBC;
  --text-faint: #7E8698;
  --accent: var(--ufo-green);
  --accent-mid: var(--mint);
  --accent-deep: var(--sea-green);
  --fire: var(--flame);
  --amber: var(--urobilin);

  --font: "Manrope", "Segoe UI", sans-serif;

  --maxw: 1080px;
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent-deep); color: #fff; }

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

a { color: var(--accent-mid); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--ufo-green); }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(60, 209, 137, 0.1);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}
.eyebrow.fire { color: #F2825B; background: rgba(236, 85, 28, 0.12); }
.eyebrow.blue { color: #8FA9D8; background: rgba(22, 53, 97, 0.45); }
.eyebrow.green { color: var(--accent); }

.lead { font-size: 1.15rem; color: var(--text-dim); max-width: 60ch; }

/* ---------- soft jelly blobs (signature) ---------- */
.blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.blob.green { background: var(--sea-green); }
.blob.mintb { background: var(--mint); opacity: 0.22; }
.blob.fireb { background: var(--flame); opacity: 0.18; }
.blob.blueb { background: var(--midnight); opacity: 0.55; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(32, 32, 36, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
/* Replace .brand-mark with <img src="assets/img/logo.svg"> when the logo file is added */
.brand-mark {
  width: 14px; height: 14px;
  background: linear-gradient(135deg, var(--ufo-green), var(--sea-green));
  border-radius: 4px 12px 12px 12px; /* jelly blob */
}
.nav-links { display: flex; gap: 8px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav-toggle {
  display: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text); font-family: var(--font); font-weight: 600; font-size: 0.85rem;
  padding: 8px 16px; cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: scale(1.035); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--ufo-green), var(--mint)); color: #10301F; }
.btn-ghost { border-color: var(--davys); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-mid); color: var(--accent); }
.btn-fire { background: linear-gradient(135deg, var(--flame), #F0703B); color: #2A1005; }

/* ---------- pre-release pill ---------- */
.rec {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber);
  background: rgba(245, 175, 39, 0.1);
  border-radius: 999px;
  padding: 6px 16px;
}
.rec::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
}

/* ---------- soft cards (was viewfinder) ---------- */
.vf {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
.vf:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #454654;
}
.vf-c { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .vf { transition: none; }
  .btn:hover, .vf:hover { transform: none; }
}

/* ---------- sections ---------- */
.section { padding: 92px 0; }
.section-head { margin-bottom: 44px; max-width: 62ch; }
.section-head p { color: var(--text-dim); margin-top: 14px; }

/* ---------- hero ---------- */
.hero { padding: 104px 0 88px; position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero .rec { margin-bottom: 26px; }
.hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin: 24px 0 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px;
  display: flex; gap: 44px; flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--text-faint);
}
.hero-meta b { color: var(--text); font-weight: 800; display: block; font-size: 1.35rem; }

/* ---------- product cards ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.product-card { padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.product-card .cat { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.product-card h3 { font-size: 1.45rem; }
.product-card p { color: var(--text-dim); flex: 1; }
.product-card .card-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.product-card .meta-line {
  font-size: 0.82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--line); padding-top: 14px;
}

/* ---------- value cards ---------- */
.value {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.value h3 { font-size: 1.05rem; margin-bottom: 10px; }
.value p { font-size: 0.92rem; color: var(--text-dim); }
.value .k {
  font-size: 0.78rem; font-weight: 700;
  color: var(--accent); display: block; margin-bottom: 12px;
}

/* ---------- production band ---------- */
.production-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #2B2124 0%, var(--bg) 60%);
}
.production-band .wrap { position: relative; z-index: 1; }
.production-band .tags { margin: 26px 0 34px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
}
.production-band .tag:hover { border-color: var(--fire); color: #F2825B; }

/* ---------- trust band (blue) ---------- */
.trust {
  background: linear-gradient(150deg, #1B2A45 0%, #20242F 75%);
  border: 1px solid #2B4470;
  border-radius: var(--r-lg);
  padding: 44px 42px;
}
.trust p { color: #C6D0E4; max-width: 66ch; }

/* ---------- about legend ---------- */
.legend blockquote {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.45;
  max-width: 32ch;
  border-left: 4px solid var(--accent);
  border-radius: 2px;
  padding-left: 26px;
  color: var(--text);
}
.legend .note { margin-top: 22px; color: var(--text-dim); max-width: 60ch; }

/* ---------- product page ---------- */
.crumbs { font-size: 0.88rem; color: var(--text-faint); padding: 26px 0 0; }
.crumbs a { color: var(--text-faint); }
.crumbs a:hover { color: var(--accent); }

.product-hero { padding: 52px 0 64px; }
.product-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.product-hero .lead { margin-top: 18px; }
.product-hero .rec { margin-top: 20px; }

.screenshot {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: var(--text-faint);
  font-size: 0.92rem;
  font-weight: 600;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(46, 132, 102, 0.16), transparent 55%),
    var(--surface);
}

.features { list-style: none; display: grid; gap: 16px; max-width: 70ch; }
.features li { padding-left: 34px; position: relative; color: var(--text-dim); }
.features li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 12px; height: 12px;
  background: linear-gradient(135deg, var(--ufo-green), var(--sea-green));
  border-radius: 3px 9px 9px 9px;
}
.features li b { color: var(--text); font-weight: 700; }

.download-box { padding: 38px 36px; display: grid; gap: 24px; }
.download-box .specs {
  display: flex; flex-wrap: wrap; gap: 34px;
  font-size: 0.82rem; color: var(--text-faint);
}
.download-box .specs b { display: block; color: var(--text); font-size: 1.05rem; font-weight: 800; }
.download-box .disclaimer { font-size: 0.85rem; color: var(--text-faint); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
}
.panel h3 { margin-bottom: 12px; }
.panel p { color: var(--text-dim); font-size: 0.95rem; }
.panel .btn { margin-top: 18px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: #1C1C20;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--text-dim); font-size: 0.94rem; }
.footer-grid a:hover { color: var(--accent); }
.boiler { color: var(--text-faint); font-size: 0.9rem; max-width: 46ch; margin-top: 14px; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--text-faint);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 60px; }
  .grid-2, .grid-4, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start;
    padding: 20px 24px; gap: 10px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
