:root {
  --bg: #17181b;
  --surface: #1f2024;
  --surface-raised: #24252a;
  --line: #34353b;
  --text: #f7f7f8;
  --muted: #999aa2;
  --accent: #c3ee9c;
  --accent-light: #d8f888;
  --accent-gradient: linear-gradient(135deg, #afdbf0 0%, #ade2b9 34%, #c3ee9c 68%, #d8f888 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Unter", "under", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-topbar .brand,
.back-button,
.article-cover,
.article-header h1,
.article-meta,
.article-body > *,
.article-feedback,
.article-footer {
  animation: rise-in .62s cubic-bezier(.22, 1, .36, 1) backwards;
}

.article-topbar .brand { animation-delay: .04s; }
.back-button { animation-delay: .1s; }
.article-cover { animation-delay: .16s; }
.article-header h1 { animation-delay: .22s; }
.article-meta { animation-delay: .28s; }
.article-body > :nth-child(1) { animation-delay: .32s; }
.article-body > :nth-child(2) { animation-delay: .36s; }
.article-body > :nth-child(3) { animation-delay: .4s; }
.article-body > :nth-child(4) { animation-delay: .44s; }
.article-body > :nth-child(5) { animation-delay: .48s; }
.article-body > :nth-child(6) { animation-delay: .52s; }
.article-body > :nth-child(7) { animation-delay: .56s; }
.article-body > :nth-child(8) { animation-delay: .6s; }
.article-feedback { animation-delay: .62s; }
.article-footer { animation-delay: .64s; }

h1,
h2,
h3,
.brand-title,
.back-button {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

.article-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  border-bottom: 1px solid #292a2f;
  background: rgba(23, 24, 27, .94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 17px;
}

.brand img {
  width: 145px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.brand-divider {
  width: 1px;
  height: 30px;
  background: #44454b;
}

.brand-title {
  color: #d5d5d8;
  font-size: 15px;
  font-weight: 600;
}

.article-layout {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 80px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #b4b5bb;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  transition: color .2s, transform .2s;
}

.back-button svg {
  width: 17px;
  height: 17px;
}

.back-button:hover {
  color: var(--text);
  transform: translateX(-3px);
}

.article-cover {
  position: relative;
  display: grid;
  min-height: 390px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 18%, rgba(195, 238, 156, .11), transparent 32%),
    linear-gradient(145deg, #24252a, #1d1e22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .1),
    inset 0 -1px 0 rgba(255, 255, 255, .03),
    0 18px 50px rgba(0, 0, 0, .18);
}

.article-cover::before {
  position: absolute;
  top: -145px;
  right: -85px;
  width: 370px;
  height: 370px;
  border: 1px solid rgba(195, 238, 156, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(173, 226, 185, .025), 0 0 0 100px rgba(175, 219, 240, .02);
  content: "";
  pointer-events: none;
}

.article-video {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
  background: #0f1012;
  object-fit: contain;
}

.video-player {
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(255, 255, 255, .035),
    0 18px 50px rgba(0, 0, 0, .22);
}

.video-player::before {
  inset: 0;
  z-index: 4;
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, .07), transparent 28%, transparent 72%, rgba(195, 238, 156, .045));
  box-shadow: inset 0 0 22px rgba(255, 255, 255, .025);
}

.video-preview-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(11, 12, 14, .06), rgba(11, 12, 14, .36)),
    radial-gradient(circle at center, transparent 0, rgba(11, 12, 14, .14) 72%);
  transition: opacity .35s ease, visibility .35s ease;
}

.video-start-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  outline: none;
  color: #f5f5f6;
  background: transparent;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.video-play-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  color: #171a18;
  background: rgba(225, 255, 210, .75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .7),
    0 12px 35px rgba(0, 0, 0, .3);
  backdrop-filter: blur(14px) saturate(135%);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.video-play-icon svg {
  width: 27px;
  height: 27px;
  margin-left: 3px;
  stroke-width: 2;
}

.video-start-button:hover .video-play-icon,
.video-start-button:focus-visible .video-play-icon {
  background: rgba(216, 248, 136, .92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    0 16px 42px rgba(0, 0, 0, .38);
  transform: scale(1.07);
}

.video-player.is-started .video-preview-overlay {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  visibility: hidden;
  padding: 20px 20px 13px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(5, 6, 7, .84));
  transition: opacity .25s ease, visibility .25s ease;
}

.video-player.is-started .video-controls {
  visibility: visible;
  opacity: 1;
}

.video-progress {
  --progress: 0%;
  display: block;
  width: 100%;
  height: 4px;
  margin: 0 0 10px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  outline: none;
  background: linear-gradient(
    90deg,
    var(--accent) 0,
    var(--accent) var(--progress),
    rgba(255, 255, 255, .25) var(--progress),
    rgba(255, 255, 255, .25) 100%
  );
  cursor: pointer;
}

.video-progress::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.video-progress::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4px;
  appearance: none;
  border: 2px solid #171a18;
  border-radius: 50%;
  background: var(--accent-light, #d8f888);
  box-shadow: 0 0 0 3px rgba(216, 248, 136, .16);
  opacity: 0;
  transition: opacity .15s, transform .15s;
}

.video-progress::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}

.video-progress::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.video-progress::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border: 2px solid #171a18;
  border-radius: 50%;
  background: #d8f888;
  opacity: 0;
}

.video-progress:hover::-webkit-slider-thumb,
.video-progress:focus-visible::-webkit-slider-thumb,
.video-progress:hover::-moz-range-thumb,
.video-progress:focus-visible::-moz-range-thumb {
  opacity: 1;
  transform: scale(1.05);
}

.video-controls-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.video-control-button {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  outline: none;
  color: #eeeeef;
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: color .15s, background .15s, transform .15s;
}

.video-control-button:hover,
.video-control-button:focus-visible {
  color: var(--accent);
  background: rgba(255, 255, 255, .12);
  transform: translateY(-1px);
}

.video-control-button svg {
  width: 16px;
  height: 16px;
}

.video-toggle .icon-play,
.video-player.is-paused .video-toggle .icon-pause,
.video-volume .icon-muted,
.video-player.is-muted .video-volume .icon-volume {
  display: none;
}

.video-player.is-paused .video-toggle .icon-play,
.video-player.is-muted .video-volume .icon-muted {
  display: block;
}

.video-time {
  color: #e2e2e4;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.video-volume {
  margin-left: auto;
}

.media-placeholder {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  color: #8e8f96;
  font-size: 13px;
}

.media-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #414249;
  border-radius: 50%;
  color: #c5c6cb;
  background: rgba(32, 33, 37, .8);
}

.media-icon svg {
  width: 23px;
  height: 23px;
  margin-left: 3px;
}

.article-header {
  padding: 38px 0 30px;
  border-bottom: 1px solid #2e2f34;
}

.article-header h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  line-height: 1.17;
  letter-spacing: -.035em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
  color: #8f9097;
  font-size: 12.5px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.article-meta svg {
  width: 16px;
  height: 16px;
}

.article-body {
  padding-top: 35px;
  color: #c2c3c8;
  font-size: 15px;
}

.article-body h2 {
  margin: 42px 0 12px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ol,
.article-body ul {
  margin: 0 0 24px;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.article-body section {
  scroll-margin-top: 100px;
}

.article-index {
  margin: 32px 0 40px;
  padding: 22px 24px;
  border: 1px solid #323339;
  border-radius: 14px;
  background: var(--surface);
}

.article-index h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.article-index ol {
  margin: 0;
  columns: 2;
  column-gap: 36px;
}

.article-index li {
  break-inside: avoid;
  margin-bottom: 7px;
}

.article-index a {
  color: #aaabb1;
  transition: color .15s;
}

.article-index a:hover {
  color: var(--accent);
}

.feature-list {
  list-style: none;
  padding-left: 0 !important;
}

.article-callout {
  margin: 30px 0;
  padding: 18px 20px;
  border: 1px solid rgba(195, 238, 156, .16);
  border-radius: 12px;
  color: #c8c9cd;
  background: linear-gradient(110deg, rgba(175, 219, 240, .07), rgba(216, 248, 136, .025));
}

.article-callout strong {
  color: var(--accent);
}

.content-placeholder {
  margin-top: 34px;
  padding: 28px;
  border: 1px dashed #3b3c42;
  border-radius: 14px;
  color: #777880;
  text-align: center;
}

.article-feedback {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid #2e2f34;
  text-align: center;
}

.article-feedback p {
  margin: 0 0 16px;
  color: #e7e7e9;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  font-weight: 600;
}

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

.feedback-button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid #3a3b41;
  border-radius: 11px;
  outline: none;
  color: #a2a3aa;
  background: #222328;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s, transform .18s;
}

.feedback-button svg {
  width: 19px;
  height: 19px;
}

.feedback-button[data-feedback="no"] svg {
  transform: rotate(180deg);
}

.feedback-button:hover,
.feedback-button:focus-visible {
  color: #e8e8ea;
  border-color: #55565d;
  background: #292a2f;
  transform: translateY(-2px);
}

.feedback-button.active[data-feedback="yes"] {
  color: #182019;
  border-color: var(--accent);
  background: var(--accent);
}

.feedback-button.active[data-feedback="no"] {
  color: #1d1819;
  border-color: #e4a8ad;
  background: #e4a8ad;
}

.feedback-message {
  min-height: 18px;
  margin-top: 11px;
  color: #85868d;
  font-size: 11px;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #292a2f;
  color: #686970;
  font-size: 11px;
}

@media (max-width: 700px) {
  .article-topbar {
    height: 68px;
    justify-content: center;
    padding: 0 18px;
  }

  .brand img {
    width: 135px;
  }

  .brand-divider,
  .brand-title {
    display: none;
  }

  .article-layout {
    width: min(100% - 32px, 860px);
    padding-top: 24px;
  }

  .article-cover {
    min-height: 245px;
    border-radius: 15px;
  }

  .article-video {
    min-height: 245px;
  }

  .video-play-icon {
    width: 58px;
    height: 58px;
  }

  .video-controls {
    padding: 16px 14px 10px;
  }

  .article-header {
    padding: 28px 0 24px;
  }

  .article-header h1 {
    font-size: 29px;
  }

  .article-body {
    padding-top: 28px;
    font-size: 14px;
  }

  .article-body h2 {
    margin-top: 34px;
    font-size: 20px;
  }

  .article-index ol {
    columns: 1;
  }

  .article-footer {
    flex-direction: column;
    gap: 5px;
  }

  .article-feedback {
    margin-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
}
