:root {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ffffff;
  --soft: #d8d8d8;
  --muted: #a7a7a7;
  --quiet: #737373;
  --panel: rgba(18, 18, 18, 0.82);
  --panel-strong: rgba(8, 8, 8, 0.92);
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --red: #e02a2a;
  --blue: #2f7de1;
  --green: #2aa66b;
  --purple: #7b3ff2;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0, transparent 260px),
    #000000;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--soft);
}

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

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell > main {
  flex: 1 0 auto;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(24px);
}

.site-header__inner,
.hero-home,
.section,
.footer,
.page-hero,
.page-layout {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.auth-card > img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(255, 255, 255, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.site-nav a,
.pill-link,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-nav a {
  padding: 0 12px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.pill-link,
.button {
  border-radius: 999px;
  padding: 0 18px;
}

.pill-link {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.button {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--ink);
  color: #000000;
}

.button:hover {
  color: #000000;
  background: var(--soft);
}

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

.button--ghost:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.14);
}

.hero-home {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-top: 52px;
  padding: 70px 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 610px;
}

h1 {
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-statement {
  max-width: 620px;
  margin-top: 20px;
  color: var(--soft);
  font-size: clamp(17px, 1.75vw, 22px);
  font-weight: 560;
  line-height: 1.36;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.welcome-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.welcome-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, #000 100%);
}

.mosaic-strip {
  position: absolute;
  inset: -6% -8%;
  display: grid;
  grid-template-columns: 0.9fr 1.18fr 0.86fr;
  grid-auto-rows: 180px;
  gap: 12px;
  transform: rotate(-4deg) scale(1.08);
  opacity: 0.62;
}

.mosaic-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  filter: saturate(1.06) contrast(1.02);
}

.mosaic-strip img:nth-child(1),
.mosaic-strip img:nth-child(3),
.mosaic-strip img:nth-child(6) {
  grid-row: span 2;
}

.carousel-copy {
  position: absolute;
  z-index: 2;
  left: auto;
  right: 42px;
  bottom: 42px;
  width: min(410px, calc(100% - 84px));
  display: grid;
  gap: 10px;
}

.carousel-copy strong {
  max-width: 500px;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.02;
}

.carousel-copy span {
  max-width: 560px;
  color: var(--soft);
  font-size: 18px;
}

.section {
  padding: 80px 0 0;
}

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

.section-heading h2,
.page-hero h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p,
.lead {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.category-card {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.category-card::before,
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.category-card::before {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.38) 44%, rgba(0, 0, 0, 0.94)),
    linear-gradient(135deg, var(--accent), transparent 42%);
  opacity: 0.84;
}

.category-card::after {
  z-index: 2;
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  opacity: 0.72;
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card > div {
  position: relative;
  z-index: 3;
  padding: 20px;
}

.category-card h3 {
  font-size: 22px;
  line-height: 1.08;
}

.category-card p {
  margin-top: 10px;
  color: var(--soft);
  font-size: 15px;
}

.category-card--red {
  --accent: rgba(224, 42, 42, 0.54);
  --accent-border: rgba(224, 42, 42, 0.62);
}

.category-card--purple {
  --accent: rgba(123, 63, 242, 0.48);
  --accent-border: rgba(123, 63, 242, 0.58);
}

.category-card--green {
  --accent: rgba(42, 166, 107, 0.48);
  --accent-border: rgba(42, 166, 107, 0.58);
}

.category-card--blue {
  --accent: rgba(47, 125, 225, 0.5);
  --accent-border: rgba(47, 125, 225, 0.6);
}

.page-hero {
  padding: 76px 0 30px;
}

.page-hero h1 {
  max-width: 820px;
}

.updated-label {
  display: inline-flex;
  margin-top: 18px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 800;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.page-layout--single {
  grid-template-columns: minmax(0, 860px);
}

.page-panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.page-panel {
  padding: 34px;
}

.page-panel h2,
.page-panel h3 {
  margin-top: 30px;
  margin-bottom: 8px;
  font-size: 22px;
}

.page-panel h2:first-child,
.page-panel h3:first-child {
  margin-top: 0;
}

.page-panel p,
.auth-card p {
  color: var(--muted);
}

.page-panel a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-panel ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(580px, 100%);
  padding: 34px;
}

.auth-card > img {
  margin-bottom: 24px;
}

.auth-card h1 {
  font-size: 46px;
  line-height: 1.02;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
  margin-top: auto;
  padding: 34px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-disclaimer {
  max-width: 680px;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  max-width: 560px;
}

@media (max-width: 980px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-home,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .hero-home {
    min-height: 0;
    margin-top: 28px;
    padding: 54px 36px 220px;
  }

  .carousel-copy {
    left: 36px;
    right: 36px;
    bottom: 34px;
    width: auto;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .hero-home,
  .section,
  .footer,
  .page-hero,
  .page-layout {
    width: min(var(--max), calc(100% - 28px));
  }

  body {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0, transparent 240px),
      #000000;
  }

  .site-nav {
    flex-wrap: wrap;
    overflow: visible;
  }

  .site-nav a,
  .pill-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .hero-home {
    padding: 42px 22px 230px;
  }

  .mosaic-strip {
    grid-auto-rows: 145px;
    gap: 8px;
  }

  .carousel-copy {
    left: 22px;
    right: 22px;
    bottom: 22px;
    width: auto;
  }

  .carousel-copy span,
  .section-heading p,
  .lead {
    font-size: 16px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 280px;
  }

  .page-panel,
  .auth-card {
    padding: 24px;
  }

  .auth-card h1 {
    font-size: 38px;
  }

  .footer-links {
    flex-direction: column;
  }
}
