:root {
  --bg: #dff3f0;
  --ink: #10221f;
  --muted: #3d5c56;
  --accent: #067a6f;
  --warn: #ffb703;
  --warn-ink: #1a1a1a;
  --sky: #4cc9c0;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  overflow: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 183, 3, 0.45), transparent 38%),
    radial-gradient(circle at 8% 88%, rgba(6, 122, 111, 0.35), transparent 42%),
    radial-gradient(circle at 55% 40%, rgba(76, 201, 192, 0.28), transparent 45%),
    linear-gradient(155deg, #e8faf6 0%, #c8ebe6 40%, #b7e0ef 100%);
}

.tape {
  position: absolute;
  height: 36px;
  width: 150%;
  left: -25%;
  background: repeating-linear-gradient(
    -45deg,
    var(--warn) 0 18px,
    var(--warn-ink) 18px 36px
  );
  box-shadow: 0 8px 24px rgba(16, 34, 31, 0.18);
  animation: crawl 16s linear infinite;
}
.t1 { top: 10%; transform: rotate(-9deg); }
.t2 {
  bottom: 12%;
  transform: rotate(7deg);
  animation-direction: reverse;
  animation-duration: 20s;
}

.panel {
  position: absolute;
  right: 6%;
  top: 50%;
  translate: 0 -50%;
  width: min(42vw, 340px);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(6, 122, 111, 0.92), rgba(16, 34, 31, 0.95));
  box-shadow: 0 30px 60px rgba(16, 34, 31, 0.22);
  animation: float 8s ease-in-out infinite;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  border: 2px dashed rgba(255, 183, 3, 0.55);
}
.panel::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -18px;
  top: -18px;
  border-radius: 18px;
  background: var(--warn);
  box-shadow: 0 12px 24px rgba(255, 183, 3, 0.45);
  animation: bob 4.5s ease-in-out infinite;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  max-width: 40rem;
  padding: clamp(28px, 7vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.brand {
  margin: 0;
  font-family: "Archivo Black", Impact, sans-serif;
  font-size: clamp(36px, 9vw, 72px);
  letter-spacing: -0.03em;
  line-height: 0.92;
  text-transform: lowercase;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.35);
  animation: rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

h1 {
  margin: 0;
  display: inline-block;
  width: fit-content;
  padding: 8px 12px;
  font-size: clamp(12px, 1.8vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #042f2c;
  background: var(--sky);
  animation: rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.08s both;
}

.lede {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(16px, 2.3vw, 19px);
  line-height: 1.5;
  color: var(--muted);
  animation: rise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes crawl {
  from { background-position: 0 0; }
  to   { background-position: 180px 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 14px)); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}

@media (max-width: 720px) {
  .panel {
    width: min(48vw, 180px);
    right: 4%;
    top: 24%;
    translate: 0 0;
    opacity: 0.85;
    animation: float-mobile 8s ease-in-out infinite;
  }
  @keyframes float-mobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  .t1 { top: 6%; }
  .t2 { bottom: 8%; }
}

@media (prefers-reduced-motion: reduce) {
  .tape, .panel, .panel::after, .brand, h1, .lede { animation: none; }
}
