:root {
  color-scheme: dark;
  --bg: #1d0907;
  --bg-soft: #2d120d;
  --surface: rgba(43, 19, 15, 0.94);
  --surface-soft: rgba(61, 29, 24, 0.82);
  --line: rgba(190, 161, 147, 0.22);
  --ink: #f6ebde;
  --muted: #d7c2b2;
  --muted-soft: #aa9182;
  --accent: #ff5734;
  --accent-strong: #ff4425;
  --accent-soft: rgba(255, 87, 52, 0.18);
  --glow: rgba(255, 111, 65, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 88, 52, 0.11), transparent 25rem),
    radial-gradient(circle at 84% 80%, rgba(255, 140, 73, 0.09), transparent 28rem),
    linear-gradient(180deg, #220b08 0%, #1a0705 100%);
  font-family: Inter, "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.58;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

.topbar,
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0;
}

.topbar {
  border-bottom: 1px solid var(--line);
}

.home-topbar {
  padding-bottom: 12px;
}

.brand {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-lockup {
  text-decoration: none;
}

.brand-wordmark {
  width: min(280px, 48vw);
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  font-size: 0.93rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

.section-anchor {
  scroll-margin-top: 92px;
}

nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}

.page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
}

.panel,
.document {
  width: min(960px, calc(100% - 32px));
  margin: 42px auto 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(38, 16, 12, 0.9);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}

.panel {
  padding: clamp(28px, 6vw, 64px);
}

.document {
  padding: clamp(24px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #ffbea7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-eyebrow {
  color: #ff9d7e;
}

h1,
h2 {
  margin: 0;
  line-height: 1.06;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.9rem, 8vw, 5.4rem);
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

p,
li {
  max-width: 72ch;
  font-size: 1.02rem;
}

ol {
  padding-left: 1.4rem;
}

.links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2rem;
}

.links a,
.legal-links a {
  display: block;
  min-height: 64px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.home-body {
  min-height: 100vh;
}

.hero-band,
.feature-band,
.legal-band {
  width: 100%;
}

.hero-shell,
.feature-shell,
.legal-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  align-items: center;
  gap: 42px;
  min-height: calc(100vh - 92px);
  padding: 12px 0 44px;
}

.hero-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-tagline {
  margin: 0;
  color: #ffcfb8;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
}

.hero-description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.18rem);
  max-width: 34rem;
}

.hero-button {
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
}

.hero-button.primary {
  background: var(--accent);
  color: #fff5ef;
}

.hero-button.secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

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

.visual-orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.orbit-one {
  width: min(78vw, 420px);
  height: min(78vw, 420px);
}

.orbit-two {
  width: min(58vw, 310px);
  height: min(58vw, 310px);
  transform: translate(56px, 38px);
}

.visual-device {
  position: relative;
  width: min(84vw, 360px);
  aspect-ratio: 0.64;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(68, 30, 24, 0.94), rgba(29, 10, 8, 0.96));
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.visual-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 25% 16%, rgba(255, 87, 52, 0.26), transparent 10rem),
    radial-gradient(circle at 80% 76%, rgba(255, 136, 73, 0.18), transparent 12rem),
    linear-gradient(180deg, #2f110d 0%, #1a0907 100%);
}

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

.footstep {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 22px;
  height: 34px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--r));
  animation: footstepFade 6s ease-in-out infinite;
  animation-delay: var(--d);
}

.footstep::before,
.footstep::after {
  content: "";
  position: absolute;
  background: rgba(255, 198, 170, 0.13);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 113, 74, 0.08);
}

.footstep::before {
  left: 1px;
  top: 8px;
  width: 9px;
  height: 18px;
}

.footstep::after {
  right: 1px;
  top: 1px;
  width: 7px;
  height: 14px;
}

.footstep.right::before {
  left: auto;
  right: 1px;
}

.footstep.right::after {
  right: auto;
  left: 1px;
}

.visual-icon {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 120px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.26));
}

.visual-pulse {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(255, 178, 146, 0.18);
  animation: orbitPulse 5.4s ease-out infinite;
}

.pulse-one {
  inset: 18% 18% auto auto;
  width: 130px;
  height: 130px;
  animation-delay: 0.2s;
}

.pulse-two {
  left: 16%;
  bottom: 18%;
  width: 170px;
  height: 170px;
  animation-delay: 1.2s;
}

.visual-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    0 0 0 8px rgba(255, 87, 52, 0.18),
    0 0 0 18px rgba(255, 87, 52, 0.08);
}

.visual-marker::before,
.visual-marker::after {
  content: "";
  position: absolute;
  inset: 50%;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 153, 121, 0.28);
  border-radius: 999px;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
}

.visual-marker::before {
  animation: markerRipple 4s ease-out infinite;
}

.visual-marker::after {
  animation: markerRipple 4s ease-out infinite 1.25s;
}

.marker-a {
  left: 22%;
  top: 25%;
}

.marker-b {
  right: 20%;
  top: 34%;
}

.marker-c {
  left: 35%;
  bottom: 20%;
}

.marker-a::before,
.marker-a::after {
  animation-duration: 4.4s;
}

.marker-b::before,
.marker-b::after {
  animation-duration: 3.8s;
}

.marker-c::before,
.marker-c::after {
  animation-duration: 4.8s;
}

.feature-band {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.feature-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0;
}

.feature-block {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.feature-block p:last-child,
.legal-copy {
  color: var(--muted);
}

.legal-band {
  padding: 32px 0 56px;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 20px;
  align-items: start;
  padding: 26px 0 0;
}

.legal-links {
  display: grid;
  gap: 10px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.admin-body {
  min-height: 100vh;
  background: #f5f2ea;
  color: #1f2520;
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.admin-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

header.admin-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 18px;
}

.admin-body h1 {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.admin-main {
  display: grid;
  gap: 18px;
  padding-bottom: 56px;
}

.admin-auth,
.admin-status,
.review-card,
.review-empty {
  background: #ffffff;
  border: 1px solid #d9d6cd;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(48, 42, 33, 0.07);
  padding: 18px;
}

.admin-auth label {
  display: block;
  margin-bottom: 8px;
  color: #5e675f;
  font-size: 0.85rem;
  font-weight: 700;
}

.admin-token-row,
.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-token-row input {
  flex: 1 1 280px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #cfcabe;
  border-radius: 8px;
  font: inherit;
}

.admin-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #9e2f28;
  border-radius: 8px;
  background: #9e2f28;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.admin-button.secondary {
  background: #ffffff;
  color: #6f211c;
}

.admin-button.danger {
  border-color: #6f211c;
  background: #6f211c;
}

.review-list {
  display: grid;
  gap: 16px;
}

.review-card {
  display: grid;
  gap: 14px;
}

.review-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.review-reason {
  margin: 0 0 4px;
  color: #9e2f28;
  font-size: 0.85rem;
  font-weight: 700;
}

.review-card h2,
.review-card h3,
.review-empty h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.review-card h2 {
  font-size: 1.55rem;
}

.review-card h3 {
  font-size: 1rem;
}

.review-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: #ece8dc;
  color: #4b514b;
  font-size: 0.82rem;
  font-weight: 700;
}

.review-pill.danger {
  background: #f3dad7;
  color: #6f211c;
}

.review-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 14px;
  margin: 0;
}

.review-meta dt {
  color: #5e675f;
  font-weight: 700;
}

.review-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.review-description {
  margin: 0;
  max-width: none;
}

.review-detail-block {
  padding-top: 12px;
  border-top: 1px solid #e4e0d5;
}

.review-detail-block ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.moderation-category-list {
  color: #4b514b;
  font-size: 0.94rem;
}

.muted {
  color: #6c746d;
}

.review-image-link img {
  width: min(260px, 100%);
  max-height: 220px;
  object-fit: cover;
  border: 1px solid #d9d6cd;
  border-radius: 8px;
}

@keyframes markerRipple {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }

  12% {
    opacity: 0.45;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5.8);
  }
}

@keyframes orbitPulse {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.97);
  }

  50% {
    opacity: 0.55;
    transform: scale(1.03);
  }
}

@keyframes footstepFade {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--r)) translateY(8px) scale(0.92);
  }

  18%,
  42% {
    opacity: 0.75;
    transform: translate(-50%, -50%) rotate(var(--r)) translateY(0) scale(1);
  }

  70% {
    opacity: 0.08;
    transform: translate(-50%, -50%) rotate(var(--r)) translateY(-8px) scale(1.02);
  }
}

@media (max-width: 920px) {
  .hero-shell,
  .feature-shell,
  .legal-shell {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
    gap: 22px;
    padding-top: 4px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .visual-device {
    width: min(72vw, 300px);
  }
}

@media (max-width: 720px) {
  .topbar,
  .home-topbar,
  header.admin-shell,
  .review-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .home-topbar {
    width: min(100%, calc(100% - 32px));
    padding-top: 18px;
  }

  .brand-wordmark {
    width: min(230px, 62vw);
  }

  nav {
    gap: 0.8rem;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4rem);
  }

  .hero-shell {
    gap: 16px;
    padding-bottom: 28px;
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .review-meta {
    grid-template-columns: 1fr;
  }

  .legal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 240px;
    margin-top: -4px;
  }

  .visual-device {
    width: min(62vw, 220px);
    padding: 10px;
    border-radius: 28px;
  }

  .visual-screen {
    border-radius: 18px;
  }

  .visual-icon {
    width: 78px;
  }

  .orbit-one {
    width: min(70vw, 260px);
    height: min(70vw, 260px);
  }

  .orbit-two {
    width: min(52vw, 180px);
    height: min(52vw, 180px);
    transform: translate(34px, 26px);
  }

  .pulse-one {
    width: 88px;
    height: 88px;
  }

  .pulse-two {
    width: 124px;
    height: 124px;
  }
}
