/* =========================================================
   ARMAD — brand landing / email capture
   Palette: strictly #000 / #FFF  (per brand guideline)
   Display: Archivo (extended/heavy) ~ STRETCH PRO
   Body:    Helvetica / system  ~ Helvetica Medium
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --dim: rgba(255, 255, 255, 0.55);
  --faint: rgba(255, 255, 255, 0.30);
  --hair: rgba(255, 255, 255, 0.18);
  --line: rgba(255, 255, 255, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  min-height: 100%;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
}

/* ---------- background brand mark ---------- */
.bg-mark {
  position: fixed;
  right: -18vmax;
  bottom: -20vmax;
  width: 72vmax;
  height: 72vmax;
  background: url("assets/armad-mark.png") center / contain no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  animation: spin 140s linear infinite;
  will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- film grain ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout shell ---------- */
.shell {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(28px, 6vh, 64px);
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  height: clamp(20px, 2.4vw, 30px);
  width: auto;
  display: block;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--dim);
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 780px;
}

.mark {
  width: clamp(56px, 8vw, 92px);
  height: auto;
  margin-bottom: clamp(20px, 3vh, 34px);
  animation: pulse 6s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.92; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.035); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--dim);
}
.eyebrow .rule {
  display: inline-block;
  width: clamp(28px, 6vw, 64px);
  height: 1px;
  background: var(--faint);
}

.display {
  font-family: "Archivo", "Helvetica Neue", sans-serif;
  font-weight: 900;
  font-stretch: 110%;
  /* sized so the longest single word ("PERFECTION") fits without clipping */
  font-size: clamp(2.9rem, 9vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(22px, 3vh, 34px);
  text-transform: uppercase;
}

.lede {
  max-width: 46ch;
  margin: 0 0 clamp(30px, 4vh, 44px);
  font-size: clamp(0.98rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--dim);
  font-weight: 400;
}

/* ---------- signup form ---------- */
.signup { width: min(560px, 100%); }

.field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field:focus-within {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

#email {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 18px 20px;
  outline: none;
}
#email::placeholder { color: var(--faint); }

#submit {
  border: 0;
  border-left: 1px solid var(--hair);
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  padding: 0 clamp(20px, 3vw, 34px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), opacity 0.2s;
}
#submit:hover { background: #d9d9d9; }
#submit:active { transform: translateY(1px); }
#submit:disabled { opacity: 0.5; cursor: default; }
.btn-arrow { transition: transform 0.25s var(--ease); }
#submit:hover .btn-arrow { transform: translateX(4px); }

.form-msg {
  min-height: 1.2em;
  margin: 12px 2px 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--dim);
}
.form-msg.error { color: #ff6b6b; }

/* ---------- success state ---------- */
.success { animation: rise 0.6s var(--ease) both; }
.success-title {
  font-family: "Archivo", sans-serif;
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.success-sub { margin: 0; color: var(--dim); font-size: 1rem; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}
.foot {
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--faint);
  font-weight: 600;
  white-space: nowrap;
}
.foot--mid {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .bg-mark, .mark { animation: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .display {
    /* extended weight is wide — scale down and relax the stretch so the
       longest locked line ("HOLDS YOU") always fits the viewport */
    font-size: clamp(2.1rem, 11.5vw, 4rem);
    font-stretch: 100%;
    letter-spacing: -0.02em;
  }
  .success-title { font-size: clamp(2rem, 11vw, 3.4rem); font-stretch: 100%; }
  .field { flex-direction: column; align-items: stretch; }
  #submit {
    border-left: 0;
    border-top: 1px solid var(--hair);
    padding: 15px 20px;
    justify-content: center;
  }
  .topbar { align-items: flex-start; }
}
