/* fourfifty production — brand hub
   Deep-space identity: cream on #0A0613, purple Saturn accent, per-channel hues. */

:root {
  --space:    #0A0613;
  --space-2:  #110A1E;
  --panel:    rgba(245, 243, 238, 0.035);
  --panel-2:  rgba(245, 243, 238, 0.05);
  --cream:    #F5F3EE;
  --muted:    rgba(245, 243, 238, 0.64);
  --faint:    rgba(245, 243, 238, 0.40);
  --line:     rgba(245, 243, 238, 0.10);
  --line-2:   rgba(245, 243, 238, 0.16);

  --purple:    #8533B7;
  --purple-lt: #E3C6F6;
  --purple-dk: #42105F;
  --green:     #6B8E3A;
  --green-lt:  #B6DD78;

  --ocean:   #1CA3C7;
  --animal:  #6B8E3A;
  --brain:   #A85FD6;
  --universe:#9A4BD0;

  --accent: var(--universe);

  --maxw: 1140px;
  --font-display: "Clash Display", "Geist", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--space);
  color: var(--cream);
  line-height: 1.62;
  font-size: 17px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- cosmic backdrop ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 82% 88%, rgba(133, 51, 183, 0.30), transparent 70%),
    radial-gradient(48% 40% at 12% 8%, rgba(107, 142, 58, 0.18), transparent 70%),
    radial-gradient(90% 70% at 50% -10%, rgba(66, 16, 95, 0.35), transparent 70%),
    var(--space);
}
.bg::before {
  /* faint starfield */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%, rgba(245,243,238,0.7), transparent),
    radial-gradient(1.2px 1.2px at 70% 18%, rgba(245,243,238,0.55), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(245,243,238,0.5), transparent),
    radial-gradient(1.3px 1.3px at 88% 60%, rgba(245,243,238,0.55), transparent),
    radial-gradient(1px 1px at 12% 82%, rgba(245,243,238,0.45), transparent),
    radial-gradient(1.1px 1.1px at 58% 48%, rgba(245,243,238,0.4), transparent);
  background-repeat: repeat;
  background-size: 620px 620px, 520px 520px, 700px 700px, 480px 480px, 560px 560px, 640px 640px;
  opacity: 0.6;
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
section { padding: 96px 0; }
.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 6, 19, 0.62);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand svg { width: 30px; height: 30px; display: block; }
.brand b { font-weight: 600; }
.brand span { color: var(--faint); font-weight: 500; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-cta {
  border: 1px solid var(--line-2);
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--cream) !important;
}
.nav-cta:hover { background: var(--panel-2); border-color: var(--purple); }
.nav-burger { display: none; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 80px; position: relative; }
.hero-mark { width: 132px; margin-bottom: 34px; filter: drop-shadow(0 18px 50px rgba(133,51,183,0.45)); }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 7.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero h1 .accent {
  background: linear-gradient(115deg, var(--purple-lt), var(--purple) 55%, var(--green-lt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.55;
}
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 100px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-primary {
  background: linear-gradient(120deg, var(--purple), var(--purple-dk));
  color: var(--cream);
  box-shadow: 0 10px 30px -8px rgba(133, 51, 183, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -8px rgba(133, 51, 183, 0.75); }
.btn-ghost { border-color: var(--line-2); color: var(--cream); background: var(--panel); }
.btn-ghost:hover { border-color: var(--purple-lt); transform: translateY(-2px); }

/* ---------- section heading ---------- */
.sec-head { max-width: 60ch; margin-bottom: 52px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 52ch; }

/* ---------- channels ---------- */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.ch-card {
  --accent: var(--universe);
  position: relative;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--cream);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ch-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.ch-card:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -22px color-mix(in srgb, var(--accent) 70%, black); }
.ch-card:hover::after { opacity: 1; }
.ch-avatar {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 28px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}
.ch-body { min-width: 0; }
.ch-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ch-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); flex: 0 0 auto; }
.ch-handle { color: var(--faint); font-size: 14px; margin-top: 2px; }
.ch-tag { margin-top: 12px; font-size: 15.5px; color: var(--cream); font-weight: 500; }
.ch-niche { margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.ch-watch {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.ch-watch svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.ch-card:hover .ch-watch svg { transform: translateX(4px); }

/* ---------- about ---------- */
.about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.about-lead em { color: var(--purple-lt); font-style: normal; }
.about-body p { color: var(--muted); margin-bottom: 16px; }
.stats { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--cream); }
.stat .l { font-size: 13px; color: var(--faint); letter-spacing: 0.04em; }

/* ---------- transparency cards ---------- */
.trust { border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-card {
  display: block;
  padding: 30px;
  border-radius: var(--r-md);
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.trust-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.trust-ico { width: 30px; height: 30px; color: var(--purple-lt); margin-bottom: 16px; }
.trust-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.trust-card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.trust-card .more { margin-top: 14px; font-size: 13.5px; color: var(--purple-lt); font-weight: 600; }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--line); }
.contact-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 140% at 90% 10%, rgba(133,51,183,0.18), transparent 60%),
    var(--panel);
  padding: 56px;
  text-align: center;
}
.contact-card h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; }
.contact-card p { color: var(--muted); margin: 14px auto 0; max-width: 44ch; }
.mail-link {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid color-mix(in srgb, var(--purple) 60%, transparent);
  padding-bottom: 4px;
  transition: border-color 0.25s var(--ease), color 0.25s;
}
.mail-link:hover { color: var(--purple-lt); border-color: var(--purple-lt); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
}
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 44px; }
.foot-brand { max-width: 34ch; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; margin-bottom: 11px; transition: color 0.2s; }
.foot-col a:hover { color: var(--cream); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}
.foot-bottom .disclosure { max-width: 60ch; }

/* ---------- doc / subpages ---------- */
.doc-hero { padding: 110px 0 40px; border-bottom: 1px solid var(--line); }
.doc-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.doc-hero p { color: var(--muted); font-size: 19px; margin-top: 18px; max-width: 60ch; }
.doc { padding: 60px 0 96px; }
.doc-body { max-width: 74ch; }
.doc-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 44px 0 14px;
  scroll-margin-top: 90px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 18px; font-weight: 600; margin: 26px 0 8px; color: var(--cream); }
.doc-body p { color: var(--muted); margin-bottom: 16px; }
.doc-body a { color: var(--purple-lt); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body a:hover { color: var(--cream); }
.doc-body ul { margin: 0 0 18px; padding-left: 0; list-style: none; }
.doc-body li { color: var(--muted); padding-left: 26px; position: relative; margin-bottom: 10px; }
.doc-body li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.doc-body strong { color: var(--cream); font-weight: 600; }
.doc-body code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 7px;
  color: var(--purple-lt);
}

.callout {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  margin: 28px 0;
}
.callout svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--purple-lt); margin-top: 2px; }
.callout p { margin: 0; color: var(--cream); font-size: 15px; }
.callout p span { color: var(--muted); }

/* license list */
.lic { border-top: 1px solid var(--line); margin-top: 40px; }
.lic-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.lic-row dt { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--cream); }
.lic-row dd { color: var(--muted); font-size: 14.5px; }
.lic-row dd a { color: var(--purple-lt); }
.tag-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  margin: 0 6px 6px 0;
}

/* code-style credit sample */
.sample {
  background: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 22px 0;
}
.sample .k { color: var(--purple-lt); }

/* back link */
.backlink { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); text-decoration: none; font-size: 14px; margin-top: 40px; transition: color 0.2s; }
.backlink:hover { color: var(--cream); }

/* 404 */
.nf { min-height: 70vh; display: grid; place-content: center; text-align: center; }
.nf .saturn { width: 120px; margin: 0 auto 30px; }
.nf h1 { font-family: var(--font-display); font-size: clamp(40px, 8vw, 80px); letter-spacing: -0.04em; }
.nf p { color: var(--muted); margin: 12px 0 28px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  section { padding: 72px 0; }
  .channels-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 6, 19, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-links.open a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links.open .nav-cta { border: 1px solid var(--line-2); text-align: center; margin-top: 12px; }
  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: 0.25s var(--ease); }
  .contact-card { padding: 36px 24px; }
  .lic-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 460px) {
  .ch-card { flex-direction: column; gap: 16px; }
  .foot-cols { gap: 36px; }
}

/* ---------- helper classes (replace inline styles for a strict CSP) ---------- */
.ch--universe { --accent: var(--universe); }
.ch--ocean    { --accent: var(--ocean); }
.ch--animal   { --accent: var(--animal); }
.ch--brain    { --accent: var(--brain); }
.eyebrow.tight { margin-bottom: 14px; }
.tlink { color: var(--purple-lt); text-decoration: underline; text-underline-offset: 3px; }
.tlink:hover { color: var(--cream); }
.foot-bottom.bare { border-top: none; padding-top: 0; }
