/* ==========================================================================
   ghostline — anonymous payload relay
   Design system: acid-on-void, editorial spacing, terminal accents
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  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 {
  --bg: #070809;
  --bg-soft: #0a0c0d;
  --panel: #0d1011;
  --panel-2: #111516;
  --ink: #f3f6ee;
  --muted: #949d95;
  --dim: #606862;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --acid: #c6ff4a;
  --acid-soft: rgba(198, 255, 74, 0.12);
  --acid-line: rgba(198, 255, 74, 0.32);
  --mint: #63f0cd;
  --pink: #ff8fb8;
  --red: #ff5c72;
  --orange: #ffb35c;
  --violet: #b39bff;
  --radius: 14px;
  --radius-lg: 20px;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.72, 0.18, 1);
  --nav-h: 74px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(760px 520px at 82% -6%, rgba(198, 255, 74, 0.1), transparent 62%),
    radial-gradient(640px 480px at 4% 12%, rgba(99, 240, 205, 0.055), transparent 65%),
    radial-gradient(900px 700px at 50% 110%, rgba(198, 255, 74, 0.045), transparent 70%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 25%, transparent 78%);
}

.bg-glow {
  position: fixed;
  top: -220px;
  right: -180px;
  z-index: -2;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(198, 255, 74, 0.14), transparent 66%);
  filter: blur(30px);
}

::selection {
  background: var(--acid);
  color: #0a0c08;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 3px;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

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

.skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--acid);
  color: #0a0c08;
  font: 600 12px/1 var(--mono);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip:focus {
  transform: none;
}

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

.mono {
  font-family: var(--mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-idx {
  color: var(--acid);
}

.eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--acid-line), transparent);
}

.hl {
  background: linear-gradient(178deg, #eaffb4 6%, var(--acid) 58%, #a4e02a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.status-dot,
.pulse {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 3px rgba(198, 255, 74, 0.12), 0 0 14px rgba(198, 255, 74, 0.65);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--acid);
  opacity: 0;
  animation: pulse-ring 2.4s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.btn:hover {
  border-color: var(--acid-line);
  background: rgba(198, 255, 74, 0.06);
  color: var(--acid);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--acid);
  border-color: var(--acid);
  color: #0b0d08;
  box-shadow: 0 0 0 1px rgba(198, 255, 74, 0.25), 0 14px 34px -16px rgba(198, 255, 74, 0.75);
}

.btn-primary:hover {
  background: #d7ff83;
  border-color: #d7ff83;
  color: #0b0d08;
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(198, 255, 74, 0.35), 0 20px 44px -18px rgba(198, 255, 74, 0.85);
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  height: 38px;
  padding: 0 15px;
  font-size: 10.5px;
  border-radius: 8px;
}

.btn-sm svg {
  width: 13px;
  height: 13px;
}

.btn-block {
  width: 100%;
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  border-bottom: 1px solid rgba(198, 255, 74, 0.35);
  transition: border-color 0.2s, color 0.2s;
}

.link-btn:hover {
  color: #e2ff9a;
  border-color: #e2ff9a;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.88), rgba(7, 8, 9, 0.55) 70%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 9, 0.88);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 27px;
  height: 27px;
  color: var(--acid);
}

.brand-name {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.brand-name span {
  color: var(--acid);
}

.brand-tag {
  margin-left: 2px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links > a:not(.btn) {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links > a:not(.btn):hover {
  color: var(--acid);
}

.net-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 64px;
  padding-top: 74px;
  padding-bottom: 96px;
  min-height: calc(100vh - var(--nav-h));
}

.hero-copy {
  max-width: 590px;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(48px, 6.2vw, 86px);
  line-height: 0.94;
  letter-spacing: -0.048em;
  font-weight: 600;
}

.hero h1 .hl {
  display: inline-block;
  padding-bottom: 0.06em;
}

.lede {
  margin-top: 26px;
  max-width: 520px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.72;
}

.lede strong {
  color: var(--ink);
  font-weight: 500;
}

.claim {
  margin-top: 34px;
  max-width: 580px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.17em;
  color: var(--muted);
}

.field-label .req {
  color: var(--acid);
}

.claim-box {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: linear-gradient(180deg, #0f1212, #0a0c0c);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.claim-box:focus-within {
  border-color: var(--acid-line);
  box-shadow: 0 0 0 4px rgba(198, 255, 74, 0.07), 0 18px 50px -28px rgba(198, 255, 74, 0.5);
}

.claim-prefix {
  padding-left: 13px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
  user-select: none;
}

#handle {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 6px;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.01em;
}

#handle::placeholder {
  color: #4d554f;
}

.claim-box .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 10.5px;
  border-radius: 9px;
}

.claim-box.is-busy .btn span {
  opacity: 0.5;
}

.claim-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.claim-meta .dotsep {
  color: #333a35;
}

.claim-status {
  color: var(--acid);
}

.claim-status.is-error {
  color: var(--red);
}

.shake {
  animation: shake 0.4s var(--ease);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.trust svg {
  width: 13px;
  height: 13px;
  color: var(--acid);
  opacity: 0.85;
}

/* ---------- claim result ---------- */

.result {
  margin-top: 30px;
  padding: 22px;
  border: 1px solid var(--acid-line);
  border-radius: var(--radius);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(198, 255, 74, 0.09), transparent 70%),
    linear-gradient(180deg, #0e1210, #0a0c0b);
  box-shadow: 0 24px 70px -46px rgba(198, 255, 74, 0.5);
  animation: rise 0.5s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.result-head strong {
  color: var(--acid);
  font-weight: 500;
}

.result-head .handle-out {
  margin-left: auto;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.field {
  margin-bottom: 14px;
}

.field:last-of-type {
  margin-bottom: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.field-label-row span {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.field-label-row .field-hint {
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: none;
}

.copyline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #080a09;
}

.copyline code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 11px;
  color: #cfd8cd;
}

.copyline.secret {
  border-color: rgba(255, 179, 92, 0.28);
  background: rgba(255, 179, 92, 0.035);
}

.copyline.secret code {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.55;
  padding: 3px 0;
}

.copy-btn {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  transition: 0.2s;
}

.copy-btn:hover {
  color: var(--acid);
  border-color: var(--acid-line);
  background: var(--acid-soft);
}

.warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  color: #c7a06a;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
}

.warn svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-top: 2px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-actions .btn {
  height: 42px;
  font-size: 10.5px;
  padding: 0 16px;
}

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

.hero-art {
  position: relative;
  padding: 28px 12px 42px;
}

.term {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(180deg, #101414, #0a0d0d);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 90px -40px rgba(0, 0, 0, 0.9),
    0 0 90px -50px rgba(198, 255, 74, 0.5);
  transform: rotate(-1.1deg);
  overflow: hidden;
}

.term::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(198, 255, 74, 0.05) 47%, transparent 62%);
  background-size: 220% 100%;
  animation: scan 7s linear infinite;
}

@keyframes scan {
  from { background-position: 200% 0; }
  to { background-position: -100% 0; }
}

.term-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.dots {
  display: inline-flex;
  gap: 5px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2b322c;
}

.dots i:nth-child(1) { background: #4b3338; }
.dots i:nth-child(2) { background: #4c4630; }
.dots i:nth-child(3) { background: #33472e; }

.term-path {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}

.term-chip {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid rgba(99, 240, 205, 0.22);
  border-radius: 999px;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

.term-body {
  padding: 22px 20px 26px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 2.05;
  color: #b8c2b7;
}

.term-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term-line .p {
  margin-right: 8px;
  color: var(--acid);
}

.term-line .flag {
  color: var(--mint);
}

.term-gap {
  height: 14px;
}

.term-line.ok {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8d978d;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 15px;
  border-radius: 3px;
  background: rgba(198, 255, 74, 0.13);
  color: var(--acid);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.dots-lead {
  flex: 1;
  height: 1px;
  margin: 0 9px;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
}

.term-line .val {
  color: #d7e0d4;
}

.term-line.dim {
  color: var(--dim);
}

.term-line.acid {
  color: var(--acid);
}

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 5px;
  vertical-align: -2px;
  background: var(--acid);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.term-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.term-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.term-code {
  color: #46504a;
}

.incoming {
  position: absolute;
  left: -26px;
  bottom: -6px;
  width: min(296px, 82%);
  padding: 15px 17px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--acid);
  border-radius: 12px;
  background: linear-gradient(160deg, #121715, #0b0e0d);
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.9);
  transform: rotate(2.2deg);
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: rotate(2.2deg) translateY(0); }
  50% { transform: rotate(2.2deg) translateY(-9px); }
}

.incoming-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.tag {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--acid-soft);
  color: var(--acid);
  font-size: 8px;
}

.incoming p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #d3dbd1;
}

.incoming-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 11px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: #5b655e;
}

.art-note {
  position: absolute;
  top: 4px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 11, 10, 0.8);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--dim);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ---------- ticker ---------- */

.ticker {
  position: relative;
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.ticker-set {
  display: flex;
  flex: 0 0 auto;
}

.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 13px 26px 13px 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: #4f5851;
  white-space: nowrap;
}

.ticker-track b {
  color: var(--acid);
  font-weight: 400;
  font-size: 8px;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.section {
  padding: 104px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-head h2 {
  margin-top: 16px;
  max-width: 620px;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 330px;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.006));
  transition: border-color 0.35s, transform 0.35s var(--ease), background 0.35s;
}

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 54px;
  height: 1px;
  background: var(--acid);
  opacity: 0;
  transition: opacity 0.35s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--acid-line);
  background: linear-gradient(180deg, rgba(198, 255, 74, 0.045), rgba(255, 255, 255, 0.006));
}

.step:hover::before {
  opacity: 1;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.step-num b {
  color: var(--acid);
  font-size: 10px;
  font-weight: 500;
}

.step h3 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.66;
}

.step-code {
  display: block;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  color: #68726a;
}

.step-code em {
  color: var(--mint);
  font-style: normal;
}

/* ---------- feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}

.feature {
  padding: 30px 26px 34px;
  background: #090b0b;
  transition: background 0.35s;
}

.feature:hover {
  background: #0d100e;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border: 1px solid var(--acid-line);
  border-radius: 9px;
  background: var(--acid-soft);
  color: var(--acid);
}

.feature-icon svg {
  width: 17px;
  height: 17px;
}

.feature h3 {
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.feature p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.feature-code {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: #4c554e;
}

/* ---------- cta ---------- */

.cta {
  position: relative;
  margin-top: 104px;
  padding: 76px 40px;
  border: 1px solid var(--acid-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(198, 255, 74, 0.14), transparent 68%),
    linear-gradient(180deg, #0c100d, #080a09);
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: "ghostline://";
  position: absolute;
  left: 50%;
  bottom: -34px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: clamp(70px, 13vw, 168px);
  font-weight: 700;
  letter-spacing: -0.06em;
  color: rgba(255, 255, 255, 0.022);
  pointer-events: none;
  white-space: nowrap;
}

.cta h2 {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.cta p {
  position: relative;
  max-width: 460px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 14.5px;
}

.cta .btn {
  position: relative;
  margin-top: 30px;
  height: 52px;
  padding: 0 28px;
}

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

footer {
  margin-top: 104px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 46px 0 40px;
}

.footer-brand p {
  max-width: 300px;
  margin-top: 14px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--dim);
}

.footer-col a,
.footer-col span {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--acid);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-badges span {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: #6b746d;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #4e5750;
}

.footer-bottom .acid {
  color: var(--acid);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--acid-line);
  border-radius: 9px;
  background: rgba(14, 18, 15, 0.96);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.toast svg {
  width: 14px;
  height: 14px;
  color: var(--acid);
}

.toast.is-error {
  border-color: rgba(255, 92, 114, 0.4);
}

.toast.is-error svg {
  color: var(--red);
}

.btn-danger.is-armed {
  background: rgba(255, 92, 114, 0.14);
  border-color: var(--red);
  color: #ffc3cc;
}

/* ---------- send page ---------- */

.page-send .send-wrap {
  width: min(1020px, calc(100% - 48px));
  padding: 66px 0 90px;
}

.send-head {
  margin-bottom: 38px;
}

.send-head h1 {
  margin-top: 18px;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.send-head h1 .handle-accent {
  font-family: var(--mono);
  font-size: 0.62em;
  letter-spacing: -0.02em;
  color: var(--acid);
}

.channel-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  color: var(--dim);
}

.channel-line .sep {
  color: #333a35;
}

.channel-line .mint {
  color: var(--mint);
}

.send-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0d1010, #090b0b);
}

.composer {
  padding: 22px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.card-top .mono {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.chip {
  padding: 3px 8px;
  border: 1px solid var(--acid-line);
  border-radius: 4px;
  background: var(--acid-soft);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.vibes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.vibe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 31px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  transition: 0.2s;
}

.vibe:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.vibe.is-active {
  border-color: var(--acid);
  background: var(--acid);
  color: #0b0d08;
  font-weight: 600;
}

.vibe.is-active .vibe-ico {
  color: #0b0d08;
}

.vibe-ico {
  color: var(--acid);
  font-size: 10px;
}

#message {
  width: 100%;
  min-height: 188px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #070908;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#message::placeholder {
  color: #4b534c;
}

#message:focus {
  border-color: var(--acid-line);
  box-shadow: 0 0 0 3px rgba(198, 255, 74, 0.06);
}

.composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.counter {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.counter b {
  color: var(--muted);
  font-weight: 500;
}

.counter.is-warn b {
  color: var(--orange);
}

.counter.is-full b {
  color: var(--red);
}

.anon-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px dashed var(--line);
  color: #66706a;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.6;
}

.anon-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-top: 1px;
  color: var(--acid);
}

.side {
  display: grid;
  gap: 14px;
}

.mini {
  padding: 19px;
}

.mini-title {
  margin-bottom: 15px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--dim);
}

.log-list {
  display: grid;
  gap: 11px;
}

.log-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #7d877f;
}

.log-list .ok {
  color: var(--acid);
}

.log-list .mint {
  color: var(--mint);
}

.log-list .muted {
  color: #4d564f;
}

.log-list svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.quote {
  padding: 21px 19px 24px;
  color: #9aa49b;
  font-size: 13.5px;
  line-height: 1.7;
  font-style: italic;
  border-left: 1px solid var(--acid-line);
}

.quote small {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-style: normal;
  letter-spacing: 0.12em;
  color: #576159;
}

.send-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 92, 114, 0.3);
  border-radius: 8px;
  background: rgba(255, 92, 114, 0.05);
  color: #ff93a4;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}

.send-error svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  margin-top: 2px;
}

/* delivered state */

.delivered {
  padding: 48px 30px 50px;
  border: 1px solid var(--acid-line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(520px 260px at 50% 0%, rgba(198, 255, 74, 0.12), transparent 70%),
    linear-gradient(180deg, #0d110e, #080a09);
  text-align: center;
  animation: rise 0.55s var(--ease) both;
}

.delivered-glyph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  border: 1px solid var(--acid-line);
  border-radius: 50%;
  background: rgba(198, 255, 74, 0.07);
  color: var(--acid);
  box-shadow: 0 0 0 8px rgba(198, 255, 74, 0.04), 0 0 60px -10px rgba(198, 255, 74, 0.5);
}

.delivered-glyph svg {
  width: 28px;
  height: 28px;
}

.delivered .eyebrow {
  display: flex;
  justify-content: center;
}

.delivered h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.delivered p {
  max-width: 430px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.delivered-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

/* not found */

.notfound {
  padding: 40px 28px;
  border: 1px solid rgba(255, 92, 114, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 92, 114, 0.045), #090b0b);
  animation: rise 0.5s var(--ease) both;
}

.notfound-code {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--red);
}

.notfound h2 {
  margin-top: 12px;
  font-size: clamp(27px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.notfound p {
  max-width: 480px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.notfound .btn {
  margin-top: 22px;
}

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 80px 0 100px;
}

.error-page .notfound {
  width: min(600px, 100%);
}

.error-page .result-actions {
  margin-top: 24px;
}

.error-page .result-actions .btn {
  margin-top: 0;
}

.is-hidden {
  display: none !important;
}

/* ---------- inbox page ---------- */

.page-inbox .inbox-wrap {
  width: min(1020px, calc(100% - 48px));
  padding: 58px 0 90px;
}

.inbox-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.inbox-head h1 {
  margin-top: 14px;
  font-size: clamp(34px, 4.8vw, 54px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
}

.handle-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid var(--acid-line);
  border-radius: 7px;
  background: var(--acid-soft);
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 0.34em;
}

.inbox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inbox-actions .btn {
  height: 38px;
  padding: 0 14px;
  font-size: 9.5px;
}

.btn-danger {
  border-color: rgba(255, 92, 114, 0.3);
  color: #ff8fa0;
}

.btn-danger:hover {
  border-color: rgba(255, 92, 114, 0.6);
  background: rgba(255, 92, 114, 0.07);
  color: #ffb3bf;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}

.stat {
  padding: 16px 18px 17px;
  background: #090b0b;
}

.stat span {
  display: block;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat label {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.stat.acid span {
  color: var(--acid);
}

.feed {
  display: grid;
  gap: 11px;
}

.msg {
  position: relative;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #0c0f0e, #090b0b);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  animation: rise 0.45s var(--ease) both;
  animation-delay: var(--d, 0ms);
}

.msg:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(180deg, #0e1210, #0a0c0b);
}

.msg.is-new {
  border-color: var(--acid-line);
}

.msg.is-new::before {
  content: "";
  position: absolute;
  top: 17px;
  left: -1px;
  width: 2px;
  height: 22px;
  background: var(--acid);
  border-radius: 2px;
}

.msg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.msg-idx {
  color: #4d564f;
}

.vibe-tag {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.vibe-secret { background: rgba(198, 255, 74, 0.12); color: var(--acid); }
.vibe-confession { background: rgba(99, 240, 205, 0.1); color: var(--mint); }
.vibe-roast { background: rgba(255, 179, 92, 0.11); color: var(--orange); }
.vibe-crush { background: rgba(255, 143, 184, 0.11); color: var(--pink); }
.vibe-question { background: rgba(179, 155, 255, 0.11); color: var(--violet); }

.msg-time {
  margin-left: auto;
}

.msg-tools {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}

.msg:hover .msg-tools,
.msg:focus-within .msg-tools {
  opacity: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #626b64;
  transition: 0.2s;
}

.icon-btn svg {
  width: 13px;
  height: 13px;
}

.icon-btn:hover {
  color: var(--acid);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.icon-btn.is-danger:hover {
  color: var(--red);
  border-color: rgba(255, 92, 114, 0.35);
  background: rgba(255, 92, 114, 0.06);
}

.icon-btn.confirm {
  width: auto;
  padding: 0 7px;
  color: var(--red);
  border-color: rgba(255, 92, 114, 0.4);
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.msg-body {
  color: #dbe2d9;
  font-size: 15.5px;
  line-height: 1.66;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.inbox-empty {
  padding: 56px 26px 52px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.008);
  text-align: center;
}

.empty-glyph {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.35;
  color: #4d564f;
  white-space: pre;
}

.inbox-empty h3 {
  margin-top: 20px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.inbox-empty p {
  max-width: 380px;
  margin: 7px auto 0;
  color: var(--muted);
  font-size: 13px;
}

.inbox-empty .btn {
  margin-top: 20px;
}

.inbox-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 54px 20px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.loader {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-top-color: var(--acid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* access gate */

.access {
  width: min(560px, 100%);
  margin: 18px auto 0;
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0d100f, #080a09);
  animation: rise 0.45s var(--ease) both;
}

.access-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--red);
}

.access h2 {
  margin-top: 13px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.access p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.access-form {
  margin-top: 20px;
}

.access-input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #070908;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  transition: border-color 0.2s;
}

.access-input:focus {
  border-color: var(--acid-line);
}

.access-input::placeholder {
  color: #454d47;
}

.access .btn {
  width: 100%;
  margin-top: 10px;
  height: 44px;
  font-size: 10.5px;
}

.access-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  color: #5a635c;
}

.access-error {
  margin-top: 11px;
  color: #ff8fa0;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.55;
}

/* danger zone */

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 17px 19px;
  border: 1px solid rgba(255, 92, 114, 0.18);
  border-radius: 10px;
  background: rgba(255, 92, 114, 0.025);
}

.danger-zone h4 {
  margin: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: #d98d99;
}

.danger-zone p {
  margin-top: 4px;
  color: #6c5a5d;
  font-size: 11.5px;
}

.danger-zone .btn {
  height: 34px;
  padding: 0 12px;
  font-size: 9px;
}

/* ---------- reveal ---------- */

.reveal {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-pending {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-pending.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero {
    gap: 40px;
    padding-top: 56px;
  }

  .incoming {
    left: -12px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .section-head p {
    max-width: 520px;
  }
}

@media (max-width: 900px) {
  .nav-links .net-pill,
  .nav-links > a:not(.btn) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 48px;
    padding-bottom: 74px;
    gap: 54px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-art {
    width: min(560px, 100%);
    margin-inline: auto;
    padding-bottom: 58px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .send-grid {
    grid-template-columns: 1fr;
  }

  .side {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .shell,
  .page-send .send-wrap,
  .page-inbox .inbox-wrap {
    width: calc(100% - 32px);
  }

  .nav-inner {
    height: 64px;
  }

  .brand-tag {
    display: none;
  }

  .claim-box {
    flex-wrap: wrap;
  }

  .claim-prefix {
    padding-left: 10px;
    font-size: 10px;
  }

  #handle {
    flex: 1 1 120px;
  }

  .claim-box .btn {
    flex: 1 0 100%;
    height: 42px;
  }

  .result-actions .btn {
    flex: 1 1 auto;
  }

  .cta {
    padding: 54px 22px;
    margin-top: 76px;
  }

  .section {
    padding-top: 76px;
  }

  footer {
    margin-top: 76px;
  }

  .inbox-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .msg-tools {
    opacity: 1;
  }

  .danger-zone {
    flex-direction: column;
    align-items: flex-start;
  }

  .delivered-actions {
    flex-direction: column;
  }

  .delivered-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .hero-art {
    padding-inline: 2px;
  }

  .incoming {
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
    margin-top: 14px;
    transform: none;
    animation: none;
  }

  .term {
    transform: none;
  }

  .art-note {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .side {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .composer {
    padding: 17px;
  }

  .composer-foot {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .composer-foot .btn {
    width: 100%;
  }

  .counter {
    text-align: right;
  }

  .trust {
    gap: 8px 16px;
  }

  .step {
    padding: 22px 19px 24px;
  }

  .result-head {
    flex-wrap: wrap;
  }

  .result-head .handle-out {
    margin-left: 0;
    flex-basis: 100%;
  }

  .access {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-pending {
    opacity: 1;
    transform: none;
  }

  .term::after {
    display: none;
  }
}
