/* Blake's Peptides — landing */

:root {
  --bg:         #f0f2f7;
  --ink:        #080f18;
  --muted:      #3d4f65;
  --faint:      #6e7f95;
  --line:       rgba(8, 15, 24, 0.08);
  --line-med:   rgba(8, 15, 24, 0.14);
  --navy:       #0b1f40;
  --accent:     #1a3d6e;
  --surface:    #ffffff;
  --amber:      #c47a1a;
  --amber-line: rgba(196, 122, 26, 0.22);
  --ease:       200ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:   300ms cubic-bezier(0, 0, 0.2, 1);
}

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

html, body { height: 100%; }

body.bp-body {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: bp-arrive 0.5s cubic-bezier(0, 0, 0.2, 1) both;
  position: relative;
}

@keyframes bp-arrive {
  from { opacity: 0; }
  to   { opacity: 1; }
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

:focus-visible {
  outline: 2px solid rgba(22, 101, 52, 0.45);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Orbs ───────────────────────────────────── */

.bp-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.bp-orb--1 {
  width: 700px;
  height: 700px;
  top: -200px;
  right: -160px;
  background: radial-gradient(circle, #86efac 0%, transparent 68%);
  opacity: 0.09;
  animation: bp-drift-1 18s ease-in-out infinite;
}

.bp-orb--2 {
  width: 560px;
  height: 560px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, #4ade80 0%, transparent 68%);
  opacity: 0.07;
  animation: bp-drift-2 22s ease-in-out infinite;
}

.bp-orb--3 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #bbf7d0 0%, transparent 68%);
  opacity: 0.06;
  animation: bp-drift-3 28s ease-in-out infinite;
}

@keyframes bp-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  33%       { transform: translate(-30px, 20px); }
  66%       { transform: translate(20px, -15px); }
}
@keyframes bp-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  40%       { transform: translate(25px, -20px); }
  70%       { transform: translate(-15px, 30px); }
}
@keyframes bp-drift-3 {
  0%, 100% { transform: translate(-50%, -50%); }
  50%       { transform: translate(calc(-50% + 40px), calc(-50% - 30px)); }
}

/* ─── Page layout ────────────────────────────── */

.bp-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
  position: relative;
  z-index: 1;
}

/* ─── Center stack ───────────────────────────── */

.bp-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  width: 100%;
  gap: 0;
}

/* ─── Brand nameplate ────────────────────────── */

.bp-brand {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 28px;
  animation: bp-enter 0.8s cubic-bezier(0, 0, 0.2, 1) 0.05s both;
}

/* ─── Headline ───────────────────────────────── */

.bp-headline {
  font-size: clamp(3.2rem, 11vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
  padding-bottom: 0.06em;
  background: radial-gradient(ellipse at 40% 50%, #080808 0%, #161616 30%, #333333 60%, #1e1e1e 85%, #0c0c0c 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    bp-enter 0.8s cubic-bezier(0, 0, 0.2, 1) 0.05s both,
    bp-breathe 10s ease-in-out infinite;
  margin-bottom: 16px;
}

@keyframes bp-breathe {
  0%   { background-position: 20% 40%; }
  25%  { background-position: 65% 55%; }
  50%  { background-position: 45% 20%; }
  75%  { background-position: 30% 65%; }
  100% { background-position: 20% 40%; }
}

/* ─── Sub ────────────────────────────────────── */

.bp-sub {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--faint);
  letter-spacing: 0.04em;
  margin-bottom: 44px;
  animation: bp-enter 0.8s cubic-bezier(0, 0, 0.2, 1) 0.22s both;
}

/* ─── Form wrap ──────────────────────────────── */

.bp-form-wrap {
  width: 100%;
  animation: bp-enter 0.8s cubic-bezier(0, 0, 0.2, 1) 0.28s both;
}

/* ─── Form ───────────────────────────────────── */

.bp-form { width: 100%; }

.bp-form-message {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.bp-form-message--error {
  border-color: var(--amber-line);
  color: var(--amber);
}

.bp-form-row {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line-med);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 24px rgba(8, 15, 24, 0.07),
    0 1px 4px rgba(8, 15, 24, 0.04);
  padding: 5px 5px 5px 22px;
  align-items: center;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.bp-form-row:focus-within {
  border-color: rgba(22, 101, 52, 0.32);
  box-shadow:
    0 0 0 4px rgba(22, 101, 52, 0.08),
    0 4px 24px rgba(8, 15, 24, 0.07);
}

.bp-form-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 11px 0;
  outline: none;
}

.bp-form-row input::placeholder { color: var(--faint); }

.bp-form-row button {
  flex-shrink: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #14532d 0%, #052e16 60%, #166534 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  padding: 12px 26px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(8, 15, 24, 0.28), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.bp-form-row button:hover,
.bp-form-row button:focus-visible {
  background: linear-gradient(135deg, #166534 0%, #0a3d20 60%, #15803d 100%);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 14px rgba(8, 15, 24, 0.32), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.bp-form-row button:active { transform: translateY(0) scale(1); }

/* ─── Screenreader ───────────────────────────── */

.bp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Entrance animation ─────────────────────── */

@keyframes bp-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .bp-orb            { animation: none; }
  .bp-brand,
  .bp-headline,
  .bp-sub,
  .bp-form-wrap      { animation: none; }
  body.bp-body       { animation: none; }
}

/* ─── Mobile ─────────────────────────────────── */

@media (max-width: 520px) {
  .bp-page     { padding: 48px 20px; }
  .bp-headline { margin-bottom: 16px; }
  .bp-sub      { margin-bottom: 36px; }

  .bp-form-row {
    flex-direction: column;
    border-radius: 20px;
    padding: 14px 16px;
    gap: 10px;
    align-items: stretch;
  }
  .bp-form-row input  { text-align: center; padding: 8px 0; }
  .bp-form-row button { padding: 13px 20px; width: 100%; }
}

/* ═══════════════════════════════════════════════
   INNER PAGES  (terms / privacy / security / etc)
   ═══════════════════════════════════════════════ */

.bp-inner-page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0 28px;
}

.bp-inner-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--line);
}

.bp-inner-wrap {
  width: min(100%, 720px);
  margin: 0 auto;
}

.bp-inner-header .bp-inner-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bp-inner-home { display: flex; align-items: center; }

.bp-inner-logo-wrap {
  overflow: hidden;
  height: 32px;
  display: inline-flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity var(--ease);
}
.bp-inner-logo-wrap:hover { opacity: 1; }

.bp-inner-logo {
  height: 86px;
  width: auto;
  display: block;
  margin-top: -28px;
  margin-bottom: -26px;
  max-width: none;
}

.bp-inner-logo-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.bp-inner-back {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--faint);
  padding: 5px 12px;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}
.bp-inner-back:hover { color: var(--ink); background: rgba(255,255,255,0.06); }

.bp-inner-main { padding: 64px 0 80px; }

.bp-doc-header {
  margin-bottom: 52px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.bp-doc-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.bp-doc h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 14px;
}

.bp-doc-meta {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.01em;
}

.bp-doc-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 44px;
}

.bp-doc-body section { margin-bottom: 36px; }

.bp-doc-body h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.bp-doc-body p,
.bp-doc-body li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.bp-doc-body ul {
  padding-left: 1.4em;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-doc-body a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-med);
  transition: border-color var(--ease);
}
.bp-doc-body a:hover { border-color: var(--muted); }

.bp-inner-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.bp-inner-footer .bp-inner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.bp-inner-footer-socials {
  display: flex;
  align-items: center;
  gap: 2px;
}

.bp-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--faint);
  transition: color var(--ease), background var(--ease);
}

.bp-social svg {
  width: 15px;
  height: 15px;
  display: block;
}

.bp-social:hover,
.bp-social:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.bp-inner-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.bp-inner-footer-legal a {
  font-size: 0.7rem;
  color: var(--faint);
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 6px;
  transition: color var(--ease), background var(--ease);
}
.bp-inner-footer-legal a:hover,
.bp-inner-footer-legal a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.bp-inner-copy {
  font-size: 0.68rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.bp-inner-header { animation: bp-enter 0.6s cubic-bezier(0,0,0.2,1) 0.05s both; }
.bp-doc-header   { animation: bp-enter 0.6s cubic-bezier(0,0,0.2,1) 0.1s  both; }
.bp-doc-body     { animation: bp-enter 0.6s cubic-bezier(0,0,0.2,1) 0.16s both; }

@media (max-width: 520px) {
  .bp-inner-page { padding: 0 20px; }
  .bp-inner-main { padding: 44px 0 60px; }
  .bp-doc-header { margin-bottom: 36px; }
}
