/* Perrine Development — perrine.dev */

:root {
  --bg: #0e0f13;
  --bg-alt: #15171d;
  --surface: #1b1e26;
  --border: #2a2e39;
  --text: #e8e9ee;
  --text-dim: #9aa0ae;
  --accent: #f7931a; /* bitcoin orange */
  --accent-hover: #ffa940;
  --success: #3fb96b;
  --error: #d9534f;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow { max-width: 640px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(14, 15, 19, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover { color: var(--text); }

.site-nav a.btn { color: #14100a; }
.site-nav a.btn:hover { color: #14100a; }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.1s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #14100a;
}

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

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--text-dim); }

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% -20%, rgba(247, 147, 26, 0.12), transparent 60%);
}

.hero h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: 1.8rem;
  margin-top: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.card h3 { margin-top: 0; color: var(--accent); }
.card p { color: var(--text-dim); margin-bottom: 0; }

/* Ritual page */
.ritual-step h1 { font-size: 2.2rem; margin-top: 0; }

.sacrifice-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin: 2rem 0;
  text-align: center;
}

.sacrifice-label { color: var(--text-dim); margin-top: 0; }

.address-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btc-address {
  font-family: var(--mono);
  font-size: 0.95rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.55rem 0.9rem;
  word-break: break-all;
}

.qr {
  margin: 1.25rem auto 0;
  width: fit-content;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius);
}

.qr:empty { display: none; }

.sacrifice-note { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 0; }

.txid-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.txid-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.txid-row input {
  flex: 1;
  min-width: 260px;
  font-family: var(--mono);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.9rem;
}

.txid-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.field-hint { color: var(--text-dim); font-size: 0.85rem; }

/* Status cards */
.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.status-error { border-color: var(--error); }
.status-success { border-color: var(--success); }

.status-detail { color: var(--text-dim); font-size: 0.9rem; }
.status-detail code { font-family: var(--mono); font-size: 0.8rem; word-break: break-all; }

.summoned-glyph { font-size: 3rem; margin: 0 0 0.5rem; }

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .site-nav { gap: 1rem; }
}
