:root {
  --khaki-dark: #141a12;
  --khaki-deep: #1e2618;
  --khaki-mid: #3d4f2f;
  --khaki: #5c6b3a;
  --khaki-light: #8a9a5b;
  --olive: #4a5d23;
  --tan: #c4b896;
  --sand: #d9cdb0;
  --cream: #ede4d0;
  --accent: #b8a574;
  --white: #f2f0e8;
  --black: #0d100c;

  --shadow: rgba(0, 0, 0, 0.4);
  --shadow2: rgba(0, 0, 0, 0.6);

  --radius: 18px;
  --radius-sm: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue",
    "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 700px at 10% 0%, rgba(92, 107, 58, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(61, 79, 47, 0.25), transparent 60%),
    linear-gradient(180deg, var(--khaki-dark) 0%, var(--khaki-deep) 35%, var(--khaki-dark) 100%);
  color: var(--white);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(20, 26, 18, 0.85), rgba(20, 26, 18, 0.45));
  border-bottom: 1px solid rgba(196, 184, 150, 0.18);
}

.topbar__inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--khaki-light), var(--accent));
  color: var(--black);
  font-weight: 900;
  box-shadow: 0 10px 25px var(--shadow);
  border: 2px solid rgba(237, 228, 208, 0.25);
}

.brand__text {
  font-weight: 950;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  font-size: 18px;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: rgba(242, 240, 232, 0.92);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(196, 184, 150, 0.2);
  background: rgba(61, 79, 47, 0.35);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 13px;
}

.nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(184, 165, 116, 0.65);
  background: rgba(92, 107, 58, 0.5);
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(196, 184, 150, 0.2);
  background: linear-gradient(180deg, rgba(61, 79, 47, 0.35), rgba(30, 38, 24, 0.5));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cotton-layer {
  position: absolute;
  inset: -30%;
  filter: blur(35px);
  opacity: 0.75;
  mix-blend-mode: screen;
}

.cotton-layer--1 {
  background:
    radial-gradient(circle at 15% 20%, rgba(92, 107, 58, 0.75), transparent 40%),
    radial-gradient(circle at 35% 65%, rgba(184, 165, 116, 0.5), transparent 45%),
    radial-gradient(circle at 75% 35%, rgba(61, 79, 47, 0.7), transparent 42%);
  animation: floaty 10s ease-in-out infinite;
}

.cotton-layer--2 {
  background:
    radial-gradient(circle at 20% 80%, rgba(74, 93, 35, 0.7), transparent 44%),
    radial-gradient(circle at 75% 70%, rgba(138, 154, 91, 0.55), transparent 48%),
    radial-gradient(circle at 55% 25%, rgba(196, 184, 150, 0.3), transparent 40%);
  animation: floaty 13s ease-in-out infinite reverse;
}

.flag-sheen {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(61, 79, 47, 0.15) 0px,
      rgba(61, 79, 47, 0.15) 8px,
      rgba(92, 107, 58, 0.12) 8px,
      rgba(92, 107, 58, 0.12) 16px
    ),
    linear-gradient(180deg, rgba(30, 38, 24, 0.5), rgba(61, 79, 47, 0.35));
  opacity: 0.55;
  transform: rotate(-2deg);
}

@keyframes floaty {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
  50% {
    transform: translate3d(2%, 2%, 0) scale(1.04);
  }
  100% {
    transform: translate3d(-2%, -1%, 0) scale(1.02);
  }
}

.hero__content {
  position: relative;
  padding: 34px 26px 30px;
}

.hero__title {
  margin: 0 0 14px;
  line-height: 0.98;
}

.hero__titleMain {
  display: block;
  font-weight: 1000;
  letter-spacing: 1px;
  font-size: clamp(42px, 6vw, 78px);
  text-transform: lowercase;
  color: var(--cream);
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.4),
    0 10px 35px rgba(0, 0, 0, 0.6);
}

.hero__titleSub {
  display: block;
  margin-top: 10px;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 850;
  letter-spacing: 0.3px;
  color: var(--tan);
}

.hero__lead {
  max-width: 68ch;
  color: rgba(242, 240, 232, 0.88);
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 18px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid rgba(196, 184, 150, 0.25);
  font-weight: 900;
  letter-spacing: 0.2px;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.btn--primary {
  color: var(--black);
  background: linear-gradient(135deg, var(--tan), var(--khaki-light));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.btn--ghost {
  color: var(--cream);
  background: rgba(61, 79, 47, 0.4);
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 165, 116, 0.7);
}

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

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 850;
  font-size: 13px;
  color: var(--cream);
  border: 1px solid rgba(196, 184, 150, 0.22);
  background: rgba(20, 26, 18, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.section {
  margin-top: 22px;
  padding: 22px 0 0;
}

.section--full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}

.section--full .section__head {
  width: min(1100px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
}

.section__head {
  margin-bottom: 18px;
}

.section__head h2 {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: 0.2px;
  color: var(--cream);
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.muted {
  margin: 0;
  color: rgba(196, 184, 150, 0.85);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.card {
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid rgba(196, 184, 150, 0.15);
  background: rgba(61, 79, 47, 0.25);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.card--paper {
  background: linear-gradient(180deg, rgba(237, 228, 208, 0.96), rgba(217, 205, 176, 0.92));
  color: var(--black);
  border-color: rgba(61, 79, 47, 0.25);
  position: relative;
}

.card--paper::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(92, 107, 58, 0.4), rgba(61, 79, 47, 0.45));
  z-index: -1;
  filter: blur(18px);
  opacity: 0.6;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: 0.2px;
  font-weight: 1000;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  color: rgba(13, 16, 12, 0.82);
  line-height: 1.5;
  font-weight: 650;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-card {
  border-radius: var(--radius-sm);
  border: 2px solid rgba(196, 184, 150, 0.22);
  background: linear-gradient(180deg, rgba(61, 79, 47, 0.45), rgba(30, 38, 24, 0.55));
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.photo-card__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--khaki-deep);
  border-bottom: 2px solid rgba(196, 184, 150, 0.15);
}

.photo-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.15) contrast(1.05);
}

.photo-card__caption {
  padding: 14px 16px;
}

.photo-card__caption h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--cream);
}

.photo-card__caption p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--tan);
  line-height: 1.4;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tech-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tech-card {
  border-radius: var(--radius-sm);
  border: 2px solid rgba(196, 184, 150, 0.2);
  background: rgba(30, 38, 24, 0.6);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.tech-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--khaki-mid);
}

.tech-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.2) saturate(0.85) contrast(1.1);
}

.tech-card__body {
  padding: 14px 16px;
}

.tech-card__body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 1000;
  text-transform: uppercase;
  color: var(--cream);
}

.tech-card__body p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--tan);
  line-height: 1.4;
}

.marquee-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.marquee {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-scroll var(--duration, 50s) linear infinite;
  will-change: transform;
}

.marquee--right .marquee__track {
  animation-direction: reverse;
}

.marquee__content {
  display: flex;
  gap: 14px;
  padding-right: 14px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-quote {
  margin: 0;
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 360px);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(196, 184, 150, 0.22);
  background: linear-gradient(180deg, rgba(61, 79, 47, 0.55), rgba(30, 38, 24, 0.65));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.marquee-quote::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle at 30% 30%, rgba(184, 165, 116, 0.25), transparent 55%);
  filter: blur(14px);
  opacity: 0.85;
  pointer-events: none;
}

.marquee-quote blockquote {
  margin: 0;
  font-weight: 900;
  font-size: 14px;
  line-height: 1.35;
  color: var(--cream);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  position: relative;
}

.marquee-quote figcaption {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--tan);
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }

  .marquee__content[aria-hidden="true"] {
    display: none;
  }

  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.power {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  align-items: start;
}

.power__meter {
  position: relative;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(196, 184, 150, 0.18);
  background: rgba(30, 38, 24, 0.55);
  min-height: 260px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.meter__glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 40% 40%, rgba(184, 165, 116, 0.45), transparent 55%),
    radial-gradient(circle at 65% 60%, rgba(92, 107, 58, 0.4), transparent 55%),
    radial-gradient(circle at 45% 80%, rgba(74, 93, 35, 0.4), transparent 55%);
  filter: blur(28px);
  opacity: 0.85;
}

.meter__ring {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid rgba(184, 165, 116, 0.55);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.meter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(45, 58, 36, 0.98), rgba(20, 26, 18, 1));
  box-shadow: inset 0 0 0 1px rgba(237, 228, 208, 0.06);
}

.meter__value {
  font-size: 38px;
  font-weight: 1000;
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.meter__label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 900;
  color: var(--tan);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
  line-height: 1.2;
}

.power__right {
  border-radius: var(--radius-sm);
  border: 2px solid rgba(196, 184, 150, 0.15);
  background: rgba(30, 38, 24, 0.55);
  padding: 16px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35);
}

.bar {
  margin-bottom: 14px;
}

.bar__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-weight: 950;
  letter-spacing: 0.2px;
  color: var(--cream);
}

.bar__pct {
  color: var(--accent);
}

.bar__track {
  height: 16px;
  border-radius: 999px;
  background: rgba(20, 26, 18, 0.5);
  border: 1px solid rgba(196, 184, 150, 0.15);
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--tan), var(--khaki-light));
  box-shadow: 0 10px 30px rgba(92, 107, 58, 0.3);
}

.bar__fill--2 {
  background: linear-gradient(90deg, var(--accent), var(--olive));
  box-shadow: 0 10px 30px rgba(74, 93, 35, 0.25);
}

.bar__fill--3 {
  background: linear-gradient(90deg, var(--khaki-light), var(--khaki-mid));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.power__note {
  margin-top: 6px;
  color: var(--tan);
  font-weight: 750;
  line-height: 1.45;
  font-size: 14px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.poster {
  border-radius: var(--radius-sm);
  border: 2px solid rgba(196, 184, 150, 0.18);
  background: linear-gradient(180deg, rgba(61, 79, 47, 0.35), rgba(30, 38, 24, 0.45));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.poster::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto auto;
  width: 220px;
  height: 220px;
  background:
    radial-gradient(circle at 30% 30%, rgba(184, 165, 116, 0.2), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(92, 107, 58, 0.25), transparent 55%),
    radial-gradient(circle at 45% 45%, rgba(138, 154, 91, 0.2), transparent 55%);
  filter: blur(18px);
  opacity: 0.95;
  pointer-events: none;
}

.poster__img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.35));
  position: relative;
}

.poster__title {
  margin: 10px 0 6px;
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  position: relative;
  color: var(--cream);
}

.poster__text {
  margin: 0;
  color: var(--tan);
  font-weight: 750;
  line-height: 1.45;
  position: relative;
}

.footer {
  margin-top: 30px;
  border-top: 1px solid rgba(196, 184, 150, 0.15);
  background: rgba(20, 26, 18, 0.4);
}

.footer__inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--tan);
  font-weight: 750;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 900;
}

.codecard {
  border-radius: var(--radius-sm);
  border: 2px solid rgba(196, 184, 150, 0.15);
  background: rgba(30, 38, 24, 0.55);
  padding: 16px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.35);
}

.codecard h3 {
  margin: 0 0 10px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--cream);
}

.codeblock {
  margin: 0;
  overflow: auto;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(196, 184, 150, 0.15);
  background: rgba(13, 16, 12, 0.6);
  color: var(--cream);
  font-weight: 650;
  line-height: 1.4;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(13, 16, 12, 0.82);
  font-weight: 650;
  line-height: 1.6;
}

.notfound {
  display: grid;
  grid-template-columns: 0.95fr 1.2fr;
  gap: 18px;
  align-items: center;
}

.notfound__big {
  font-size: 92px;
  font-weight: 1100;
  text-align: center;
  color: var(--cream);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.notfound__text {
  background: rgba(30, 38, 24, 0.55);
  border: 2px solid rgba(196, 184, 150, 0.15);
  border-radius: var(--radius-sm);
  padding: 16px;
}

@media (max-width: 980px) {
  .cards,
  .photo-grid,
  .tech-grid,
  .tech-grid--four {
    grid-template-columns: 1fr;
  }
  .poster-grid {
    grid-template-columns: 1fr;
  }
  .power {
    grid-template-columns: 1fr;
  }
  .notfound {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
