:root {
  --bg: #0f1110;
  --bg-soft: #151816;
  --text: #e7e4dc;
  --accent: #b19463;
  --accent-soft: #6f7154;
  --card-border: rgba(231, 228, 220, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html,
body,
h1,
.status,
.message {
  margin: 0;
}

body {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(177, 148, 99, 0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(111, 113, 84, 0.18), transparent 35%),
    linear-gradient(160deg, var(--bg), var(--bg-soft) 55%, var(--bg));
}

.page {
  width: min(1024px, 92vw);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2.5rem, 6vw, 5rem);
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.hero {
  display: grid;
  gap: 1rem;
  max-width: 72ch;
}

.status {
  width: fit-content;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(177, 148, 99, 0.12);
  border: 1px solid rgba(177, 148, 99, 0.45);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

h1 {
  font-size: clamp(2rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(177, 148, 99, 0.1);
}

.message {
  color: #d6d1c3;
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  line-height: 1.65;
  max-width: 65ch;
  text-wrap: pretty;
}

.visual {
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(24, 27, 25, 0.88), rgba(17, 19, 18, 0.9));
  overflow: hidden;
  min-height: clamp(220px, 32vw, 280px);
}

.orb {
  position: absolute;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  top: -3.5rem;
  right: -2.5rem;
  background: radial-gradient(circle, rgba(177, 148, 99, 0.25), rgba(177, 148, 99, 0));
  filter: blur(3px);
}

.terrain {
  width: 100%;
  height: 100%;
  display: block;
}

.horizon {
  fill: none;
  stroke: url(#lineGradient);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6 6;
  animation: drift 8s linear infinite;
}

.pulse {
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  opacity: 0.2;
  animation: pulseFlow 2.4s ease-in-out infinite;
}

.pulse-b {
  animation-delay: 0.35s;
}

.pulse-c {
  animation-delay: 0.7s;
}

.node {
  fill: var(--accent-soft);
  opacity: 0.7;
  animation: nodeBlink 2.2s ease-in-out infinite;
}

.node-b {
  animation-delay: 0.3s;
}

.node-c {
  animation-delay: 0.6s;
}

.contact {
  text-align: center;
  color: #c9c3b3;
  font-size: 0.96rem;
}

.contact a {
  color: var(--text);
  text-underline-offset: 0.18em;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--accent);
}

@keyframes pulseFlow {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(0);
  }
  50% {
    opacity: 0.95;
    transform: translateX(3px);
  }
}

@keyframes nodeBlink {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes drift {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -120;
  }
}

@media (max-width: 720px) {
  .visual {
    min-height: 220px;
  }
}

@media (max-width: 480px) {
  .page {
    width: 94vw;
    padding: 1.25rem 0 2.25rem;
    gap: 1rem;
  }

  .hero {
    gap: 0.85rem;
  }

  .status {
    font-size: 0.74rem;
  }

  .contact {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .horizon,
  .pulse,
  .node {
    animation: none;
  }
}
