:root {
  --keep: #3fb0d4;
  --sell: #7ed957;
  --donate: #ff5757;
  --deep: #0552b0;
  --ink: #0a1628;
  --muted: #334155;
  --line: #d7e6f6;
  --surface: #ffffff;
  --soft: #e6f6fb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: #000;
}

a {
  color: var(--deep);
}

/* Full-viewport Keep · Sell · Donate logo panels (all pages) */

.logo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  pointer-events: none;
}

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vh, 1rem);
  padding: clamp(0.75rem, 2vw, 1.25rem);
  text-align: center;
}

.panel-keep {
  background: var(--keep);
}

.panel-sell {
  background: var(--sell);
}

.panel-donate {
  background: var(--donate);
}

.panel-icon {
  width: clamp(72px, 22vw, 140px);
  height: clamp(72px, 22vw, 140px);
  object-fit: contain;
}

.panel-label {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.panel-label small {
  display: block;
  margin-top: 0.2em;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Home: full screen, bottom overlay */

.page-home {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
}

.page-home .logo-bg {
  position: absolute;
  height: 100%;
}

.home-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 4vw, 2rem) clamp(1.1rem, 3vw, 1.5rem);
  text-align: center;
  color: var(--white);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 38%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.92;
}

.page-home h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}

.tagline {
  margin: 0 0 0.85rem;
  font-size: clamp(0.88rem, 2.4vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
  opacity: 0.92;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 420px;
  margin: 0 auto;
}

@media (min-width: 520px) {
  .notify-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.notify-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.notify-form input[type="email"] {
  flex: 1;
  min-height: 46px;
  padding: 0 0.9rem;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font: inherit;
  font-weight: 600;
}

.notify-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.notify-form input[type="email"]:focus {
  outline: none;
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.notify-form button {
  min-height: 46px;
  padding: 0 1.1rem;
  border: none;
  border-radius: 12px;
  background: var(--white);
  color: #0b1b2b;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.notify-form button:disabled {
  opacity: 0.72;
  cursor: wait;
}

/* Waitlist honeypot: off-screen for people, still in the DOM for bots. */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-slot {
  display: flex;
  justify-content: center;
  margin: 0.7rem auto 0;
}

.turnstile-slot[hidden] {
  display: none;
}

.form-message {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-message[data-state="success"] {
  color: #b8f5c8;
}

.form-message[data-state="error"] {
  color: #ffc9c9;
}

/* Inner pages: scrollable content over logo panels */

.page-doc {
  position: relative;
  z-index: 1;
  min-height: 100svh;
}

.page-doc .content-wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 4vw, 1.5rem) clamp(2rem, 5vw, 3rem);
}

.doc-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 28px rgba(5, 82, 176, 0.12);
}

.brand {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--deep);
  margin: 0 0 0.35rem;
}

.doc-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--deep);
}

.meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.35rem 2rem;
  box-shadow: 0 8px 28px rgba(5, 82, 176, 0.1);
}

.doc-main h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.12rem;
  color: var(--deep);
  letter-spacing: -0.015em;
}

.doc-main h2:first-child {
  margin-top: 0;
}

.doc-main h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1rem;
  color: var(--ink);
}

.doc-main p,
.doc-main li {
  color: var(--muted);
  font-size: 0.98rem;
}

.doc-main p {
  margin: 0.55rem 0;
}

.doc-main ul {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1.2rem;
}

.doc-main li {
  margin: 0.3rem 0;
}

.contact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  background: #fafcff;
}

.contact-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--deep);
}

.contact-card p {
  margin: 0;
}

.contact-card a {
  font-weight: 700;
  word-break: break-word;
}

.invite-actions {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}

.invite-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
}

.invite-btn-primary {
  background: var(--deep);
  color: var(--white);
}

.invite-btn-secondary {
  background: var(--soft);
  color: var(--deep);
  border: 1.5px solid var(--line);
}

.invite-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.invite-steps li {
  margin: 0.45rem 0;
}

.invite-fine {
  margin: 0.75rem 0 0;
  color: var(--donate);
  font-weight: 600;
}

/* Shared footer nav (all pages) */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  text-decoration: underline;
  color: var(--white);
}

.page-doc .site-footer {
  margin-top: 1.25rem;
  padding: 1rem 0 0.25rem;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  border-radius: 16px;
}

.page-doc .site-footer p {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Keep · Sell · Donate stay as vertical columns on all viewports (brand lockup). */
@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .invite-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .panel {
    gap: clamp(0.35rem, 1.5vh, 0.75rem);
    padding: clamp(0.5rem, 1.5vw, 0.85rem);
  }

  .panel-icon {
    width: clamp(48px, 18vw, 88px);
    height: clamp(48px, 18vw, 88px);
  }

  .panel-label {
    font-size: clamp(1rem, 5.5vw, 1.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
