/* ================= Manic Edge ================= */
:root {
  --paper: #F6F4EF;
  --paper-tint: #EEEAE1;
  --ink: #16140F;
  --ink-soft: #5F5A50;
  --accent: #E8490F;
  --accent-soft: rgba(232, 73, 15, 0.08);
  --line: rgba(22, 20, 15, 0.14);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--paper); }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); line-height: 1.02; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }

.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.hidden { display: none !important; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(246, 244, 239, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__logo {
  font-family: var(--mono); font-weight: 500; font-size: 1rem;
  letter-spacing: 0.14em; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 0.6rem;
}
.logo-mark { width: 22px; height: 22px; flex-shrink: 0; }
.nav__logo:hover .logo-mark { transform: rotate(-8deg); }
.logo-mark { transition: transform 0.25s ease; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--ink); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--small { padding: 0.6rem 1.2rem; font-size: 0.78rem; }
.btn--full { width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding: 7rem clamp(1.25rem, 4vw, 3rem) 3rem;
}
#swarm { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; max-width: 60rem; }
.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.hero__sub {
  max-width: 40rem; margin: 1.75rem auto 0; color: var(--ink-soft); font-size: 1.125rem;
}
.hero__cta { margin-top: 2.5rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.hero__status {
  position: relative; margin-top: auto; padding-top: 3rem;
  color: var(--ink-soft); letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums; min-height: 1.4em;
}
.hero__status::before { content: "● "; color: var(--accent); font-size: 0.6em; vertical-align: middle; }

/* ---------- sections ---------- */
.section { padding: clamp(5rem, 10vw, 8.5rem) clamp(1.25rem, 4vw, 3rem); max-width: 74rem; margin: 0 auto; }
.section--tint { max-width: none; background: var(--paper-tint); }
.section--tint > * { max-width: 74rem; margin-left: auto; margin-right: auto; }
.section--dark { max-width: none; background: var(--ink); color: var(--paper); }
.section--dark > * { max-width: 74rem; margin-left: auto; margin-right: auto; }
.section--dark h2 { color: var(--paper); }
.section__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.marker {
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.22em;
  margin-bottom: 1.1rem; display: block;
}

/* ---------- product cards ---------- */
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.9rem 1.7rem; background: var(--paper);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 14px 34px -18px rgba(232, 73, 15, 0.35); }
.card__num { color: var(--accent); text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 1rem; }
.card h3 { margin-bottom: 0.7rem; }
.card p:last-child { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- readout ---------- */
.readout {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--ink); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(22, 20, 15, 0.5);
}
.readout__bar {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.8rem 1.1rem; border-bottom: 1px solid rgba(246, 244, 239, 0.12);
}
.readout__bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(246, 244, 239, 0.25); }
.readout__bar .dot:first-child { background: var(--accent); }
.readout__title { color: rgba(246, 244, 239, 0.55); margin-left: 0.6rem; }
.readout__body {
  padding: 1.4rem 1.3rem 1.6rem; color: #D8D4CA;
  font-size: 0.85rem; line-height: 1.9; white-space: pre-wrap;
  min-height: 13.5rem;
}
.readout__body .tag-seed { color: #7BC7A3; }
.readout__body .tag-edge { color: #FF8A5C; }
.readout__body .cursor {
  display: inline-block; width: 0.55em; height: 1.05em;
  background: var(--accent); vertical-align: text-bottom;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.readout__caption { margin-top: 1rem; color: var(--ink-soft); text-align: center; display: block; }

/* ---------- steps ---------- */
.steps { list-style: none; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.5rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-size: 2.4rem; color: transparent;
  -webkit-text-stroke: 1px var(--accent);
  line-height: 1;
  transition: color 0.3s;
}
.step:hover .step__num { color: var(--accent); }
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--ink-soft); max-width: 44rem; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.tier {
  border: 1px solid var(--line); border-radius: 16px;
  padding: 2.1rem 1.8rem; background: var(--paper);
  display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tier:hover { transform: translateY(-5px); box-shadow: 0 20px 44px -22px rgba(22, 20, 15, 0.35); }
.tier--featured {
  border: 1.5px solid var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--paper) 45%);
  position: relative;
}
.tier--featured::after {
  content: "most engagements"; position: absolute; top: -0.8rem; right: 1.2rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  background: var(--accent); color: #fff; padding: 0.28rem 0.75rem; border-radius: 999px;
}
.tier__label { color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.9rem; }
.tier h3 { font-size: 1.6rem; margin-bottom: 0.9rem; }
.tier__price { font-family: var(--serif); font-size: 2.1rem; margin-bottom: 1rem; }
.tier__price .mono { color: var(--ink-soft); font-size: 0.8rem; }
.tier__desc { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1.4rem; }
.tier ul { list-style: none; margin-bottom: 1.8rem; flex-grow: 1; }
.tier ul li { padding: 0.5rem 0 0.5rem 1.4rem; position: relative; border-top: 1px dashed var(--line); }
.tier ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.pricing__note {
  margin-top: 2.75rem; text-align: center; color: var(--ink-soft);
  max-width: 42rem; margin-left: auto; margin-right: auto; font-size: 0.97rem;
}

/* ---------- about ---------- */
.about__lead { font-size: 1.3rem; line-height: 1.55; max-width: 46rem; color: rgba(246, 244, 239, 0.85); }
.record { list-style: none; margin-top: 3rem; max-width: 46rem; }
.record li {
  padding: 0.95rem 0; border-top: 1px dashed rgba(246, 244, 239, 0.25);
  color: rgba(246, 244, 239, 0.75); font-size: 0.875rem;
}
.record li:last-child { border-bottom: 1px dashed rgba(246, 244, 239, 0.25); }
.record__tag { color: var(--accent); margin-right: 0.6rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__copy p:last-child { margin-top: 1.25rem; color: var(--ink-soft); max-width: 26rem; }

.form label { display: block; margin-bottom: 1.1rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.form input, .form textarea {
  display: block; width: 100%; margin-top: 0.45rem;
  background: transparent; border: 1px solid var(--line); border-radius: 10px;
  padding: 0.85rem 1rem; font-family: var(--sans); font-size: 1rem; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form textarea { resize: vertical; }
.form__success { margin-top: 1rem; color: var(--accent); }

/* ---------- newsletter ---------- */
.news {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.news__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0.4rem 0 0.7rem; }
.news p:last-of-type { color: var(--ink-soft); font-size: 0.97rem; }
.form--inline { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.form--inline input {
  flex: 1; min-width: 14rem; margin-top: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 0.85rem 1.3rem;
}
.form--inline .form__success { flex-basis: 100%; margin-top: 0.4rem; }

/* ---------- footer ---------- */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line); color: var(--ink-soft);
}
.footer a { color: var(--ink-soft); }
.footer__brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer__brand .logo-mark { width: 16px; height: 16px; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .tiers { grid-template-columns: 1fr; }
  .contact, .news { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .step { grid-template-columns: 3.2rem 1fr; gap: 1rem; }
  .step__num { font-size: 1.7rem; }
  .tier--featured { order: -1; }
}
