/* ============================================================
   Sitework — shared trade landing-page system
   Carpenter page STRUCTURE + homepage RESKIN (Satoshi + Lobster,
   #050607 dark palette, amber #f4a000, pill buttons, glow + blueprint).
   Per-page trade tile colours are set inline via --t-a … --t-f.
   ============================================================ */
@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lobster&display=swap");

:root {
  --bg: #050607;
  --bg-deep: #020303;
  --panel: #0b0c0e;
  --panel-2: #111316;
  --ink: #f5f6f7;
  --metal: #dce0e7;
  --on-dark: #f5f6f7;
  --on-dark-mute: #9a9ea5;
  --muted-2: #6f747c;
  --amber: #f4a000;
  --amber-bright: #ffb51d;
  --amber-deep: #c98400;
  --amber-soft: rgba(244, 160, 0, 0.13);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.17);
  --card: rgba(255, 255, 255, 0.028);
  --card-solid: rgba(17, 19, 22, 0.72);
  --font: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: "Lobster", "Segoe Print", cursive;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  /* trade tile palette — overridden per page */
  --t-a: #7a5230; --t-b: #5a3c22; --t-c: #9a6a3c;
  --t-d: #6a4526; --t-e: #855a34; --t-f: #4f351f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  min-width: 320px;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.58;
  color: var(--on-dark);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  text-wrap: pretty;
}
::selection { background: var(--amber); color: #171004; }
a { color: inherit; }

/* headings — Satoshi metallic, Lobster amber accents */
h1, h2, h3 { font-family: var(--font); font-weight: 700; text-wrap: balance; }
em { font-style: normal; }
h1 em, h2 em, .h2 em, .cta h2 em {
  display: inline-block;
  font-family: var(--accent);
  font-weight: 400;
  font-size: 0.86em;
  letter-spacing: -0.01em;
  line-height: 0.9;
  color: var(--amber);
}

/* labels */
.mono {
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.kicker {
  display: block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 6vw; }

/* fixed background — homepage glow pools + faint blueprint site-plan */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46rem 46rem at 12% 78%, rgba(244, 160, 0, 0.07), transparent 60%),
    radial-gradient(40rem 40rem at 88% 20%, rgba(255, 181, 29, 0.055), transparent 58%),
    radial-gradient(circle at 52% -4%, rgba(244, 160, 0, 0.05), transparent 22rem),
    var(--bg);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360' fill='none'%3E%3Cg stroke='rgb(244,160,0)'%3E%3Cpath d='M0 90H360M0 180H360M0 270H360M90 0V360M180 0V360M270 0V360' stroke-opacity='0.10'/%3E%3Crect x='44' y='44' width='272' height='272' stroke-opacity='0.28'/%3E%3Crect x='74' y='74' width='212' height='212' stroke-opacity='0.14' stroke-dasharray='5 7'/%3E%3Cpath d='M36 60V36H60M300 36H324V60M324 300V324H300M60 324H36V300' stroke-opacity='0.4'/%3E%3Cpath d='M44 336H316M44 330V342M316 330V342M180 331V341' stroke-opacity='0.2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 340px 340px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22vh, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22vh, #000 74%, transparent 100%);
}
main, footer { position: relative; z-index: 10; }
header { position: relative; z-index: 60; }

/* nav — matches homepage */
nav.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem 6vw;
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(6, 7, 8, 0.72), rgba(6, 7, 8, 0.16));
  border-bottom: 1px solid var(--line);
}
.mark {
  font-family: var(--font); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.02em;
  text-decoration: none; display: flex; align-items: center; gap: 0.5rem; user-select: none; cursor: pointer;
}
.mark .dot {
  width: 1.18rem; aspect-ratio: 1; display: inline-block; flex: none; background: var(--amber);
  -webkit-mask: url("brand/sitework-mark.svg") center / contain no-repeat;
  mask: url("brand/sitework-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(244, 160, 0, 0.24));
}
.nav-links { display: flex; gap: 1.7rem; align-items: center; font-size: 0.92rem; color: var(--on-dark-mute); }
.nav-links a { text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
#nav-cta-mobile { display: none; }

/* buttons — homepage pill + circular arrow */
.btn {
  min-height: 46px;
  font-family: var(--font); font-weight: 700; font-size: 0.92rem;
  padding: 0.6rem 1.3rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center;
  gap: 0.7rem; white-space: nowrap;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-amber {
  background: var(--amber); color: #171004;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.35), 0 10px 30px rgba(244, 160, 0, 0.16);
}
.btn-amber:hover { background: var(--amber-bright); transform: translateY(-2px); box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), 0 15px 38px rgba(244, 160, 0, 0.24); }
.btn-ink { background: var(--metal); color: #171004; }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-lg { padding-left: 1.35rem; padding-right: 0.4rem; font-size: 0.98rem; min-height: 52px; }
.btn-lg::after {
  content: "↗"; width: 38px; aspect-ratio: 1; display: grid; place-items: center;
  border-radius: 50%; font-size: 1rem; transition: transform 0.2s;
}
.btn-amber.btn-lg::after { border: 1px solid rgba(23, 16, 4, 0.28); }
.btn-ghost.btn-lg::after { border: 1px solid rgba(255, 255, 255, 0.4); }
.btn-lg:hover::after { transform: rotate(45deg); }
.btn:focus-visible, summary:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.mob-bar { display: none; }
main { padding-top: 4.6rem; }
.crumb { padding: 1.6rem 0 0; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--font); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-dark-mute); }
.crumb a { color: var(--on-dark-mute); text-decoration: none; }
.crumb a:hover { color: var(--amber); }
.crumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line-strong); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* hero */
.hero { padding: 2.6rem 0 3.4rem; }
.hero-grid { display: grid; gap: 2.6rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.02em;
  color: #c4c7cc; background: rgba(12, 13, 15, 0.54); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0.45rem 0.85rem; margin-bottom: 1.5rem; backdrop-filter: blur(12px);
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(244, 160, 0, 0.7); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244, 160, 0, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(244, 160, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 160, 0, 0); } }
.hero h1 { font-size: clamp(2.6rem, 5.8vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em; color: var(--metal); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 26px rgba(0, 0, 0, 0.38); }
.hero-sub { margin-top: 1.5rem; max-width: 46ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.6; color: var(--on-dark); }
.hero-sub strong { color: #fff; font-weight: 700; }
.hero-cta { margin-top: 2rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-proof { margin-top: 1.7rem; display: flex; flex-wrap: wrap; gap: 0.55rem 1.4rem; font-size: 0.86rem; color: var(--on-dark-mute); }
.hero-proof span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

/* browser-framed site preview */
.preview { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: #0f0e0d; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.02); }
.pv-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #16181c; border-bottom: 1px solid var(--line); }
.pv-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.pv-url { margin-left: 8px; flex: 1; font-family: var(--mono); font-size: 11px; color: var(--on-dark-mute); background: rgba(0, 0, 0, 0.35); border-radius: 6px; padding: 5px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-hero { position: relative; padding: 26px 22px 22px; color: var(--on-dark); background: radial-gradient(120% 130% at 85% -10%, rgba(244, 160, 0, 0.26), transparent 55%), linear-gradient(155deg, #1a1c20, #0e0f12); }
.pv-hero .pv-kick { font-family: var(--font); font-weight: 600; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 9px; }
.pv-hero h3 { font-family: var(--font); font-weight: 700; font-size: clamp(20px, 2.8vw, 26px); line-height: 1.08; margin: 0 0 13px; letter-spacing: -0.02em; }
.pv-hero .pv-btn { display: inline-flex; font-family: var(--font); font-weight: 700; font-size: 12px; background: var(--amber); color: #171004; padding: 8px 15px; border-radius: 999px; }
.pv-strip { display: flex; background: #0c0d0f; color: var(--on-dark-mute); font-family: var(--font); font-weight: 600; font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.pv-strip span { flex: 1; text-align: center; padding: 9px 4px; border-right: 1px solid var(--line); }
.pv-strip span:last-child { border-right: 0; }
.pv-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: #0f0e0d; }
.pv-tile { aspect-ratio: 1/1; border-radius: 6px; position: relative; overflow: hidden; }
.pv-tile span { position: absolute; left: 7px; bottom: 6px; font-family: var(--font); font-weight: 600; font-size: 8px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.pv-call { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px; background: #0d0e10; border-top: 1px solid var(--line); }
.pv-call b { font-family: var(--font); font-weight: 700; font-size: 12px; color: #fff; }
.pv-call .pv-ph { font-family: var(--mono); font-size: 11px; color: var(--amber); }
.hero-cap { text-align: center; margin-top: 1rem; font-family: var(--font); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-mute); }

/* trade tiles (gallery + preview) */
.t1 { background-color: var(--t-a); } .t2 { background-color: var(--t-b); } .t3 { background-color: var(--t-c); }
.t4 { background-color: var(--t-d); } .t5 { background-color: var(--t-e); } .t6 { background-color: var(--t-f); }
.tex { background-image: repeating-linear-gradient(94deg, rgba(0, 0, 0, 0.1) 0 1px, transparent 1px 6px), repeating-linear-gradient(94deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 11px); }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 2rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.4rem; }
@media (min-width: 760px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust .stat { font-family: var(--font); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.03em; color: #fff; line-height: 1; }
.trust .stat em { font-family: var(--accent); font-weight: 400; color: var(--amber); font-size: 0.7em; }
.trust .lbl { margin-top: 0.55rem; font-size: 0.86rem; color: var(--on-dark-mute); line-height: 1.45; }

/* section rhythm */
.band { padding: 4.6rem 0; border-top: 1px solid var(--line); }
.band:first-of-type { border-top: none; }
.h2 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); line-height: 1.02; letter-spacing: -0.03em; color: var(--metal); margin: 0 0 0.8rem; }
.lede { color: var(--on-dark); font-size: 1.05rem; line-height: 1.6; max-width: 56ch; margin: 0 0 1.4rem; }
.body p { color: var(--on-dark-mute); font-size: 1.02rem; line-height: 1.7; margin: 0 0 1rem; max-width: 64ch; }
.body strong { color: #fff; }
.body a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }

/* quick answer */
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; backdrop-filter: blur(14px); }
@media (min-width: 768px) { .qa { padding: 2.2rem 2.4rem; } }
.qa p { margin: 0.7rem 0 0; font-size: clamp(1.12rem, 2vw, 1.42rem); font-weight: 500; line-height: 1.44; color: var(--on-dark); }
.qa strong { color: #fff; font-weight: 700; }

/* feature grid */
.feat { display: grid; gap: 0.8rem; }
@media (min-width: 620px) { .feat { grid-template-columns: 1fr 1fr; } }
.feat .item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.4rem 1.3rem 3rem; position: relative; backdrop-filter: blur(14px); }
.feat .item::before { content: ""; position: absolute; left: 1.35rem; top: 1.55rem; width: 13px; height: 13px; border-radius: 3px; background: var(--amber); transform: rotate(45deg); box-shadow: 0 0 0 4px var(--amber-soft); }
.feat .item b { font-family: var(--font); font-weight: 700; font-size: 1.06rem; color: #fff; display: block; margin-bottom: 0.25rem; }
.feat .item span { font-size: 0.92rem; color: var(--on-dark-mute); line-height: 1.5; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
@media (min-width: 680px) { .gal { grid-template-columns: repeat(3, 1fr); } }
.gal figure { margin: 0; border-radius: 14px; overflow: hidden; position: relative; aspect-ratio: 4/3; border: 1px solid var(--line); }
.gal figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 55%); }
.gal figcaption { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: #fff; font-family: var(--font); font-weight: 700; font-size: 1rem; }
.gal figcaption small { display: block; font-family: var(--font); font-weight: 600; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); margin-top: 2px; }

/* comparison table */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); backdrop-filter: blur(14px); }
table { border-collapse: collapse; width: 100%; min-width: 660px; font-size: 0.92rem; }
thead th { background: rgba(255, 255, 255, 0.04); text-align: left; font-family: var(--font); font-weight: 700; color: #fff; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody td { padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--on-dark-mute); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.hl td { background: var(--amber-soft); }
tbody td:first-child { font-family: var(--font); font-weight: 700; color: #fff; }
.yes { color: var(--amber); font-weight: 700; } .no { color: var(--on-dark-mute); }
.note { margin-top: 1.3rem; font-size: 0.9rem; color: var(--on-dark-mute); line-height: 1.6; border-left: 2px solid var(--amber); padding-left: 1.1rem; }

/* faq */
.faq-list { max-width: 820px; display: grid; gap: 0.7rem; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; backdrop-filter: blur(14px); }
summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 700; font-size: 1.04rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary .plus { position: relative; width: 16px; height: 16px; flex: none; }
summary .plus::before, summary .plus::after { content: ""; position: absolute; background: var(--amber); transition: transform 0.3s; }
summary .plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
summary .plus::after { left: 7px; top: 0; width: 2px; height: 16px; }
details[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
details .a { padding: 0 1.4rem 1.3rem; color: var(--on-dark-mute); font-size: 0.96rem; line-height: 1.6; }
details .a strong { color: #fff; }

/* cta */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; padding: 3rem 1.8rem; text-align: center; background: radial-gradient(120% 140% at 100% 0%, rgba(244, 160, 0, 0.18), transparent 55%), var(--card-solid); backdrop-filter: blur(14px); }
@media (min-width: 768px) { .cta { padding: 4rem 2.5rem; } }
.cta h2 { font-size: clamp(1.95rem, 3.6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--metal); margin: 0.9rem auto 0.8rem; max-width: 20ch; }
.cta p { color: var(--on-dark-mute); max-width: 52ch; margin: 0 auto 1.8rem; line-height: 1.6; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* related */
.rel-grid { display: grid; gap: 0.9rem; }
@media (min-width: 680px) { .rel-grid { grid-template-columns: 1fr 1fr; } }
.rel-card { border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem; text-decoration: none; color: var(--on-dark); background: var(--card); backdrop-filter: blur(14px); transition: border-color 0.2s, transform 0.2s; }
.rel-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.rel-card .mono { display: block; margin-bottom: 0.6rem; }
.rel-card strong { font-family: var(--font); font-weight: 700; font-size: 1.1rem; color: #fff; display: block; margin-bottom: 0.3rem; }
.rel-card span { color: var(--on-dark-mute); font-size: 0.9rem; }

/* footer */
footer { padding: 4rem 0 5rem; border-top: 1px solid var(--line); }
.foot-trades { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; align-items: center; padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.foot-trades .mono { width: 100%; margin-bottom: 0.3rem; color: var(--on-dark-mute); }
.foot-trades a { font-size: 0.9rem; font-weight: 600; text-decoration: none; color: var(--on-dark); }
.foot-trades a:hover { color: var(--amber); }
.foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot .mark { font-size: 1.15rem; }
.foot nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot nav a { text-decoration: none; color: var(--on-dark-mute); font-size: 0.9rem; }
.foot nav a:hover { color: #fff; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  #nav-cta-mobile { display: inline-flex; }
  nav.nav { background: rgba(6, 7, 8, 0.95); backdrop-filter: blur(14px); }
  .mob-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; padding: 0.7rem 5vw calc(0.7rem + env(safe-area-inset-bottom)); background: rgba(6, 7, 8, 0.95); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .mob-bar .btn { width: 100%; }
  .band { padding: 3.4rem 0; }
  footer { padding-bottom: 7rem; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 5vw; }
  nav.nav { padding: 0.85rem 5vw; }
  .mark { font-size: 1.16rem; }
  .hero-cta { width: 100%; } .hero-cta .btn { flex: 1 1 100%; }
  .band { padding: 2.8rem 0; }
  summary { padding: 1rem 1.1rem; font-size: 0.98rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
}
