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

:root {
  --bg: #09090b;
  --bg2: #0c0c0e;
  --surface: #131316;
  --surface2: #18181c;
  --border: #1f1f24;
  --border-h: #2a2a30;
  --text: #e4e4e8;
  --text2: #8e8e96;
  --text3: #55555c;
  --green: #34d399;
  --orange: #f26822;
  --red: #ef4444;
  --radius: 10px;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
}

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(242,104,34,0.2); }

a { color: var(--text2); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text); }

.xmr-mark { vertical-align: -2px; margin-right: 6px; flex-shrink: 0; }

/* ── NAV ───────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 0 1.5rem;
  background: rgba(9,9,11,0.88);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--mono); font-weight: 600; font-size: 0.95rem;
  color: var(--text); display: flex; align-items: center;
}
.logo span { color: var(--text3); }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { font-size: 0.8rem; color: var(--text3); letter-spacing: 0.01em; }
.nav-links a:hover { color: var(--text2); }

/* ── HERO ──────────────────────────────── */
.hero { padding: 3.5rem 1.5rem 3rem; }
.hero-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 400px; gap: 4.5rem;
  align-items: start;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.72rem; color: var(--orange);
  letter-spacing: 0.04em; margin-bottom: 1.25rem;
  text-transform: uppercase; font-weight: 500;
}
.hero-text h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.2;
  margin-bottom: 1.25rem; color: var(--text);
}
.hero-desc {
  font-size: 0.9rem; color: var(--text2); line-height: 1.75;
  max-width: 460px; margin-bottom: 1.75rem;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.hero-pills span {
  font-family: var(--mono); font-size: 0.72rem;
  padding: 0.35rem 0.65rem; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text2); display: inline-flex; align-items: center; gap: 0.35rem;
}
.hero-pills svg { color: var(--text3); }

/* ── FORM CARD ─────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-card-head {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0;
  background: var(--bg2);
}
.form-card-head h2 {
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text3); margin: 0;
}
#order-form-wrap { padding: 1.25rem; }

label {
  display: block; font-size: 0.7rem; font-weight: 500;
  color: var(--text3); margin-bottom: 0.3rem;
  letter-spacing: 0.03em; text-transform: uppercase;
}
input, select {
  width: 100%; padding: 0.55rem 0.7rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
  font-family: var(--mono); font-size: 0.8rem;
  outline: none; transition: border-color 0.15s;
  margin-bottom: 0.85rem;
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus { border-color: rgba(242,104,34,0.35); }
input::placeholder { color: var(--text3); font-family: var(--mono); }
select {
  font-family: var(--sans); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2355555c' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.7rem center;
  padding-right: 2rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }

.fee-table {
  border-top: 1px solid var(--border);
  padding: 0.65rem 0 0; margin-bottom: 0.85rem;
}
.fee-table > div {
  display: flex; justify-content: space-between;
  padding: 0.2rem 0; font-size: 0.78rem;
}
.fee-table > div > span:first-child { color: var(--text3); }
.fee-table > div > span:last-child { font-family: var(--mono); color: var(--text2); font-size: 0.76rem; }
.fee-total { border-top: 1px solid var(--border); margin-top: 0.35rem; padding-top: 0.45rem !important; }
.fee-total > span:first-child { color: var(--text); font-weight: 600; }
.fee-total > span:last-child { color: var(--green); font-weight: 600; }

button, .form-card button {
  width: 100%; padding: 0.6rem;
  background: var(--orange); color: #fff;
  border: none; border-radius: 6px;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s; letter-spacing: 0.01em;
}
button:hover { filter: brightness(1.1); }
button:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }

.form-error {
  background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15);
  color: var(--red); padding: 0.5rem 0.7rem; border-radius: 6px;
  font-size: 0.78rem;
}
.hidden { display: none !important; }

/* ── SECTIONS ──────────────────────────── */
.section {
  padding: 4rem 1.5rem;
  max-width: 1080px; margin: 0 auto;
}
.section.alt {
  max-width: none;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section.alt > .section-head, .section.alt > .pricing-grid {
  max-width: 1080px; margin-left: auto; margin-right: auto;
}
.section-head { margin-bottom: 2rem; }
.section-head h2 {
  font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 0.35rem;
}
.section-head p { color: var(--text3); font-size: 0.85rem; }

/* ── STEPS ─────────────────────────────── */
.steps { display: flex; flex-direction: column; }
.step {
  display: grid; grid-template-columns: 44px 1fr; gap: 1.25rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step-n {
  width: 32px; height: 32px;
  border: 1px solid var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.78rem; color: var(--text3);
  flex-shrink: 0; margin-top: 0.15rem;
}
.step h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.step p { font-size: 0.82rem; color: var(--text2); line-height: 1.7; max-width: 560px; }

/* ── PRICING ───────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.loading { grid-column: 1/-1; text-align: center; color: var(--text3); padding: 2rem; }

.price-card {
  background: var(--surface); padding: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: border-color 0.15s;
}
.price-card:hover { border-color: var(--border-h); }
.price-card.featured { border-color: rgba(242,104,34,0.25); }

.price-tier {
  font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text3); font-weight: 500;
}
.price-name { font-size: 1rem; font-weight: 600; margin: 0.3rem 0 0.6rem; }
.price-pct { font-family: var(--mono); font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; }
.price-pct small { font-size: 0.82rem; color: var(--text3); font-weight: 400; }
.price-card.featured .price-pct { color: var(--orange); }
.price-desc { font-size: 0.75rem; color: var(--text3); margin: 0.3rem 0 1rem; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.25rem; flex: 1; }
.price-features li { font-size: 0.78rem; color: var(--text2); display: flex; align-items: baseline; gap: 0.5rem; }
.price-features li::before { content: '›'; color: var(--text3); font-weight: 600; }
.price-card .btn-select {
  display: block; text-align: center; padding: 0.45rem;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 0.78rem; color: var(--text2); transition: all 0.15s;
  font-family: var(--sans); font-weight: 500;
}
.price-card .btn-select:hover { border-color: var(--border-h); color: var(--text); }
.price-card.featured .btn-select {
  background: var(--orange); color: #fff; border-color: var(--orange);
}
.price-card.featured .btn-select:hover { filter: brightness(1.1); }

/* ── FAQ ───────────────────────────────── */
.faq-list {}
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 0.9rem 0; display: flex; justify-content: space-between;
  align-items: center; cursor: pointer; user-select: none; gap: 1rem;
}
.faq-q h3 { font-size: 0.88rem; font-weight: 500; }
.faq-q .arr { color: var(--text3); font-size: 0.65rem; transition: transform 0.2s; flex-shrink: 0; }
.faq-item.open .arr { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 0 0.9rem; font-size: 0.82rem; color: var(--text2); line-height: 1.75; }

/* ── FOOTER ────────────────────────────── */
footer { padding: 1.5rem; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
}
footer .logo { font-size: 0.85rem; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 0.72rem; color: var(--text3); }
.footer-note {
  width: 100%; text-align: center; padding-top: 0.85rem;
  margin-top: 0.25rem; border-top: 1px solid var(--border);
  font-size: 0.68rem; color: var(--text3); line-height: 1.6;
}

/* ── STATUS PAGE ───────────────────────── */
.status-page { min-height: 100vh; padding: 3rem 1.5rem; max-width: 720px; margin: 0 auto; }
.status-header { margin-bottom: 1.25rem; }
.status-header h1 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.status-header p { color: var(--text3); font-size: 0.78rem; margin-top: 0.2rem; }

.status-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.35rem; margin-bottom: 0.75rem;
}
.status-card h2 {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text3); margin-bottom: 0.65rem; font-weight: 600;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.65rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 500;
}
.status-awaiting { background: rgba(234,179,8,0.08); color: #eab308; }
.status-received { background: rgba(242,104,34,0.08); color: var(--orange); }
.status-churning { background: rgba(99,102,241,0.08); color: #818cf8; }
.status-completed { background: rgba(52,211,153,0.08); color: var(--green); }
.status-failed { background: rgba(239,68,68,0.08); color: var(--red); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.detail-item label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3); display: block; margin-bottom: 0.15rem; font-weight: 600; }
.detail-item .val { font-family: var(--mono); font-size: 0.75rem; color: var(--text2); word-break: break-all; }

.hop-progress { display: flex; position: relative; margin: 0.5rem 0; }
.hop-track { position: absolute; top: 12px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }
.hop-fill { height: 100%; background: var(--green); transition: width 0.5s; border-radius: 1px; }
.hop-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.hop-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.35rem; font-size: 0.6rem; font-weight: 600; color: var(--text3);
  transition: all 0.2s;
}
.hop-step.done .hop-dot { background: var(--green); border-color: var(--green); color: var(--bg); }
.hop-step.active .hop-dot { border-color: var(--orange); color: var(--orange); }
.hop-label { font-size: 0.58rem; color: var(--text3); font-family: var(--mono); }

.hop-detail-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.75rem; }
.hop-detail-item { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 0.9rem; }
.hop-detail-item.done { border-color: rgba(52,211,153,0.15); }
.hop-detail-item.active { border-color: rgba(242,104,34,0.15); }
.hop-detail-header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.hop-detail-header .hop-title { font-size: 0.78rem; font-weight: 600; }
.hop-detail-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.hop-field label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3); display: block; margin-bottom: 0.1rem; }
.hop-field .hop-val { font-family: var(--mono); font-size: 0.65rem; color: var(--text2); word-break: break-all; }

.key-reveal { margin-top: 0.5rem; }
.key-reveal > button { background: none; border: 1px solid var(--border); color: var(--text3); font-size: 0.68rem; padding: 0.2rem 0.5rem; border-radius: 5px; cursor: pointer; font-family: var(--sans); width: auto; }
.key-reveal > button:hover { border-color: var(--border-h); color: var(--text2); background: none; }
.key-reveal .key-val { font-family: var(--mono); font-size: 0.62rem; color: var(--red); word-break: break-all; margin-top: 0.3rem; padding: 0.35rem 0.5rem; background: rgba(239,68,68,0.03); border: 1px solid rgba(239,68,68,0.1); border-radius: 5px; }
.key-warning { font-size: 0.65rem; color: var(--text3); margin-top: 0.25rem; }

.copy-btn { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 0.62rem; padding: 0.1rem 0.3rem; border-radius: 3px; font-family: var(--sans); width: auto; }
.copy-btn:hover { color: var(--text2); }
.copy-btn.copied { color: var(--green); }

.deposit-box { background: var(--bg); border: 1px solid var(--border-h); border-radius: 8px; padding: 1rem; text-align: center; }
.deposit-address { font-family: var(--mono); font-size: 0.72rem; color: var(--text2); word-break: break-all; margin: 0.35rem 0; line-height: 1.5; }
.deposit-amount { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; margin: 0.3rem 0; }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.9rem; border-radius: 6px; font-size: 0.78rem; font-weight: 500; font-family: var(--sans); cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; width: auto; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); color: #fff; }
.btn-secondary { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-h); color: var(--text); background: transparent; }

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

/* ── SYSTEM STATUS PAGE ───────────────── */
.sys-status { min-height: 100vh; padding: 3rem 1.5rem; max-width: 720px; margin: 0 auto; }
.sys-status h1 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.sys-status .page-sub { color: var(--text3); font-size: 0.82rem; margin-bottom: 1.5rem; }

.status-overview {
  display: flex; align-items: center; gap: 0.85rem;
  margin-bottom: 1rem; padding: 0.9rem 1.15rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.overall-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.overall-dot.green { background: var(--green); box-shadow: 0 0 8px rgba(52,211,153,0.25); }
.overall-dot.orange { background: var(--orange); box-shadow: 0 0 8px rgba(242,104,34,0.25); }
.overall-dot.red { background: var(--red); box-shadow: 0 0 8px rgba(239,68,68,0.25); }
.overall-text { font-size: 0.88rem; font-weight: 600; }
.overall-sub { font-size: 0.72rem; color: var(--text3); margin-top: 0.05rem; }

.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.s-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.35rem; }
.s-card h2 { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text3); font-weight: 600; margin-bottom: 0.65rem; }

.s-row { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem 0; }
.s-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.s-label { font-size: 0.75rem; color: var(--text2); }
.s-val { font-size: 0.75rem; font-weight: 600; font-family: var(--mono); }
.s-val.green { color: var(--green); }
.s-val.orange { color: var(--orange); }
.s-val.red { color: var(--red); }
.s-val.muted { color: var(--text3); }

.s-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.68rem; font-weight: 500; }
.s-badge.online { background: rgba(52,211,153,0.08); color: var(--green); }
.s-badge.offline { background: rgba(239,68,68,0.08); color: var(--red); }
.s-badge.syncing { background: rgba(242,104,34,0.08); color: var(--orange); }

.sync-bar { margin-top: 0.5rem; }
.sync-track { height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.sync-fill { height: 100%; border-radius: 2px; transition: width 0.5s; }
.sync-fill.green { background: var(--green); }
.sync-fill.orange { background: var(--orange); }
.sync-pct { font-size: 0.65rem; color: var(--text3); margin-top: 0.2rem; text-align: right; font-family: var(--mono); }

.last-updated { text-align: center; font-size: 0.68rem; color: var(--text3); margin-top: 0.75rem; }

/* ── RESPONSIVE ────────────────────────── */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-form { max-width: 400px; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.5rem; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .section { padding: 2.5rem 1rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .hop-detail-fields { grid-template-columns: 1fr; }
  .footer-inner { height: auto; padding: 1rem 0; flex-wrap: wrap; }
}
