/* Logikal Mayhem — shared styles
   Palette sampled directly from the logo artwork:
     studio red  #F01414  (MAYHEM brushstroke, Redact icon)
     ghost green #66FF33  (Ghost Gamma)
     boom yellow #FFC400  (Kaboomee)
   Page background is pure black so the logos' baked-in black backgrounds
   disappear seamlessly. */

:root {
  --bg:        #000000;
  --bg-card:   #0C0C10;
  --bg-plate:  #000000;
  --line:      #24242C;
  --line-soft: #1A1A21;

  --text:      #F2F2F5;
  --text-mid:  #A6A6B2;
  --text-dim:  #6C6C79;

  --accent:      #F01414;
  --accent-text: #FF6B6B;
  --accent-soft: rgba(240, 20, 20, 0.14);
  --accent-line: rgba(240, 20, 20, 0.34);

  /* per-card accent, overridden by modifier classes */
  --ca:      var(--accent);
  --ca-text: var(--accent-text);

  --radius: 14px;
  --maxw: 1080px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* NOTE: no ambient page glow behind the hero on purpose. The logo artwork has a
   solid black background baked in, so any gradient behind it turns the image into
   a visible hard-edged rectangle. Pure black everywhere = seamless. The artwork
   supplies its own glow. */

a { color: inherit; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: relative;
  z-index: 2;
  padding: 24px 0;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand img { height: 44px; width: auto; display: block; }

.brand .brand-text {
  font-size: 16px;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
}

.nav a {
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover { color: var(--text); }

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

.hero {
  padding: 56px 0 84px;
  text-align: center;
}

.hero-logo {
  max-width: 620px;
  width: 88%;
  height: auto;
  margin: 0 auto 34px;
  display: block;
}

.wordmark {
  font-size: clamp(38px, 8vw, 68px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 26px;
}

.wordmark .mayhem { color: var(--accent); }

.hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(18px, 2.4vw, 21px);
  line-height: 1.55;
  color: var(--text-mid);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.section-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.section-head span {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Product cards ---------- */

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

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--ca) 40%, transparent);
  transform: translateY(-2px);
}

/* per-product accents, sampled from each logo */
.card--redact { --ca: #F01414; --ca-text: #FF6B6B; }
.card--gamma  { --ca: #66FF33; --ca-text: #8CFF66; }
.card--kaboom { --ca: #FFC400; --ca-text: #FFD24D; }

/* black art band — uniform height, any logo aspect ratio.
   object-fit:contain on a fully-sized box is what keeps a square icon and a wide
   wordmark the same visual weight without either overflowing the band. */
.art {
  height: 172px;
  padding: 24px 30px;
  overflow: hidden;
  background: var(--bg-plate);
  border-bottom: 1px solid var(--line-soft);
}

/* <picture> is inline by default — give it a real box so the img's
   percentage height has something definite to resolve against. */
.art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 26px 24px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.card h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.card .kind {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ca-text);
}

.card p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-mid);
}

.card ul {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--text-mid);
}

.card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 7px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ca);
  opacity: 0.8;
}

.card .foot { margin-top: auto; }

.card .link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--ca) 45%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.card .link:hover { border-color: var(--ca); color: var(--ca-text); }

/* Status pills */

.status {
  flex-shrink: 0;
  padding: 4px 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.status.live {
  border-color: color-mix(in srgb, var(--ca) 40%, transparent);
  color: var(--ca-text);
}

.status.soon {
  border-color: color-mix(in srgb, var(--ca) 34%, transparent);
  color: var(--ca-text);
}

/* ---------- Prose (privacy / support) ---------- */

.prose { max-width: 760px; padding: 8px 0 40px; }

.prose h1 {
  font-size: clamp(30px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.prose .meta {
  margin: 0 0 40px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.prose p, .prose li {
  color: var(--text-mid);
  font-size: 16.5px;
  line-height: 1.7;
}

.prose p { margin: 0 0 16px; }

.prose ul { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.prose strong { color: var(--text); font-weight: 600; }

.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-text); }

.callout {
  margin: 0 0 32px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--accent);
  border-radius: 10px;
}

.callout p:last-child { margin-bottom: 0; }

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

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 30px 0 54px;
  border-top: 1px solid var(--line-soft);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 14px;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover { color: var(--text); }

.footer-links { display: flex; gap: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 60px; }
  .section { padding: 44px 0; }
  .nav { gap: 18px; font-size: 14px; }
  .art { height: 128px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

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