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

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(135deg, #f4efe6 0%, #ebf4ff 48%, #eefbe7 100%);
  color: #1f2a37;
  overflow: hidden;
}

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  box-sizing: border-box;
}

.page.compact {
  align-items: stretch;
  justify-content: stretch;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
}

.shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  gap: 18px;
}

.hero,
.card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 42, 55, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(31, 42, 55, 0.08);
  backdrop-filter: blur(10px);
}

.hero {
  padding: 28px;
}

.card {
  width: 100%;
  max-width: 720px;
  padding: 24px;
  box-sizing: border-box;
}

h1, h2 {
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
  line-height: 1.55;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #8b5e34;
}

.lead {
  color: #4a5565;
}

.button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #d97a2b 0%, #b44d20 100%);
  color: #fff;
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button:hover {
  filter: brightness(1.03);
}

.log {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 16px;
  background: #17212b;
  color: #d7e3f4;
  font-size: 13px;
  line-height: 1.5;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.log-overlay {
  position: fixed;
  inset: 18px;
  margin: 0;
  z-index: 4;
}

.is-hidden {
  display: none;
}

.ambient-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(120deg, #fff0d4 0%, #dff3ff 36%, #e6ffe2 68%, #ffe8f0 100%);
  background-size: 220% 220%;
  animation: gradientFlow 2.6s ease-in-out infinite alternate;
  z-index: 0;
}

.ambient-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.95;
  animation: drift 2.8s ease-in-out infinite alternate;
}

.ambient-blob-a {
  width: 280px;
  height: 280px;
  left: -60px;
  top: 18%;
  background: radial-gradient(circle, rgba(255, 120, 120, 0.78) 0%, rgba(255, 120, 120, 0.18) 62%, transparent 100%);
}

.ambient-blob-b {
  width: 320px;
  height: 320px;
  right: -80px;
  top: 10%;
  background: radial-gradient(circle, rgba(70, 150, 255, 0.76) 0%, rgba(70, 150, 255, 0.18) 62%, transparent 100%);
  animation-duration: 3.2s;
}

.ambient-blob-c {
  width: 300px;
  height: 300px;
  left: 24%;
  bottom: -90px;
  background: radial-gradient(circle, rgba(110, 220, 140, 0.74) 0%, rgba(110, 220, 140, 0.18) 62%, transparent 100%);
  animation-duration: 3.5s;
}

.ambient-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55), transparent 24%),
    radial-gradient(circle at 68% 58%, rgba(255,255,255,0.35), transparent 20%);
  opacity: 0.75;
}

@keyframes drift {
  from {
    transform: translate3d(-10px, -8px, 0) scale(0.96);
  }
  to {
    transform: translate3d(14px, 12px, 0) scale(1.06);
  }
}

@keyframes gradientFlow {
  from {
    background-position: 0% 0%, 100% 0%, 0% 50%;
  }
  to {
    background-position: 8% 10%, 92% 12%, 100% 50%;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 16px;
  }

  .hero,
  .card {
    border-radius: 18px;
  }

  .hero,
  .card {
    padding: 18px;
  }
}
