:root {
  --green: #00a651;
  --green-deep: #007a3d;
  --ink: #121412;
  --ink-muted: #3d463f;
  --paper: #f3faf5;
  --line: rgba(0, 166, 81, 0.14);
  --shadow: rgba(18, 40, 24, 0.12);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --pad-x: max(1.15rem, env(safe-area-inset-left));
  --pad-r: max(1.15rem, env(safe-area-inset-right));
  --pad-t: max(1.25rem, env(safe-area-inset-top));
  --pad-b: max(1rem, env(safe-area-inset-bottom));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

/* ——— Atmosphere ——— */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 18%, rgba(0, 166, 81, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 45% at 80% 85%, rgba(0, 122, 61, 0.1), transparent 50%),
    linear-gradient(165deg, #eef8f1 0%, var(--paper) 45%, #e4f3ea 100%);
}

.board-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 75% at 50% 42%, #000 15%, transparent 78%);
  opacity: 0.85;
}

.pin {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7dffb0, var(--green) 45%, var(--green-deep));
  box-shadow:
    0 2px 4px var(--shadow),
    inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

.pin-a {
  top: 11%;
  left: 8%;
}

.pin-b {
  top: 16%;
  right: 9%;
}

.pin-c {
  bottom: 14%;
  left: 14%;
}

/* ——— Stage ——— */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding:
    calc(var(--pad-t) + 0.75rem)
    var(--pad-r)
    1rem
    var(--pad-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 40px;
  min-height: 0;
}

.brand {
  display: flex;
  justify-content: center;
}

.logo {
  display: block;
  width: min(72vw, 240px);
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 100%;
}

.stamp {
  position: relative;
  margin: 0 auto;
  width: fit-content;
  max-width: calc(100% - 0.5rem);
  padding: 0.55rem 0.75rem 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 15vw, 3.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--green);
  transform: rotate(-1.5deg);
}

.stamp-ink {
  position: absolute;
  inset: 0;
  border: 2.5px solid color-mix(in srgb, var(--green) 50%, transparent);
  border-radius: 3px;
  pointer-events: none;
}

.stamp-dash {
  position: absolute;
  inset: 5px;
  border: 1.5px dashed color-mix(in srgb, var(--green) 32%, transparent);
  border-radius: 2px;
  pointer-events: none;
}

.stamp-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  position: relative;
}

.stamp-line {
  display: block;
  line-height: 0.88;
  white-space: nowrap;
}

.lede {
  position: relative;
  margin: 20px auto 0;
  max-width: 22rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-muted);
}

.lede::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  margin: 1.15rem auto 0;
  border-radius: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--green) 20%,
    var(--green) 80%,
    transparent
  );
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
  opacity: 0.85;
}

.dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.foot {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  padding: 0.65rem var(--pad-r) calc(var(--pad-b) + 0.5rem) var(--pad-x);
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  opacity: 0.7;
}

/* Short phones */
@media (max-height: 680px) {
  .stage {
    gap: 1rem;
    padding-top: calc(var(--pad-t) + 0.4rem);
  }

  .logo {
    width: min(58vw, 200px);
  }

  .stamp {
    font-size: clamp(2.1rem, 13.5vw, 3rem);
  }

  .lede {
    font-size: 0.98rem;
  }
}

/* Very narrow */
@media (max-width: 360px) {
  .stamp {
    font-size: clamp(2rem, 13vw, 2.75rem);
    letter-spacing: -0.045em;
    padding: 0.45rem 0.6rem 0.4rem;
  }

  .lede {
    font-size: 0.95rem;
  }

  .status {
    font-size: 0.72rem;
  }
}

/* Larger phones */
@media (min-width: 480px) {
  :root {
    --pad-x: max(1.75rem, env(safe-area-inset-left));
    --pad-r: max(1.75rem, env(safe-area-inset-right));
  }

  .logo {
    width: min(55vw, 300px);
  }

  .stamp {
    font-size: clamp(3rem, 11vw, 4.25rem);
  }

  .lede {
    font-size: 1.125rem;
  }

  .status {
    font-size: 0.85rem;
  }

  .board-grid {
    background-size: 56px 56px;
  }

  .pin {
    width: 13px;
    height: 13px;
  }
}

/* Desktop */
@media (min-width: 768px) {
  .stage {
    width: min(920px, calc(100% - 3rem));
    gap: 70px;
    padding-top: clamp(2rem, 7vh, 5rem);
  }

  .logo {
    width: min(100%, 360px);
  }

  .hero {
    max-width: 38rem;
    gap: 1.35rem;
  }

  .stamp {
    font-size: clamp(4.5rem, 9vw, 6.75rem);
    padding: 0.7rem 1rem 0.65rem;
  }

  .stamp-ink {
    border-width: 3px;
  }

  .stamp-dash {
    inset: 7px;
  }

  .lede {
    max-width: 28rem;
    font-size: 1.25rem;
  }

  .board-grid {
    background-size: 72px 72px;
  }
}
