/* Early-2000s chrome style */

:root {
  --bg: #000000;
  --text: #ffffff;
  --green: #4fba5b;
  --blue: #3399ff;
  --blue-light: #7fbfff;
  --pink-light: #ff9fd0;
  --max-width: 928px; /* widest the content gets */
  --gutter: clamp(1rem, 4vw, 2.5rem); /* side margin: 16px on phones up to 40px */
  color-scheme: dark;
}

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

html {
  background-color: var(--bg);
}

/* Custom cursor: 48px pixel-art cat; the click point is the arrow tip at (8, 8).
   Falls back to the normal cursor if the image can't load. */
html,
a,
button {
  cursor: url("img/cursor.png") 8 8, auto;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  line-height: 1.6;
  color: var(--text);
}

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

.page {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-width) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 2rem var(--gutter) 2.5rem;
  text-align: center;
}

.logo {
  width: clamp(4.5rem, 18vw, 9rem);
  margin: 0 auto;
  mix-blend-mode: screen; /* drops the logo's black background over the glow */
}

/* Logo flanked by the spinning 1080 Ti, mirrored on the right */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 5vw, 2rem);
}

.logo-row .logo {
  margin: 0;
}

.gpu {
  flex: none;
  width: clamp(3.25rem, 18vw, 7rem);
}

.gpu img {
  width: 100%;
}

.gpu--mirrored {
  transform: scaleX(-1);
}

/* Metallic gradient lettering */
.title {
  margin: 1rem 0 0.5rem;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 9.4vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d8ffd8;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #e2ffe5 40%,
    #4fba5b 50%,
    #1c5a26 55%,
    #8fe39a 80%,
    #f0fff2 100%
  );
  /* One gradient per line, so wrapped lines match */
  background-size: 100% 1.1em;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35)) drop-shadow(0 4px 10px rgba(79, 186, 91, 0.4));
}

.tagline {
  margin: 0 auto;
  max-width: 40rem;
  font-size: clamp(0.9rem, 4.7vw, 1.3rem);
  letter-spacing: 0.03em;
  color: var(--green);
  text-wrap: balance;
}

.tagline-base {
  color: var(--blue-light);
}

/* Contract address with copy button */
.ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.4rem;
  margin: 0.9rem auto 0;
  font-size: clamp(0.65rem, 2.6vw, 1rem);
}

.ca-label {
  font-weight: bold;
  color: var(--blue-light);
}

.ca-address {
  font-family: Menlo, Consolas, "Courier New", monospace;
  font-size: 1em;
  color: var(--blue-light);
  overflow-wrap: anywhere;
  user-select: all;
}

/* The address is clickable too (copies it), so hint at that on hover */
.ca-address:hover {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.ca-copy {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2em;
  height: 2em;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid #4a86d1;
  border-radius: 6px;
  color: var(--blue-light);
  background: linear-gradient(180deg, #24497a 0%, #0c1a30 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.ca-copy:hover {
  color: #ffffff;
  border-color: var(--blue-light);
}

.ca-copy:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.ca-copy .icon-done,
.ca-copy.copied .icon-copy {
  display: none;
}

.ca-copy.copied .icon-done {
  display: block;
  color: var(--green);
}

/* "Copied" tooltip above the button */
.ca-copy.copied::after {
  content: "Copied";
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
  color: #000000;
  background: var(--green);
  pointer-events: none;
}

/* Announced to screen readers only */
.ca-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.divider {
  width: 70%;
  min-width: min(100%, 480px); /* full column width on narrow screens */
  height: 6px;
  margin: 2rem auto;
  border: 0;
  border-radius: 3px;
  /* Green chrome bar, fading out at both ends */
  background: linear-gradient(
    180deg,
    #eaffea 0%,
    #9fe6a8 35%,
    #2f7d3a 50%,
    #14451c 62%,
    #6fcf7c 85%,
    #d8ffd8 100%
  );
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}

/* Glossy green chrome panel */
.hero {
  position: relative;
  margin: 0;
  padding: clamp(4px, 1vw, 6px); /* same frame thickness as the team photos */
  border: 1px solid #4fba5b;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f7a3a 0%, #0f2a14 40%, #050c06 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(159, 230, 168, 0.55),
    0 10px 30px rgba(0, 0, 0, 0.9),
    0 0 24px rgba(79, 186, 91, 0.3);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero img {
  position: relative;
  width: 100%;
}

/* Sections below the hero: content is leading-aligned */
.section {
  margin-top: 2.5rem;
  text-align: start;
}

/* Section headings: blue chrome */

.section-heading {
  margin: 0 0 1rem;
  text-align: start;
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 5vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cfe6ff;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #d6ecff 40%,
    #4f86d1 50%,
    #1a3c75 55%,
    #7fbfff 80%,
    #eaf5ff 100%
  );
  /* One gradient per line, so wrapped lines match */
  background-size: 100% 1.15em;
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35)) drop-shadow(0 3px 8px rgba(51, 153, 255, 0.35));
}

/* Pink chrome variant (Meet the team) */
.section--pink .section-heading {
  color: #ffd6ea;
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffe0f0 40%,
    #e0569b 50%,
    #7a1f4e 55%,
    #ff8fc8 80%,
    #fff0f7 100%
  );
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35)) drop-shadow(0 3px 8px rgba(255, 105, 180, 0.35));
}

/* Team: four columns, dropping to two on phone-sized screens */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 3vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.member {
  margin: 0;
}

/* Small pink chrome frame (on the wrapper, so the photo inside can be rounded) */
.member picture {
  display: block;
  padding: clamp(4px, 1vw, 6px);
  border: 1px solid #b03a78;
  border-radius: 10px;
  background: linear-gradient(180deg, #5a1f42 0%, #24091a 40%, #0d0409 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(255, 143, 200, 0.55),
    0 6px 18px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(255, 105, 180, 0.25);
}

/* Photos inside chrome frames get slightly rounded corners and a thin inner edge */
.member img,
.hero img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.member figcaption {
  margin-top: 0.5rem;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  font-weight: bold;
  color: var(--text);
}

@media (max-width: 600px) {
  .member figcaption {
    font-size: clamp(0.85rem, 3.5vw, 1.05rem);
  }
}

.note {
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  font-style: italic;
  color: var(--pink-light);
}

/* Product shot: no frame, centred, with space below the heading */
.product {
  display: block;
  max-width: min(360px, 62vw); /* 360px on desktop, about 60% of the width on phones */
  margin: 2rem auto 0;
}

.product img {
  width: 100%;
}

.site-footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer p {
  margin: 0;
}
