/* Hive Secrets, by Balsoft.
   Design: a sealed cell in the honeycomb. Dark charcoal ground, one honey-gold
   element per view, Bricolage Grotesque for voice, JetBrains Mono for anything
   secret-shaped. Single committed dark theme. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #0b0d08;
  --panel: #14170e;
  --panel-deep: #101208;
  --line: #262b1d;
  --line-soft: #1c2015;
  --text: #f4f0e2;
  --muted: #a4a996;
  --gold: #fcb608;
  --gold-bright: #fcca00;
  --gold-dim: rgba(252, 182, 8, 0.14);
  --teal: #4cc7cf;
  --danger: #e56a5b;
  --ok: #93cf8f;
  --radius: 12px;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--ground); }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(252, 182, 8, 0.05), transparent 60%),
    var(--ground);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

header.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line-soft);
}
header.brand img { width: 34px; height: 34px; }
header.brand .word {
  color: var(--text);
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
header.brand .by {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

footer {
  padding: 22px 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
}

main {
  flex: 1;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
main.wide { max-width: 1040px; }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.hero h1 .gold { color: var(--gold-bright); }

h2 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 10px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); font-size: 14px; }
.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 46ch;
  margin: 18px 0 30px;
}

/* ---------- hero (index) ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 32px;
  padding: 48px 0 40px;
}
.hero-comb { justify-self: center; width: min(100%, 380px); height: auto; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .hero-comb { order: -1; width: 200px; opacity: 0.85; }
}

.comb-line { fill: none; stroke: var(--line); stroke-width: 2; }
.comb-sealed { fill: var(--gold); }
.comb-glow { fill: var(--gold); opacity: 0.16; filter: blur(1px); }

@media (prefers-reduced-motion: no-preference) {
  .hero > div > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero > div > *:nth-child(2) { animation-delay: 0.08s; }
  .hero > div > *:nth-child(3) { animation-delay: 0.16s; }
  .hero > div > *:nth-child(4) { animation-delay: 0.24s; }
  .comb-sealed { animation: seal-pulse 4.5s ease-in-out infinite; }
  .comb-glow { animation: glow-pulse 4.5s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes seal-pulse { 0%, 100% { fill: var(--gold); } 50% { fill: var(--gold-bright); } }
@keyframes glow-pulse { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.28; } }

/* ---------- how it works (real sequence, so numbers carry meaning) ---------- */

.steps {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.steps li b { display: block; color: var(--text); font-weight: 650; margin: 8px 0 4px; font-size: 15px; }
.steps .n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.assurance {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.9;
}
.assurance b { color: var(--text); font-weight: 600; }

/* ---------- cards / panels ---------- */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin: 22px 0;
}

/* ---------- forms ---------- */

label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 8px;
}
input, textarea, select {
  width: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-deep);
  color: var(--text);
  transition: border-color 0.15s ease;
}
textarea { min-height: 130px; resize: vertical; font-family: var(--font-mono); font-size: 13.5px; }
input::placeholder, textarea::placeholder { color: #5d6252; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

button, .button {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #171303;
  background: var(--gold);
  border: none;
  border-radius: 10px;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 22px;
  transition: background 0.15s ease, transform 0.15s ease;
}
button:hover, .button:hover { background: var(--gold-bright); transform: translateY(-1px); }
button:active, .button:active { transform: none; }
button:disabled { background: #3a3d30; color: #7d8172; cursor: default; transform: none; }
button.secondary, .button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
button.secondary:hover, .button.secondary:hover { background: var(--panel); border-color: var(--muted); }

.cta-note { margin-top: 12px; }

/* ---------- secret-shaped things ---------- */

.otp-input {
  font-family: var(--font-mono);
  font-size: 30px;
  letter-spacing: 14px;
  text-align: center;
  max-width: 300px;
  padding: 14px 8px 14px 22px;
}

.linkbox, .secretbox {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  background: var(--panel-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  word-break: break-all;
  white-space: pre-wrap;
  margin: 14px 0 4px;
}
.secretbox { font-size: 15px; color: var(--gold-bright); }

.revealed { border-color: var(--gold); box-shadow: 0 0 40px rgba(252, 182, 8, 0.12); }
@media (prefers-reduced-motion: no-preference) {
  .revealed { animation: unseal 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes unseal { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }

/* ---------- states ---------- */

.error { color: var(--danger); font-weight: 600; font-size: 14px; margin-top: 14px; }
.ok { color: var(--ok); font-weight: 600; }
.warn {
  background: var(--gold-dim);
  border: 1px solid rgba(252, 182, 8, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #e8d9a8;
  margin-top: 20px;
  line-height: 1.6;
}

.hidden { display: none; }

.seal-mark { vertical-align: -3px; margin-right: 8px; }
