/* azerr.dev: bright sky banner (like the channel) over a clean dark page */
:root {
  --bg: #0f1114;
  --card: #181b20;
  --card-hover: #1f232a;
  --line: #262b33;
  --text: #f1f3f6;
  --muted: #9aa3ae;
  --green: #2ee05a;
  --red: #ff0033;
  --blurple: #5865f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Fine grain so the dark page isn't flat */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Sky ---------- */
.sky {
  position: absolute;
  inset: 0 0 auto;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

.sky img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 16px 72px;
  text-align: center;
}

.avatar {
  width: 120px;
  height: 120px;
  border: 4px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #bfe6fb;
  box-shadow: 0 0 0 4px #000, 0 10px 28px rgba(10, 60, 110, 0.4);
}

/* Big black-outlined text, like the banner's "Subscribers" */
.hero-name {
  margin: 14px 0 0;
  color: #fff;
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(4.2rem, 15vw, 8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.09em #000;
  paint-order: stroke fill;
  filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.25));
}

.hero-tagline {
  margin: 14px 0 0;
  color: #fff;
  font-family: 'Lilita One', sans-serif;
  font-size: clamp(1.25rem, 4.2vw, 1.8rem);
  -webkit-text-stroke: 0.14em #000;
  paint-order: stroke fill;
}

/* Subscriber goal bar: green segments in a black-outlined pill */
.goal {
  width: min(560px, 100%);
  margin-top: 26px;
}

.goal-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.goal-end {
  flex-shrink: 0;
  color: #fff;
  font-family: 'Lilita One', sans-serif;
  font-size: 1.5rem;
  -webkit-text-stroke: 0.16em #000;
  paint-order: stroke fill;
}

.goal-bar {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  height: 30px;
  padding: 4px;
  border: 4px solid #000;
  border-radius: 999px;
  background: #1b1d22;
}

.goal-bar span {
  --fill: 0;
  border-radius: 3px;
  background: linear-gradient(to right, var(--green) calc(var(--fill) * 100%), #33363d calc(var(--fill) * 100%));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18), inset 0 3px 0 rgba(255, 255, 255, 0.25);
}

.goal-bar span:first-child {
  border-radius: 999px 3px 3px 999px;
}

.goal-bar span:last-child {
  border-radius: 3px 999px 999px 3px;
}

.goal-label {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(10, 20, 35, 0.55);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(10, 50, 100, 0.3);
  transition: transform 0.12s, filter 0.15s;
}

.button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button svg {
  width: 22px;
  height: 22px;
}

.button.subscribe {
  background: #0f0f0f;
}

.button.subscribe svg {
  color: var(--red);
}

.button.subscribe svg path {
  fill: #fff;
}

.button.discord {
  background: var(--blurple);
}

.button.discord svg {
  color: #fff;
}

/* ---------- Sections ---------- */
main {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 28px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.see-all {
  color: #3ea6ff;
  font-weight: 600;
  text-decoration: none;
}

.see-all:hover {
  text-decoration: underline;
}

/* ---------- Videos (YouTube-style cards) ---------- */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px 18px;
}

.video {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  text-decoration: none;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.video:hover .video-thumb img {
  transform: scale(1.04);
}

.video-length {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.video-title {
  font-weight: 600;
  line-height: 1.35;
}

.video-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---------- About ---------- */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.about p {
  flex: 1 1 380px;
  margin: 0;
  color: var(--muted);
}

.stats {
  display: flex;
  gap: 28px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-family: 'Lilita One', sans-serif;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Links ---------- */
.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.link-card:hover {
  background: var(--card-hover);
  transform: translateY(-2px);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

.link-icon.youtube {
  background: var(--red);
  color: #fff;
}

.link-icon.youtube svg path {
  fill: var(--red);
}

.link-icon.discord {
  background: var(--blurple);
  color: #fff;
}

.link-icon.x {
  background: #fff;
  color: #000;
}

.link-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.link-text strong {
  font-weight: 700;
}

.link-text small {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 16px calc(36px + env(safe-area-inset-bottom));
  color: #5f6873;
  font-size: 0.85rem;
  text-align: center;
}

/* ---------- Contact pill (top right) ---------- */
.contact {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 10;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 3px solid #000;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 0 #000;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.contact-pill:hover {
  transform: translateY(-1px);
}

.contact-pill:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #000;
}

.contact-pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.contact-card[hidden] {
  display: none;
}

.contact-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.contact-email {
  margin: 4px 0 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  user-select: all;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  gap: 8px;
}

.contact-copy,
.contact-mail {
  padding: 7px 14px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.contact-copy {
  background: var(--card-hover);
  color: var(--text);
  border: 1px solid var(--line);
}

.contact-mail {
  background: #3ea6ff;
  color: #04121f;
}
