.logs-page {
  --page-accent: var(--pjsk-nightcord);
  --page-accent-hover: var(--pjsk-nightcord-deep);
  background: linear-gradient(rgba(136,68,153,.08), rgba(136,68,153,.045)), var(--paper);
}

.logs-page .header-cta { background: var(--pjsk-momojan); color: #17320c; }
.logs-page .header-cta:hover { background: var(--pjsk-momojan-deep); color: #fff; }

.desktop-nav .is-current::after {
  transform: translateX(-50%) scale(1);
}

.logs-hero {
  min-height: 780px;
  padding: 90px max(28px, calc((100vw - var(--max-width)) / 2)) 100px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: 74px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(136, 68, 153, 0.12), transparent 35%),
              linear-gradient(300deg, rgba(0, 160, 233, 0.09), transparent 38%);
}

.logs-kicker {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.logs-kicker span {
  width: 34px;
  height: 3px;
  background: var(--pjsk-nightcord);
}

.logs-hero h1 {
  margin: 0;
  font-size: clamp(52px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

.logs-hero-copy {
  min-width: 0;
}

.logs-hero-copy > p:last-of-type {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.75;
}

.logs-summary {
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.logs-summary div {
  padding: 18px 16px 0 0;
}

.logs-summary dt {
  font-size: 20px;
  font-weight: 850;
}

.logs-summary dd {
  margin: 3px 0 0;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

.platform-preview {
  min-height: 540px;
  position: relative;
}

.platform-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(13, 13, 18, 0.16);
  border-radius: 8px;
  background: #101114;
  box-shadow: var(--shadow-lg);
}

.platform-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-shot figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(8, 9, 12, 0.78);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.platform-shot figcaption span {
  font-size: 15px;
  font-weight: 800;
}

.platform-shot figcaption b {
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.platform-shot-ios {
  z-index: 2;
  top: 0;
  left: 0;
  width: 54%;
  height: 500px;
  transform: rotate(-2deg);
}

.platform-shot-android {
  z-index: 1;
  right: 0;
  bottom: 0;
  width: 49%;
  height: 470px;
  transform: rotate(2deg);
}

.logs-index {
  padding: 110px max(28px, calc((100vw - 1040px) / 2)) 54px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.logs-index-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.logs-index-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--ink-soft);
}

.log-filters {
  padding: 5px;
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
}

.log-filters button {
  min-width: 92px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.log-filters button span {
  margin-left: 5px;
  color: var(--ink-muted);
  font-size: 10px;
}

.log-filters button.is-active {
  background: var(--pjsk-nightcord);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.log-filters button.is-active span { color: rgba(255, 255, 255, .66); }

.log-stream {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px 130px;
}

.log-entry {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 54px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.log-entry[hidden] {
  display: none;
}

.log-meta {
  display: flex;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.log-meta time {
  width: 100%;
  margin-bottom: 8px;
  font-size: 21px;
  font-weight: 850;
}

.log-meta .build-version {
  min-height: 34px;
  padding: 7px 10px;
  color: var(--ink);
  border-color: rgba(13, 13, 18, 0.2);
  background: var(--white);
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: var(--shadow-sm);
}

.log-meta > span {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.log-meta .platform-badge {
  min-height: 34px;
  padding: 7px 10px;
  color: #fff;
  border-color: transparent;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.platform-badge.ios {
  background: #183752;
}

.platform-badge.android {
  background: #14736c;
}

.log-type {
  margin: 0 0 10px;
  color: var(--pjsk-nightcord);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.log-body h2 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.18;
  letter-spacing: 0;
}

.log-body > p:not(.log-type) {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.log-body ul {
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.log-body li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.log-body li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--pjsk-nightcord);
}

.log-empty {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  text-align: center;
}

.logs-footer-cta {
  padding: 110px max(28px, calc((100vw - var(--max-width)) / 2));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  background: #29152e;
  color: #ead5ef;
}

.logs-footer-cta .section-number {
  grid-column: 1 / -1;
  margin-bottom: -34px;
  color: rgba(234, 213, 239, 0.62);
}

.logs-footer-cta h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.1;
  letter-spacing: 0;
}

.logs-footer-cta > div {
  align-self: end;
}

.logs-footer-cta > div > p {
  margin: 0 0 28px;
  color: rgba(234, 213, 239, 0.78);
  font-size: 17px;
  line-height: 1.75;
}

.logs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.logs-actions .primary-button,
.logs-actions .secondary-button {
  min-height: 48px;
  border-radius: 7px;
}

.logs-actions .primary-button {
  background: var(--pjsk-nightcord);
  color: #fff;
}

.logs-actions .secondary-button {
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  background: rgba(234, 213, 239, 0.08);
  border: 1px solid rgba(234, 213, 239, 0.35);
  color: #ead5ef;
  font-weight: 750;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logs-actions .secondary-button:hover {
  background: rgba(234, 213, 239, 0.16);
  color: #fff;
  box-shadow: none;
}

.logs-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.logs-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .logs-hero {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .logs-hero-copy,
  .platform-preview {
    width: 100%;
    max-width: calc(100vw - 40px);
  }

  .platform-preview {
    width: min(100%, 680px);
  }

  .logs-index {
    align-items: flex-start;
    flex-direction: column;
  }

  .log-entry {
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 34px;
  }

  .logs-footer-cta {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .logs-footer-cta .section-number {
    grid-column: 1;
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  .logs-hero {
    min-height: auto;
    padding: calc(40px + env(safe-area-inset-top)) 20px 72px;
    gap: 44px;
  }

  .logs-kicker {
    font-size: 9px;
  }

  .logs-hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .logs-hero-copy > p:last-of-type {
    margin-top: 22px;
    font-size: 16px;
  }

  .logs-summary {
    margin-top: 32px;
    grid-template-columns: 0.8fr 0.8fr 1.4fr;
  }

  .logs-summary dt {
    font-size: 17px;
  }

  .logs-summary div:last-child dt {
    font-size: 15px;
  }

  .platform-preview {
    min-height: 380px;
  }

  .platform-shot-ios {
    left: 4px;
    width: 57%;
    height: 350px;
  }

  .platform-shot-android {
    right: 4px;
    width: 52%;
    height: 328px;
  }

  .platform-shot figcaption {
    right: 8px;
    bottom: 8px;
    left: 8px;
    min-height: 40px;
    padding: 0 9px;
  }

  .platform-shot figcaption span {
    font-size: 12px;
  }

  .platform-shot figcaption b {
    font-size: 7px;
  }

  .logs-index {
    padding: 78px 20px 40px;
    gap: 28px;
  }

  .logs-index-heading h2 {
    font-size: 38px;
  }

  .log-filters {
    width: 100%;
  }

  .log-filters button {
    min-width: 0;
    flex: 1;
  }

  .log-stream {
    padding: 0 20px 90px;
  }

  .log-entry {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 38px 0;
  }

  .log-meta time {
    width: 100%;
    margin: 0 0 7px;
    font-size: 20px;
  }

  .log-body h2 {
    font-size: 29px;
  }

  .log-body > p:not(.log-type),
  .log-body li {
    font-size: 15px;
  }

  .logs-footer-cta {
    padding: 80px 20px;
  }

  .logs-footer-cta h2 {
    font-size: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logs-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
