:root {
  --bg: #06070d;
  --bg-soft: #0e1018;
  --panel: rgba(14, 16, 26, 0.78);
  --panel-strong: rgba(9, 10, 17, 0.9);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f7efe6;
  --muted: #b7aeb9;
  --pink: #ff3fc8;
  --cyan: #1bd7ff;
  --amber: #ffc071;
  --green: #9be76d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Trebuchet MS", Verdana, system-ui, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.45;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(3, 4, 8, 0.48), rgba(3, 4, 8, 0.48)),
    url("assets/sleep-deprived-dad-hero.jpg");
  background-position: center;
  background-size: cover;
  filter: saturate(1.05) contrast(1.04);
}

.site-header,
main,
.dev-bar,
.site-footer {
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--cyan);
  color: #001018;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(6, 7, 13, 0.76);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 63, 200, 0.7);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(255, 63, 200, 0.22), rgba(27, 215, 255, 0.16));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 63, 200, 0.8);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.72rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a {
  padding: 0.62rem 0.82rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: auto;
  overflow: hidden;
  isolation: isolate;
}

.hero-art,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-art {
  display: none;
}

.hero-overlay {
  z-index: 0;
  background: transparent;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 2rem;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 32px;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.92;
  overflow-wrap: break-word;
  text-transform: uppercase;
  text-shadow:
    0 0 22px rgba(255, 63, 200, 0.45),
    0 12px 34px rgba(0, 0, 0, 0.75);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.lede {
  max-width: 680px;
  color: #f1e4dc;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.button-primary {
  border-color: rgba(255, 63, 200, 0.8);
  background: linear-gradient(135deg, var(--pink), #7b4dff 55%, var(--cyan));
  color: #fff;
  box-shadow: 0 16px 38px rgba(255, 63, 200, 0.22);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 680px;
  margin-top: 1.75rem;
}

.hero-stats div,
.daily-card,
.community-card,
.chat-panel,
.crt-link,
.merch-card,
.sponsor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-stats div {
  padding: 0.9rem;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-stats strong {
  display: block;
  margin-top: 0.2rem;
  color: var(--amber);
  font-size: 0.98rem;
}

.daily-card {
  padding: 1.25rem;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(11, 12, 20, 0.78);
}

.daily-card ul {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: #f6eadf;
  font-size: 1rem;
}

.daily-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.daily-card li span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 3px;
  box-shadow: inset 0 0 10px rgba(27, 215, 255, 0.12);
}

.scribble {
  margin: 1rem 0 0;
  color: var(--pink);
  font-size: 1.2rem;
  font-weight: 900;
  transform: rotate(-3deg);
}

.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 0;
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow),
.watch-copy p,
.merch-copy p,
.community-card p {
  color: var(--muted);
}

.watch-section,
.merch-section,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.watch-section {
  padding-top: 28px;
}

.watch-copy,
.merch-copy,
.community-card {
  padding: 2rem;
}

.watch-copy,
.merch-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 17, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.watch-copy {
  border-left: 3px solid var(--pink);
}

.merch-copy {
  border-left: 3px solid var(--cyan);
}

.crt-link {
  position: relative;
  display: grid;
  min-height: 360px;
  padding: 2rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(11, 22, 31, 0.72), rgba(6, 12, 18, 0.88)),
    url("_ GIFYPET __files/sparkle.gif");
  color: #b9f8ff;
  text-decoration: none;
  text-transform: uppercase;
}

.crt-link::before {
  position: absolute;
  inset: 0;
  content: "";
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 5px);
  opacity: 0.22;
}

.crt-label,
.crt-menu,
.crt-action {
  position: relative;
}

.crt-label {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 22px rgba(27, 215, 255, 0.55);
}

.crt-menu {
  align-self: center;
  color: #dffcff;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 900;
  line-height: 1.7;
}

.crt-action {
  align-self: end;
  color: var(--amber);
  font-weight: 900;
}

.merch-card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  min-height: 430px;
  place-items: center;
  padding: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 63, 200, 0.22), transparent 16rem),
    radial-gradient(circle at 50% 90%, rgba(255, 192, 113, 0.2), transparent 15rem),
    rgba(9, 10, 17, 0.9);
  text-align: center;
  text-decoration: none;
}

.merch-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(255, 63, 200, 0.18), transparent 34%),
    linear-gradient(315deg, rgba(27, 215, 255, 0.15), transparent 34%);
}

.merch-badge,
.merch-image-wrap,
.merch-card-title,
.merch-card-note {
  position: relative;
}

.merch-badge {
  justify-self: start;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(27, 215, 255, 0.45);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.merch-image-wrap {
  display: grid;
  width: min(250px, 78%);
  aspect-ratio: 5 / 7;
  place-items: center;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 36px rgba(255, 63, 200, 0.22),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.merch-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.merch-card-title {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.merch-card-note {
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.merch-card:hover,
.merch-card:focus-visible {
  border-color: rgba(255, 63, 200, 0.65);
  transform: translateY(-2px);
}

.community-card {
  background: var(--panel-strong);
}

.link-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.link-list a {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: rgba(27, 215, 255, 0.65);
}

.chat-panel {
  min-height: 520px;
  overflow: hidden;
  background: #0b0d13;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chat-panel iframe {
  display: block;
  width: 100%;
  height: calc(100% - 44px);
  min-height: 476px;
  border: 0;
  background: #fff;
}

.sponsors-section {
  padding-bottom: 70px;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.sponsor-card {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  text-decoration: none;
}

.sponsor-card img {
  max-height: 92px;
  object-fit: contain;
}

.sponsor-card span {
  margin-top: 1rem;
  color: var(--amber);
  font-weight: 900;
  text-transform: uppercase;
}

.creator-code {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px dashed rgba(255, 192, 113, 0.45);
  border-radius: 8px;
  background: rgba(255, 192, 113, 0.08);
  color: var(--text);
  text-align: center;
}

.creator-code strong {
  color: var(--green);
}

.dev-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 1rem;
  border: 1px solid rgba(27, 215, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(27, 215, 255, 0.13), rgba(255, 63, 200, 0.12)), rgba(9, 10, 17, 0.88);
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(18px);
}

.dev-bar span {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dev-bar small {
  color: var(--muted);
  font-weight: 800;
}

.dev-bar:hover,
.dev-bar:focus-visible {
  border-color: rgba(255, 63, 200, 0.65);
  transform: translateY(-2px);
}

.site-footer {
  display: grid;
  gap: 0.8rem;
  place-items: center;
  padding: 40px 16px 56px;
  border-top: 1px solid var(--line);
  background: #05060a;
  color: var(--muted);
  text-align: center;
}

.site-footer img {
  width: min(220px, 70vw);
}

.site-footer p {
  margin: 0;
}

.lab-page {
  background:
    radial-gradient(circle at 18% 0%, rgba(27, 215, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(255, 63, 200, 0.16), transparent 28rem),
    #06070d;
}

.lab-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(6, 7, 13, 0.96), rgba(6, 7, 13, 0.78)),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.lab-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.lab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1rem;
  align-items: center;
  min-height: auto;
  padding: 104px 0 28px;
}

.lab-hero-copy {
  max-width: 780px;
}

.lab-hero h1 {
  max-width: 780px;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
}

.lab-brand-card,
.lab-app-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 17, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.lab-brand-card {
  display: grid;
  gap: 1rem;
  justify-items: center;
  padding: 1.5rem;
  text-align: center;
}

.lab-brand-card img {
  width: min(240px, 78vw);
}

.lab-brand-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.lab-apps-section {
  width: 100%;
  padding-top: 28px;
  padding-bottom: 62px;
}

.lab-app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.lab-app-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.lab-featured-app {
  border-left: 3px solid var(--cyan);
}

.app-card-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(255, 192, 113, 0.42);
  border-radius: 999px;
  background: rgba(255, 192, 113, 0.08);
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-testing {
  border-color: rgba(155, 231, 109, 0.42);
  background: rgba(155, 231, 109, 0.08);
  color: var(--green);
}

.app-platform {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-app-card h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
}

.app-preview {
  position: relative;
  margin: 0.35rem 0 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.04);
}

.app-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.preview-dashboard img {
  object-position: left top;
}

.lab-app-card p,
.app-feature-list {
  color: var(--muted);
}

.app-feature-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.app-feature-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}

.app-feature-list li::before {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(27, 215, 255, 0.5);
  content: "";
}

.app-note {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.lab-app-card .button-row {
  margin-top: auto;
}

.lab-footer a {
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
}

.lab-footer a:hover,
.lab-footer a:focus-visible {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .main-nav {
    display: none;
  }

  .hero-grid,
  .watch-section,
  .merch-section,
  .split-section,
  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: center;
    padding-top: 92px;
  }

  .hero-overlay {
    background: transparent;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .daily-card {
    max-width: 480px;
  }

  .site-backdrop {
    background-position: 54% center;
  }

  .dev-bar {
    flex-direction: column;
    gap: 0.25rem;
  }

  .lab-hero,
  .lab-app-grid {
    grid-template-columns: 1fr;
  }

  .lab-hero {
    min-height: auto;
    padding-top: 92px;
  }

  .lab-brand-card {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand-text strong {
    font-size: 0.78rem;
  }

  .brand-text small {
    display: none;
  }

  .button,
  .button-row {
    width: 100%;
  }

  .watch-copy,
  .merch-copy,
  .community-card,
  .crt-link {
    padding: 1.25rem;
  }

  .merch-card {
    min-height: 360px;
  }

  .merch-image-wrap {
    width: min(230px, 88%);
  }

  .lab-main {
    width: min(100% - 20px, 1180px);
  }

  .lab-hero h1 {
    font-size: clamp(2.85rem, 17vw, 4.25rem);
  }

  .lab-brand-card,
  .lab-app-card {
    padding: 1.1rem;
  }

  .app-card-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}
