:root {
  --bg: #050505;
  --surface: #ffffff;
  --surface-2: #101010;
  --line: #4a4a4a;
  --line-soft: #2a2a2a;
  --text: #f5f5f5;
  --muted: #c4c4c4;
  --muted-soft: #8f8f8f;
  --accent: #ffffff;
  --accent-dark: #ffffff;
  --blue: #72a7ff;
  --blue-bg: rgba(114, 167, 255, 0.13);
  --red: #ef8f87;
  --red-bg: rgba(239, 143, 135, 0.14);
  --orange: #f2ad6f;
  --orange-bg: rgba(242, 173, 111, 0.16);
  --teal: #69b8b0;
  --teal-bg: rgba(105, 184, 176, 0.14);
  --purple: #b797e2;
  --purple-bg: rgba(183, 151, 226, 0.14);
  --rose: #d894bd;
  --rose-bg: rgba(216, 148, 189, 0.14);
  --slate: #9db4be;
  --slate-bg: rgba(157, 180, 190, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, 0.05), transparent 20%),
    linear-gradient(180deg, #080808 0%, #030303 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(255, 255, 255, 0.028) 79px 80px
    ),
    repeating-linear-gradient(
      180deg,
      transparent 0 79px,
      rgba(255, 255, 255, 0.028) 79px 80px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

body::after {
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(255, 255, 255, 0.04) 62% 63%, transparent 63% 100%),
    linear-gradient(160deg, transparent 0 38%, rgba(255, 255, 255, 0.03) 38% 39%, transparent 39% 100%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: relative;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(420px, 50vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
}

.site-title {
  display: block;
  width: fit-content;
  margin: 0 auto;
  text-decoration: none;
  color: #ffffff;
  font-family: "Bahnschrift", "Arial Narrow", "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(42px, 6vw, 74px);
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

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

.intro-section {
  position: relative;
  max-width: 980px;
  margin: 0 auto 34px;
  text-align: center;
}

.intro-frame {
  position: relative;
  padding: 34px 28px 30px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(10, 10, 10, 0.82);
  overflow: hidden;
}

.intro-frame::before,
.intro-frame::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-color: rgba(255, 255, 255, 0.75);
  border-style: solid;
  pointer-events: none;
}

.intro-frame::before {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.intro-frame::after {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
}

.intro-grid,
.intro-orbit {
  position: absolute;
  pointer-events: none;
}

.intro-grid {
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(255, 255, 255, 0.04) 47px 48px),
    repeating-linear-gradient(180deg, transparent 0 47px, rgba(255, 255, 255, 0.04) 47px 48px);
  opacity: 0.42;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}

.intro-orbit {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.intro-orbit-one {
  top: -68px;
  right: 8%;
  width: 220px;
  height: 220px;
  animation: slow-orbit 14s linear infinite;
}

.intro-orbit-two {
  left: 6%;
  bottom: -92px;
  width: 280px;
  height: 280px;
  animation: slow-orbit-reverse 18s linear infinite;
}

.intro-kicker {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--muted-soft);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.intro-headline {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.intro-signals {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.intro-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f0f0f0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.intro-copy {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.82;
  color: var(--muted);
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
}

.primary-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  font-weight: 700;
  overflow: hidden;
}

.primary-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
  transform: translateX(-100%);
  animation: sweep 3.4s ease-in-out infinite;
}

.primary-link span,
.primary-link {
  z-index: 1;
}

.preview-section {
  position: relative;
  margin-top: 24px;
}

.preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
}

.preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.preview-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #9f9f9f;
}

.preview-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 228px;
  column-gap: 18px;
  align-items: start;
  padding: 24px 24px 28px;
  border: 1px solid #d6d6d6;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(245, 245, 245, 0.98), rgba(255, 255, 255, 1));
  color: #111111;
  overflow: hidden;
}

.preview-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.025), transparent 16%),
    repeating-linear-gradient(180deg, transparent 0 35px, rgba(0, 0, 0, 0.025) 35px 36px);
  opacity: 0.55;
  pointer-events: none;
}

.preview-stage::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.22), transparent);
}

.preview-article {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  max-width: none;
  padding-right: 0;
}

.preview-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.preview-article p {
  margin: 0 0 16px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.preview-mark {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  line-height: inherit;
  transition: background-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.preview-mark:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.preview-mark.is-active {
  box-shadow: inset 0 -0.26em 0 rgba(255, 255, 255, 0.95);
}

.preview-mark-blue {
  background: var(--blue-bg);
  box-shadow: inset 0 -0.14em 0 var(--blue);
}

.preview-mark-red {
  background: var(--red-bg);
  box-shadow: inset 0 -0.14em 0 var(--red);
}

.preview-mark-orange {
  background: var(--orange-bg);
  box-shadow: inset 0 -0.14em 0 var(--orange);
}

.preview-mark-teal {
  background: var(--teal-bg);
  box-shadow: inset 0 -0.14em 0 var(--teal);
}

.preview-mark-purple {
  background: var(--purple-bg);
  box-shadow: inset 0 -0.14em 0 var(--purple);
}

.preview-mark-rose {
  background: var(--rose-bg);
  box-shadow: inset 0 -0.14em 0 var(--rose);
}

.preview-mark-slate {
  background: var(--slate-bg);
  box-shadow: inset 0 -0.14em 0 var(--slate);
}

.preview-mark.is-active.preview-mark-blue,
.preview-mark:hover.preview-mark-blue {
  background: rgba(114, 167, 255, 0.24);
}

.preview-mark.is-active.preview-mark-red,
.preview-mark:hover.preview-mark-red {
  background: rgba(239, 143, 135, 0.24);
}

.preview-mark.is-active.preview-mark-orange,
.preview-mark:hover.preview-mark-orange {
  background: rgba(242, 173, 111, 0.26);
}

.preview-mark.is-active.preview-mark-teal,
.preview-mark:hover.preview-mark-teal {
  background: rgba(105, 184, 176, 0.22);
}

.preview-mark.is-active.preview-mark-purple,
.preview-mark:hover.preview-mark-purple {
  background: rgba(183, 151, 226, 0.24);
}

.preview-mark.is-active.preview-mark-rose,
.preview-mark:hover.preview-mark-rose {
  background: rgba(216, 148, 189, 0.22);
}

.preview-mark.is-active.preview-mark-slate,
.preview-mark:hover.preview-mark-slate {
  background: rgba(157, 180, 190, 0.24);
}

.preview-callout {
  position: sticky;
  top: 22px;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  width: 100%;
  padding: 14px 14px 12px;
  border: 1px solid #7a7a7a;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(247, 247, 247, 0.98), rgba(237, 237, 237, 0.98));
  color: #111111;
  z-index: 2;
}

.preview-callout::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  border-right: 1px solid rgba(0, 0, 0, 0.18);
}

.preview-callout-kicker {
  margin-bottom: 6px;
  color: #5a5a5a;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-callout-title {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.38;
}

.preview-callout-body,
.preview-callout-source {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.preview-callout-source {
  color: #4f4f4f;
}

.site-note {
  max-width: 860px;
  margin: 26px auto 0;
  text-align: center;
}

.site-note p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.88;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
}

.site-note a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 0.14em;
}

.site-footer {
  position: relative;
  padding: 24px 24px 36px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  width: min(360px, 48vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  margin: 14px 0 0;
  color: #9d9d9d;
  font-size: 13px;
}

@keyframes slow-orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes slow-orbit-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes sweep {
  0%,
  18% {
    transform: translateX(-120%);
  }
  54% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

@media (max-width: 980px) {
  .landing-main {
    width: calc(100% - 24px);
  }

  .intro-frame {
    padding: 26px 18px 24px;
  }

  .preview-stage {
    display: block;
    padding: 18px 18px 20px;
  }

  .preview-article {
    padding-right: 0;
  }

  .preview-callout {
    position: static;
    width: 100%;
    margin-bottom: 18px;
  }

  .preview-article p {
    font-size: clamp(18px, 2.8vw, 24px);
  }
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 14px;
  }

  .site-title {
    font-size: 40px;
    letter-spacing: 0.14em;
  }

  .landing-main {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .intro-headline {
    font-size: 36px;
    line-height: 1.08;
  }

  .intro-copy {
    font-size: 17px;
    line-height: 1.75;
    text-align-last: auto;
  }

  .site-note p {
    text-align-last: auto;
  }

  .preview-toolbar {
    font-size: 13px;
  }

  .preview-stage {
    border-radius: 18px;
  }

  .preview-article p {
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: -0.02em;
  }
}
