/* ====== $BRUCE — FULL MEME OFFENSIVE (LEGO / brainrot / ADHD UI) ====== */

:root {
  --bg: #05050a;
  --fg: #f7f7ff;
  --muted: rgba(247, 247, 255, 0.72);
  --line: rgba(247, 247, 255, 0.12);
  --glass: rgba(247, 247, 255, 0.06);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius2: 28px;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  color: var(--fg);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.92;
}

.noise {
  position: fixed;
  inset: -40px;
  pointer-events: none;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(26px);
  background: rgba(5, 5, 10, 0.55);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  user-select: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  object-fit: cover;
  outline: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.nav {
  display: flex;
  gap: 16px;
}
.nav a {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.04em;
}
.nav a:hover {
  color: var(--fg);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 18px 34px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: center;
  min-height: 86vh;
}

.headline {
  margin: 18px 0 12px;
  font-size: clamp(44px, 5.6vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.headline-accent {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 14px;
  border-radius: 16px;
  border: 1px solid rgba(247, 247, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.03)
  );
  transform: none;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.35);
}

.subhead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 18px;
  max-width: 60ch;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(247, 247, 255, 0.04);
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.38);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn:hover {
  transform: translateY(-2px) scale(1.02) rotate(-0.2deg);
}
.btn.primary {
  background: linear-gradient(
    135deg,
    rgba(255, 90, 196, 0.26),
    rgba(88, 226, 255, 0.2)
  );
  border-color: rgba(247, 247, 255, 0.22);
}
.btn.ghost {
  background: rgba(247, 247, 255, 0.03);
}

.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  filter: saturate(0.7);
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(247, 247, 255, 0.03);
  max-width: 760px;
}

.ca-label {
  font-weight: 1000;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
}

.ca-button {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  color: var(--fg);
  background: rgba(247, 247, 255, 0.05);
  border: 1px dashed rgba(247, 247, 255, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}
.ca-button:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 247, 255, 0.4);
}

.copy-hint {
  color: var(--muted);
  font-size: 12px;
  min-height: 16px;
}

.micro {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.micro-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(88, 226, 255, 0.65);
  box-shadow: 0 0 0 7px rgba(88, 226, 255, 0.14);
}

.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-6px);
}

.gif-frame {
  width: min(560px, 100%);
  border-radius: var(--radius2);
  border: 1px solid rgba(247, 247, 255, 0.18);
  background: linear-gradient(
    135deg,
    rgba(247, 247, 255, 0.09),
    rgba(247, 247, 255, 0.02)
  );
  box-shadow: var(--shadow);
  padding: 10px;
  position: relative;
}

.gif-frame::after {
  content: "";
  position: absolute;
  inset: -18px;
  background: radial-gradient(
      220px 160px at 30% 25%,
      rgba(255, 90, 196, 0.26),
      transparent 60%
    ),
    radial-gradient(
      260px 180px at 70% 70%,
      rgba(88, 226, 255, 0.26),
      transparent 60%
    ),
    radial-gradient(
      240px 160px at 40% 85%,
      rgba(255, 210, 88, 0.2),
      transparent 60%
    );
  filter: blur(22px);
  z-index: -1;
  border-radius: 52px;
  opacity: 0.95;
}

.hero-gif {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  outline: 1px solid rgba(0, 0, 0, 0.28);
}

/* Marquee */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 10, 0.48);
  overflow: hidden;
}
.marquee {
  box-shadow: inset 0 0 0 1px rgba(247, 247, 255, 0.04);
}
.marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 16px;
  width: max-content;
  padding: 12px 0;
  will-change: transform;
  animation: scroll 16s linear infinite;
}
.chip {
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 15px;
  color: rgba(247, 247, 255, 0.9);
  padding-right: 2rem;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 58px 18px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  background: rgba(247, 247, 255, 0.03);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}
.card.big {
  padding: 18px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.card p {
  margin: 0 0 10px;
  color: rgba(247, 247, 255, 0.82);
  line-height: 1.5;
}
.card p:last-child {
  margin-bottom: 0;
}

.bullets {
  margin: 0;
  padding-left: 18px;
  color: rgba(247, 247, 255, 0.84);
  line-height: 1.7;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.link {
  border: 1px solid rgba(247, 247, 255, 0.16);
  border-radius: 16px;
  padding: 16px 14px;
  background: rgba(247, 247, 255, 0.03);
  font-weight: 1000;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26);
  transition: transform 0.12s ease;
}
.link:hover {
  transform: translateY(-2px) rotate(-0.2deg);
}

.note {
  margin-top: 14px;
  border: 1px dashed rgba(247, 247, 255, 0.22);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  background: rgba(247, 247, 255, 0.02);
}

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 18px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  object-fit: cover;
  outline: 1px solid var(--line);
}
.footer a {
  color: var(--muted);
  font-weight: 900;
}
.footer a:hover {
  color: var(--fg);
}

/* Responsive */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sticker-stack {
    right: 6px;
    bottom: -10px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .nav {
    display: none;
  }
  .links {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .headline {
    font-size: 46px;
  }
}

/* Global font normalization (no random serif/italic look) */
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
span,
li,
button,
small {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system,
    Segoe UI, Roboto, Helvetica, Arial;
}
em {
  font-style: normal;
  font-weight: 600;
}
strong {
  font-weight: 700;
}

/* Body copy sizing */
p,
li {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.005em;
}
@media (max-width: 560px) {
  p,
  li {
    font-size: 16px;
  }
}

/* Safety: if bg-gif nodes ever exist, hide them */
.bg-gif,
.bg-overlay {
  display: none !important;
}

/* === Background ONLY: use the same GIF behind everything (UI unchanged) === */
html {
  background: var(--bg);
}
body {
  background: transparent;
  position: relative;
}

/* GIF layer */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: url("https://github.com/pr0meth4z1ne/brucewayne/blob/main/gif2.gif?raw=true")
    center 12% / cover no-repeat;
  /* make it visible, but not overpowering */
  filter: saturate(1.12) contrast(1.05) brightness(0.85) blur(1.5px);
  transform: scale(1.02);
}

/* readability overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(
      900px 600px at 12% 10%,
      rgba(255, 90, 196, 0.14),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 88% 14%,
      rgba(88, 226, 255, 0.12),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 56% 96%,
      rgba(255, 210, 88, 0.09),
      transparent 60%
    ),
    radial-gradient(
      650px 520px at 50% 55%,
      rgba(172, 88, 255, 0.05),
      transparent 60%
    ),
    linear-gradient(
      180deg,
      rgba(5, 5, 10, 0.4) 0%,
      rgba(5, 5, 10, 0.62) 55%,
      rgba(5, 5, 10, 0.8) 100%
    );
}

@media (min-width: 1200px) {
  body::before {
    background-position: center 10%;
  }
}
@media (max-width: 600px) {
  body::before {
    background-position: center 16%;
  }
}

/* Contract section */
#contract .contract-wrap {
  margin-top: 16px;
}

#contract .contract-card {
  max-width: 1200px;
}

.contract-copy {
  width: 100%;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(246, 246, 251, 0.14);
  background: rgba(246, 246, 251, 0.04);
  color: rgba(246, 246, 251, 0.9);
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, border-color 0.12s ease,
    background 0.12s ease;
}

.contract-copy:hover {
  transform: translateY(-1px);
  border-color: rgba(246, 246, 251, 0.26);
  background: rgba(246, 246, 251, 0.06);
}

.contract-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(246, 246, 251, 0.78);
}

.contract-hint {
  display: block;
  margin-top: 10px;
  min-height: 16px;
  color: rgba(246, 246, 251, 0.7);
  font-size: 12px;
}

/* === About / Contract / Links: bigger + tighter spacing (leave hero/background/layout untouched) === */

/* Reduce the empty space BETWEEN these three sections (sum of paddings) */
#about.section {
  padding-bottom: 28px;
}
#contract.section {
  padding-top: 28px;
  padding-bottom: 28px;
}
#links.section {
  padding-top: 28px;
}

@media (max-width: 920px) {
  #about.section {
    padding-bottom: 24px;
  }
  #contract.section {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  #links.section {
    padding-top: 24px;
  }
}
@media (max-width: 560px) {
  #about.section {
    padding-bottom: 20px;
  }
  #contract.section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  #links.section {
    padding-top: 20px;
  }
}

/* Make the content in these sections more present */
#about h2,
#contract h2,
#links h2 {
  font-size: 52px;
  letter-spacing: -0.02em;
}

#about .card.big {
  padding: 46px;
  border-radius: 38px;
}

#about .card.big h3 {
  font-size: 17px;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}

#about .card.big p {
  font-size: 24px;
  line-height: 1.75;
}

#contract .contract-card {
  padding: 42px;
  border-radius: 38px;
  max-width: 1200px;
}

#contract .contract-copy {
  padding: 18px 18px;
  border-radius: 20px;
}

#contract .contract-value {
  font-size: 15px;
}

#links .links {
  gap: 18px;
}

#links .link {
  padding: 22px 20px;
  border-radius: 22px;
  font-size: 16px;
}

@media (max-width: 920px) {
  #about h2,
  #contract h2,
  #links h2 {
    font-size: 44px;
  }
  #about .card.big {
    padding: 38px;
    border-radius: 34px;
  }
  #about .card.big p {
    font-size: 21px;
  }
  #contract .contract-card {
    padding: 36px;
    border-radius: 34px;
  }
  #links .link {
    padding: 20px 18px;
    font-size: 15px;
  }
}

@media (max-width: 560px) {
  #about h2,
  #contract h2,
  #links h2 {
    font-size: 36px;
  }
  #about .card.big {
    padding: 28px;
    border-radius: 28px;
  }
  #about .card.big p {
    font-size: 18px;
    line-height: 1.65;
  }
  #contract .contract-card {
    padding: 28px;
    border-radius: 28px;
  }
  #links .link {
    padding: 18px 16px;
    font-size: 14px;
    border-radius: 18px;
  }
}

/* Hero CA copy icon (keep this!) */
#copyCa {
  position: relative;
  padding-right: 44px;
}
#copyCa::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-color: rgba(247, 247, 255, 0.88);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%2210%22%20height%3D%2210%22%20rx%3D%222%22/%3E%0A%3Cpath%20d%3D%22M5%2015H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a2%202%200%200%201%202%202v1%22/%3E%0A%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%2210%22%20height%3D%2210%22%20rx%3D%222%22/%3E%0A%3Cpath%20d%3D%22M5%2015H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a2%202%200%200%201%202%202v1%22/%3E%0A%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.78;
  pointer-events: none;
}

/* Topbar CA copy */
.top-ca {
  display: inline-flex;
  align-items: center;
  padding: 10px 44px 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(247, 247, 255, 0.14);
  background: rgba(247, 247, 255, 0.04);
  color: rgba(247, 247, 255, 0.88);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}
.top-ca:hover {
  border-color: rgba(247, 247, 255, 0.24);
  background: rgba(247, 247, 255, 0.06);
  transform: translateY(-1px);
}
.top-ca::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-color: rgba(247, 247, 255, 0.9);
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%2210%22%20height%3D%2210%22%20rx%3D%222%22/%3E%0A%3Cpath%20d%3D%22M5%2015H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a2%202%200%200%201%202%202v1%22/%3E%0A%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%0A%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%2210%22%20height%3D%2210%22%20rx%3D%222%22/%3E%0A%3Cpath%20d%3D%22M5%2015H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a2%202%200%200%201%202%202v1%22/%3E%0A%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.78;
  pointer-events: none;
}
@media (max-width: 560px) {
  .top-ca {
    display: none;
  }
}
