:root {
  --gold: #c9a227;
  --gold-deep: #8a6b12;
  --gold-soft: #e8d48a;
  --ink: #12100c;
  --ink-soft: #2a261c;
  --paper: #f6f1e4;
  --paper-2: #efe6cf;
  --line: rgba(18, 16, 12, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: url("snake.jpg");
  background-size: 280px;
  mix-blend-mode: multiply;
  z-index: 0;
}

.nav, main, footer { position: relative; z-index: 1; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 228, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
}

nav { display: flex; gap: 1.4rem; }
nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}
nav a:hover { color: var(--gold-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary, .btn-nav {
  background: #14110d;
  color: var(--gold-soft);
}

.btn-primary:hover, .btn-nav:hover { background: #000; }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 5.5rem 6vw 4rem;
}

.eyebrow {
  color: var(--gold-deep);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.15rem;
  max-width: 38rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

.lede.short { margin-bottom: 1.2rem; }

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

.fine {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  color: #6b6454;
}

.ca-billboard {
  margin: 0 6vw 1rem;
  padding: 1.6rem 1.8rem 1.4rem;
  background: #14110d;
  color: var(--gold-soft);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
}

.ca-billboard:hover,
.ca-billboard:focus {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.ca-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.ca-giant {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  line-height: 1.25;
  word-break: break-all;
  color: #f7e7a8;
  user-select: all;
  font-weight: 700;
}

.ca-giant-sm {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: var(--ink);
  cursor: pointer;
}

.ca-hint {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  color: #cbb56a;
}

.ca-billboard.is-copied .ca-hint {
  color: #fff4c4;
}

.ca-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.45rem;
}

.links-inline {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}
.links-inline a { color: var(--gold-deep); }

.jup-frame {
  width: 100%;
  max-width: 420px;
  min-height: 560px;
  border-radius: 16px;
  overflow: hidden;
  background: #14110d;
  border: 1px solid var(--line);
}

.jup-fallback { max-width: 42rem; }
.jup-fallback a { color: var(--gold-deep); }

.toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  background: #14110d;
  color: var(--gold-soft);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 40;
}
.toast[hidden] { display: none; }

.hero-art img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin-left: auto;
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(80, 60, 10, 0.18);
}

.panel { padding: 4rem 6vw; }
.panel h2 { font-size: 2rem; margin-bottom: 1.5rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.grid-3 article {
  background: var(--paper-2);
  padding: 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.grid-3 h3 { margin-bottom: 0.5rem; color: var(--gold-deep); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.spec { list-style: none; }
.spec li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.spec span { color: #6b6454; }

.note {
  background: #fffdf6;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem;
}
.warn { margin-top: 0.8rem; color: #7a3b12; }

.gold-band {
  background: linear-gradient(180deg, #d7b34a 0%, #b89022 100%);
  color: #1a1508;
}
.gold-band h2 { color: #1a1508; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  list-style: none;
  counter-reset: step;
}
.steps li {
  background: rgba(255, 250, 230, 0.35);
  padding: 1.2rem;
  border-radius: 12px;
  counter-increment: step;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
  opacity: 0.7;
}
.steps strong { display: block; margin-bottom: 0.35rem; }

footer {
  padding: 3rem 6vw 4rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.foot-mark {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.8rem;
}

@media (max-width: 860px) {
  nav { display: none; }
  .hero, .split, .grid-3, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .hero-art img { margin: 0 auto; }
  .ca-row { flex-wrap: wrap; }
  .jup-frame { max-width: 100%; }
}
