:root {
  --editor-blue: #2563eb;
  --editor-cyan: #2bd9c8;
  --editor-lime: #d9fb54;
  --editor-ink: #07080c;
  --editor-paper: #f4f1e9;
  --editor-display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

body.editor-page {
  background: var(--editor-ink);
  color: #fff;
  overflow-x: hidden;
}

.editor-page .wrap {
  max-width: 1180px;
}

.editor-page header.site {
  background: color-mix(in srgb, var(--editor-ink) 88%, transparent);
  border-bottom-color: #ffffff1b;
}

.editor-page header.site .brand,
.editor-page nav.main a[aria-current="page"] {
  color: #fff;
}

.editor-page nav.main a {
  color: #a7abb5;
}

.editor-hero {
  background:
    radial-gradient(circle at 80% 28%, color-mix(in srgb, var(--editor-accent) 20%, transparent), transparent 30%),
    linear-gradient(180deg, #08090d, #0d1018);
  border-bottom: 1px solid #ffffff1c;
  position: relative;
  overflow: hidden;
}

.editor-hero::before {
  content: "";
  opacity: 0.14;
  background-image:
    linear-gradient(#ffffff10 1px, transparent 1px),
    linear-gradient(90deg, #ffffff10 1px, transparent 1px);
  background-size: 62px 62px;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.editor-hero-grid {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding-top: 84px;
  padding-bottom: 90px;
  position: relative;
}

.editor-kicker {
  color: var(--editor-accent);
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.editor-hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: var(--editor-display);
  font-size: clamp(4rem, 8vw, 7.6rem);
  font-weight: 950;
  letter-spacing: -0.065em;
  line-height: 0.82;
  text-transform: uppercase;
}

.editor-hero h1 span {
  color: var(--editor-accent);
  display: block;
}

.editor-lede {
  color: #bdc1ca;
  max-width: 650px;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.editor-action {
  min-height: 46px;
  color: #fff;
  border: 1px solid #ffffff32;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 0 19px;
  font-size: 0.88rem;
  font-weight: 780;
  text-decoration: none;
}

.editor-action.primary {
  color: #07080c;
  background: var(--editor-accent);
  border-color: var(--editor-accent);
}

.editor-action:hover {
  transform: translateY(-2px);
}

.editor-meta {
  color: #858b98;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.editor-meta span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--editor-accent);
  border-radius: 50%;
  display: inline-block;
  margin: 0 8px 1px 0;
}

.device-visual {
  min-height: 540px;
  display: grid;
  place-items: center;
  position: relative;
}

.editor-real-visual {
  min-height: 420px;
  display: grid;
  align-items: center;
  position: relative;
}

.editor-real-visual::before {
  content: "";
  background: var(--editor-accent);
  filter: blur(70px);
  opacity: 0.18;
  position: absolute;
  inset: 18% 8%;
}

.editor-real-visual img {
  width: min(720px, 100%);
  height: auto;
  border: 1px solid #ffffff2b;
  border-radius: 15px;
  display: block;
  position: relative;
  transform: rotate(1.5deg);
  box-shadow: 0 42px 90px #000000b3;
}

.device-visual::before,
.device-visual::after {
  content: "";
  border: 1px solid color-mix(in srgb, var(--editor-accent) 22%, transparent);
  border-radius: 50%;
  position: absolute;
  inset: 3%;
}

.device-visual::after {
  inset: 17%;
}

.device-shell {
  width: min(100%, 540px);
  aspect-ratio: 1.12;
  background: linear-gradient(145deg, #262a34, #090a0e 62%);
  border: 1px solid #ffffff30;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 19px;
  padding: 26px;
  position: relative;
  z-index: 2;
  transform: rotate(2deg);
  box-shadow:
    0 50px 90px #000000a6,
    0 0 70px color-mix(in srgb, var(--editor-accent) 12%, transparent);
}

.device-sidebar {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.device-screen {
  min-height: 100px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--editor-accent) 26%, transparent), transparent),
    #080a0f;
  border: 1px solid color-mix(in srgb, var(--editor-accent) 55%, #171a22);
  border-radius: 10px;
  padding: 15px;
}

.device-screen strong {
  color: var(--editor-accent);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.device-screen span {
  color: #d5d8de;
  display: block;
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.device-control {
  height: 13px;
  background: #ffffff12;
  border: 1px solid #ffffff18;
  border-radius: 999px;
}

.device-control.short {
  width: 62%;
}

.pad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.device-pad {
  min-height: 104px;
  background: linear-gradient(145deg, #313641, #12141a);
  border: 1px solid #ffffff27;
  border-radius: 12px;
  position: relative;
  box-shadow: inset 0 -8px 18px #0000005c;
}

.device-pad::after {
  content: "";
  height: 3px;
  background: var(--editor-accent);
  border-radius: 999px;
  position: absolute;
  inset: auto 12px 11px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--editor-accent) 60%, transparent);
}

.editor-section {
  color: #101218;
  background: var(--editor-paper);
  padding: clamp(82px, 10vw, 130px) 0;
}

.editor-section-heading {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: 52px;
  margin-bottom: 42px;
}

.editor-section-heading h2 {
  max-width: 720px;
  margin: 0;
  font-family: var(--editor-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.86;
  text-transform: uppercase;
}

.editor-section-heading p {
  color: #60646e;
  max-width: 540px;
  margin: 0;
  font-size: 1.05rem;
}

.editor-feature-grid {
  border-top: 1px solid #10121829;
  border-left: 1px solid #10121829;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.editor-feature {
  min-height: 300px;
  border-right: 1px solid #10121829;
  border-bottom: 1px solid #10121829;
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.editor-feature .feature-num {
  color: var(--editor-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.editor-feature h3 {
  margin: auto 0 10px;
  font-family: var(--editor-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.editor-feature p {
  color: #626671;
  margin: 0;
  font-size: 0.9rem;
}

.editor-honesty {
  background: #0b0d13;
  border-top: 1px solid #ffffff18;
  border-bottom: 1px solid #ffffff18;
  padding: clamp(72px, 9vw, 116px) 0;
}

.honesty-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.editor-honesty h2 {
  margin: 0;
  font-family: var(--editor-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}

.honesty-list {
  border-top: 1px solid #ffffff20;
}

.honesty-item {
  border-bottom: 1px solid #ffffff20;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 25px;
  padding: 18px 0;
}

.honesty-item strong {
  color: var(--editor-accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.honesty-item span {
  color: #b7bbc5;
  font-size: 0.92rem;
}

.editor-directory-hero {
  padding: clamp(86px, 11vw, 150px) 0 80px;
}

.editor-directory-hero h1 {
  max-width: 940px;
  margin: 0;
  font-family: var(--editor-display);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.8;
  text-transform: uppercase;
}

.editor-directory-hero h1 span {
  color: var(--editor-blue);
  display: block;
}

.editor-directory-hero .editor-lede {
  max-width: 720px;
}

.editor-directory {
  color: #111319;
  background: var(--editor-paper);
  padding: 80px 0 120px;
}

.editor-directory-grid {
  border-top: 1px solid #11131926;
  border-left: 1px solid #11131926;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.editor-directory-card {
  min-height: 390px;
  color: #111319;
  background: #ffffff4f;
  border-right: 1px solid #11131926;
  border-bottom: 1px solid #11131926;
  display: flex;
  flex-direction: column;
  padding: 32px;
  text-decoration: none;
  transition: transform 0.18s, background 0.18s;
}

.editor-directory-card:hover {
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 22px 60px #1113191c;
}

.directory-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.directory-icon {
  width: 64px;
  height: 64px;
  background: #0b0d13;
  border-radius: 15px;
  display: grid;
  place-items: center;
}

.directory-icon img {
  width: 38px;
  height: 38px;
}

.directory-status {
  color: #60646e;
  border: 1px solid #1113192e;
  border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.editor-directory-card h2 {
  margin: auto 0 9px;
  font-family: var(--editor-display);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-transform: uppercase;
}

.editor-directory-card p {
  color: #626671;
  max-width: 520px;
  margin: 0;
}

.directory-arrow {
  color: var(--card-accent, var(--editor-blue));
  margin-top: 24px;
  font-size: 1.3rem;
}

.editor-more {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
  margin-top: 82px;
}

.editor-more h2 {
  margin: 0;
  font-family: var(--editor-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}

.editor-more-list {
  border-top: 1px solid #1113192e;
}

.editor-more-list a {
  color: #111319;
  border-bottom: 1px solid #1113192e;
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 20px;
  padding: 17px 0;
  text-decoration: none;
}

.editor-more-list span {
  color: #666a73;
  font-size: 0.88rem;
}

.editor-page footer.site {
  color: #969ba6;
  background: var(--editor-ink);
  border-top-color: #ffffff1a;
  margin-top: 0;
}

@media (width <= 900px) {
  .editor-hero-grid,
  .editor-section-heading,
  .honesty-grid,
  .editor-more {
    grid-template-columns: 1fr;
  }

  .editor-hero-grid {
    padding-top: 64px;
  }

  .device-visual {
    min-height: 500px;
  }

  .editor-real-visual {
    min-height: 0;
  }

  .editor-feature-grid {
    grid-template-columns: 1fr;
  }

  .editor-feature {
    min-height: 240px;
  }
}

@media (width <= 680px) {
  .editor-page header.site .brand span {
    display: none;
  }

  .editor-page .theme-btn {
    display: none;
  }

  .editor-hero h1,
  .editor-directory-hero h1 {
    font-size: clamp(3.7rem, 18vw, 6.2rem);
  }

  .device-visual {
    min-height: 390px;
  }

  .editor-real-visual img {
    transform: none;
  }

  .device-shell {
    border-radius: 18px;
    gap: 11px;
    padding: 15px;
  }

  .device-pad {
    min-height: 70px;
  }

  .editor-directory-grid {
    grid-template-columns: 1fr;
  }

  .honesty-item,
  .editor-more-list a {
    grid-template-columns: 1fr auto;
  }

  .honesty-item span,
  .editor-more-list span {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editor-action,
  .editor-directory-card,
  .device-shell {
    transition: none;
  }
}
