:root {
  --bg-top: #07110e;
  --bg-mid: #103228;
  --bg-bottom: #173d32;
  --signal: #8effc3;
  --signal-muted: #6fd7ad;
  --panel: rgba(7, 22, 18, 0.7);
  --panel-border: rgba(153, 247, 206, 0.26);
  --accent: #f5f9bf;
  --text: #ebfff7;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Space Mono", monospace;
  color: var(--text);
  background: radial-gradient(circle at 16% 10%, rgba(142, 255, 195, 0.12), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(212, 255, 186, 0.16), transparent 40%),
    linear-gradient(160deg, var(--bg-top), var(--bg-mid) 55%, var(--bg-bottom));
  overflow-x: hidden;
  position: relative;
}

.grid-haze {
  position: fixed;
  inset: -20% -10% auto;
  height: 48vh;
  background: linear-gradient(
    120deg,
    rgba(123, 235, 182, 0.14),
    rgba(133, 255, 197, 0.24),
    rgba(245, 249, 191, 0.12)
  );
  filter: blur(40px);
  animation: drift 15s ease-in-out infinite alternate;
  z-index: 0;
}

#pulse-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.site-header,
main,
footer {
  position: relative;
  z-index: 2;
}

.site-header {
  max-width: 980px;
  margin: 0 auto;
  padding: 4.5rem 1.2rem 2.2rem;
  animation: fadeUp 0.9s ease-out both;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  opacity: 0.88;
  margin: 0 0 0.7rem;
}

h1,
h2 {
  font-family: "Archivo Black", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  margin: 0;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(3, 12, 26, 0.34);
}

.subtitle {
  max-width: 56ch;
  margin: 0.9rem 0 1.5rem;
  color: var(--signal);
}

.cta {
  display: inline-block;
  color: #102117;
  background: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 8px 20px rgba(255, 231, 161, 0.35);
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 231, 161, 0.42);
}

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.2rem 4rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card,
.console,
.support {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card {
  padding: 1rem;
}

.card h2 {
  font-size: 1.1rem;
  margin-top: 0;
}

.console,
.support {
  margin-top: 1.2rem;
  padding: 1.2rem;
}

.console h2,
.support h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

textarea,
input,
button {
  font: inherit;
}

#directory-input,
.support-form input,
.support-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(153, 247, 206, 0.32);
  background: rgba(7, 17, 31, 0.62);
  color: var(--text);
  padding: 0.75rem;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

#directory-input:focus,
.support-form input:focus,
.support-form textarea:focus {
  outline: 2px solid rgba(245, 249, 191, 0.6);
  outline-offset: 1px;
}

.status {
  margin: 0.9rem 0 0.5rem;
  color: var(--signal-muted);
}

.event-log {
  list-style: none;
  margin: 0;
  padding: 0.6rem;
  border-radius: 12px;
  min-height: 128px;
  background: rgba(3, 12, 10, 0.7);
  border: 1px solid rgba(122, 224, 183, 0.18);
}

.event-log li {
  border-bottom: 1px dashed rgba(142, 255, 195, 0.25);
  padding: 0.35rem 0;
  color: #d7ffe9;
}

.event-log li:last-child {
  border-bottom: 0;
}

.support p a {
  color: #f5f9bf;
  font-weight: 700;
}

.support-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.support-form button {
  margin-top: 0.5rem;
  border: 0;
  color: #102117;
  background: linear-gradient(120deg, #f5f9bf, #d9ffd5);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

#launch-btn {
  border: 0;
  color: #0d1f15;
  background: linear-gradient(120deg, #8effc3, #d7ffe9);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 1.1rem;
  color: rgba(243, 251, 255, 0.78);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.65s ease-out forwards;
}

.reveal:nth-child(1) {
  animation-delay: 120ms;
}

.reveal:nth-child(2) {
  animation-delay: 240ms;
}

.reveal:nth-child(3) {
  animation-delay: 360ms;
}

.console.reveal {
  animation-delay: 460ms;
}

.support.reveal {
  animation-delay: 560ms;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes drift {
  from {
    transform: translateX(-2%) rotate(-1.5deg);
  }
  to {
    transform: translateX(2%) rotate(1.5deg);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 3.1rem;
  }

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