:root {
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --ink: #1d1d1f;
  --gray: #6e6e73;
  --gray-light: #86868b;
  --card: #f5f5f7;
  --radius-card: 18px;
  --radius-pill: 980px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) 24px 64px;
  text-align: center;
}

/* ---------- hero ---------- */

h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Helvetica, Arial, sans-serif;
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--gray);
  max-width: 34em;
  margin: 0 auto;
}

/* ---------- proof / selfie ---------- */

.proof {
  margin-top: 72px;
}

.selfie-placeholder {
  aspect-ratio: 4 / 5;
  max-width: 340px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gray-light);
}

.selfie-placeholder svg {
  width: 56px;
  height: 56px;
}

.selfie-placeholder p {
  font-size: 15px;
  line-height: 1.45;
}

.selfie {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: var(--radius-card);
}

.caption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--gray-light);
}

/* ---------- contact ---------- */

.contact {
  margin-top: 96px;
}

h2 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

#gate[hidden] {
  display: none;
}

#gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 65px;
}

.gate-status {
  font-size: 14px;
  color: var(--gray-light);
}

.gate-status.error {
  color: #d70015;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-buttons a {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, transform 0.15s ease;
}

.contact-buttons a:hover {
  background: var(--blue-hover);
}

.contact-buttons a:active {
  transform: scale(0.97);
}

.contact-buttons.secondary {
  margin-top: 16px;
}

.contact-buttons.secondary a {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.contact-buttons.secondary a:hover {
  background: var(--blue);
  color: #fff;
}

/* ---------- footer ---------- */

footer {
  margin-top: 96px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
}

footer a {
  color: var(--blue);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.24s; }
.reveal:nth-child(4) { animation-delay: 0.36s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
