/* HINKY landing — style tile v1: one accent, no gradients, no rounded cards, no shadows.
   The caret is the only thing on the page that moves (plus the band). */

:root {
  --ground: #0B0B0C;
  --surface: #141416;
  --hairline: #26262A;
  --field-border: #33333A;
  --dim: #8E8E88;
  --body: #A8A8A2;
  --fine: #7E7E78;
  --text: #EDEDEA;
  --accent: #A7A5FF;
  --accent-hover: #C9C7FF;
  --error: #FF6B57;
  --error-text: #FF8C78;
  --error-bg: #1C1113;
  --disabled: #3A3A3E;
  --display: 'Space Mono', ui-monospace, monospace;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font-family: var(--mono);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.accent { color: var(--accent); }

/* ---- header ---- */

.top {
  height: 88px;
  padding: 0 96px;
  display: flex;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 44px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-link { color: #C8C8C2; }
.nav-link:hover { color: var(--text); }

.nav-cta {
  padding: 0 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 500;
}

.nav-cta:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.burger span { display: block; width: 22px; height: 2px; background: var(--text); }
.burger .accent-bar { width: 14px; background: var(--accent); }

.sheet {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--hairline);
}

.sheet a {
  padding: 18px 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-top: 1px solid var(--hairline);
}

.sheet[hidden] { display: none; }

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

.hero {
  padding: 128px 96px 132px;
  border-bottom: 1px solid var(--hairline);
}

.eyebrow {
  margin: 0 0 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  display: block;
  flex-shrink: 0;
}

.display {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 9.7vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--text);
  text-wrap: balance;
}

.caret {
  display: inline-block;
  width: 0.5em;
  height: 0.72em;
  background: var(--accent);
  margin-left: 0.14em;
  vertical-align: -0.02em;
  animation: blink 1.06s step-end infinite;
}

@keyframes blink { 0%, 48% { opacity: 1; } 52%, 100% { opacity: 0; } }

.lede {
  margin: 44px 0 0;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
}

/* ---- invite form ---- */

.invite { margin-top: 48px; max-width: 620px; }

.field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.row { display: flex; gap: 12px; }

.field {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  outline: none;
}

.field::placeholder { color: var(--dim); opacity: 1; }

/* focus is the accent hairline, not a glow */
.field:focus { border-color: var(--accent); }

.invite.is-error .field { border-color: var(--error); background: var(--error-bg); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

.cta {
  flex: 0 0 auto;
  height: 56px;
  padding: 0 26px;
  background: var(--accent);
  border: 0;
  border-radius: 0;
  color: var(--ground);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.cta:hover { background: var(--accent-hover); }

/* disabled loses the accent entirely rather than dimming it */
.cta:disabled,
.invite.is-error .cta {
  background: var(--disabled);
  color: var(--dim);
  cursor: default;
}

/* the error sits under the field, never inside it */
.error {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--error-text);
}

.error[hidden] { display: none; }

.sent {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
}

.sent[hidden] { display: none; }

.sent.is-full { border-color: var(--field-border); }
.sent.is-full .dot { background: var(--dim); }
.sent.is-full span:last-child { color: var(--body); }

.invite.is-sent .row { display: none; }

.fine {
  margin: 18px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fine);
}

/* ---- band ---- */

.band {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 96px;
  overflow-x: auto;
  border-bottom: 1px solid var(--hairline);
}

.band span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  white-space: nowrap;
  color: var(--accent);
}

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

.foot {
  margin-top: auto;
  padding: 56px 96px;
  display: flex;
  align-items: flex-end;
  gap: 80px;
}

.foot-brand { flex: 1 1 auto; }

.copy {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fine);
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-links a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}

.foot-links a:hover { color: var(--text); }

/* ---- small screens (the mobile comp) ---- */

@media (max-width: 760px) {
  .top { height: 60px; padding: 0 24px; gap: 0; }
  .wordmark { font-size: 18px; }
  .nav { display: none; }
  .burger { display: flex; }

  .hero { padding: 32px 24px 40px; }
  .eyebrow { margin-bottom: 30px; gap: 10px; font-size: 10px; }
  .dot { width: 7px; height: 7px; }
  .display { font-size: 48px; line-height: 0.92; }
  .lede { margin-top: 28px; font-size: 15px; }

  .invite { margin-top: 32px; }
  .field-label {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
  }
  .row { flex-direction: column; gap: 10px; }
  .field { padding: 0 16px; }
  .cta { width: 100%; }
  .fine { margin-top: 16px; font-size: 11px; letter-spacing: 0.05em; }

  .band { height: 52px; padding: 0 24px; }
  .band span { font-size: 12px; letter-spacing: 0.2em; }

  .foot { padding: 32px 24px; gap: 24px; align-items: flex-end; }
  .foot .wordmark { font-size: 18px; }
  .copy { font-size: 11px; }
  .foot-links { align-items: flex-end; }
  .foot-links a { font-size: 11px; }
}

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