/* advancebitcoin.org: the sections below AutoFarm, in one consistent "stage"
   format (the same language as the AutoFarm Harvest stage in harvest-cam/cam.css):
   a framed panel, a centred numbered header, then the content, then fine print. */

.sx{position:relative;isolation:isolate;overflow:hidden;padding:42px 34px 32px;border-radius:28px;border:1px solid rgba(201,163,107,.26);
  background:radial-gradient(62% 52% at 50% 0%,rgba(var(--sx-glow),.14),transparent 62%),radial-gradient(40% 40% at 100% 100%,rgba(var(--sx-glow),.06),transparent 70%),
    linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.01)),rgba(13,10,7,.8);
  box-shadow:0 50px 120px -70px rgba(var(--sx-glow),.6),inset 0 1px 0 rgba(255,232,170,.08);--sx-glow:245,158,11}
.sx[data-accent="mint"]{--sx-glow:52,211,153}
.sx[data-accent="violet"]{--sx-glow:167,139,250}
.sx[data-accent="sky"]{--sx-glow:125,211,252}
.sx[data-accent="amber"]{--sx-glow:251,146,60}
/* a faint grid behind the header */
.sx::before{content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(251,191,36,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(251,191,36,.045) 1px,transparent 1px);background-size:44px 44px;
  -webkit-mask-image:radial-gradient(55% 32% at 50% 0%,#000,transparent 80%);mask-image:radial-gradient(55% 32% at 50% 0%,#000,transparent 80%)}

/* ---------- header ---------- */
.sx-head{text-align:center;max-width:840px;margin:0 auto 32px}
.sx-k{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;font-family:var(--abc-mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#FDE08A}
.sx-num{display:inline-grid;place-items:center;min-width:32px;height:24px;padding:0 8px;border-radius:8px;color:#1A1206;font-weight:700;letter-spacing:.04em;
  background:linear-gradient(180deg,#FDE08A,#F59E0B);box-shadow:0 0 18px -6px rgba(245,158,11,.9)}
.sx-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;border:1px solid rgba(52,211,153,.45);color:#34D399;letter-spacing:.06em}
.sx-chip i{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 8px currentColor}
.sx-chip.is-gold{color:#FBBF24;border-color:rgba(251,191,36,.45)}
.sx-chip.is-violet{color:#C4B5FD;border-color:rgba(167,139,250,.45)}
.sx-title{font-family:var(--abc-sans);font-weight:600;font-size:clamp(1.95rem,4.3vw,3.3rem);line-height:1.04;letter-spacing:-.04em;color:#fff;margin:16px 0 14px;text-wrap:balance}
.sx-title em{font-family:var(--abc-serif);font-style:italic;font-weight:400;letter-spacing:-.01em;
  background:linear-gradient(180deg,#FFF1C2,#FBBF24 55%,#D97706);-webkit-background-clip:text;background-clip:text;color:transparent;padding-right:.05em}
.sx-lede{color:#B9B2A5;font-size:16px;line-height:1.7;max-width:720px;margin:0 auto;text-wrap:pretty}
:where(.sx-card) p,.sx-subhead p,.sx-callout p,.sx-note{text-wrap:pretty}
.sx-lede b,.sx-lede strong{color:#F2E7CE;font-weight:600}
.sx a.sx-link,.sx-lede a,.sx-links a,.sx-note a{color:#FBBF24;text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(245,158,11,.4);transition:color .2s}
.sx a.sx-link:hover,.sx-lede a:hover,.sx-links a:hover,.sx-note a:hover{color:#fff}

/* ---------- building blocks ---------- */
.sx-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,1fr);gap:20px;align-items:start}
.sx-grid.is-even{grid-template-columns:repeat(2,minmax(0,1fr))}
.sx-grid.is-center{align-items:center}
.sx-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.sx-panel{position:relative;border:1px solid rgba(201,163,107,.2);border-radius:18px;background:rgba(0,0,0,.24);padding:20px;min-width:0}
.sx-label{font-family:var(--abc-mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:#FDE08A;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.sx-label::before{content:"";width:18px;height:1px;background:#F59E0B}

.sx-sub{margin-top:44px}
.sx-subhead{display:flex;align-items:flex-end;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid rgba(201,163,107,.16)}
.sx-subhead h3{font-family:var(--abc-sans);font-weight:600;font-size:22px;letter-spacing:-.02em;color:#fff}
.sx-subhead p{font-size:14px;line-height:1.55;color:#A79F90;max-width:560px}

.sx-cards{display:grid;gap:14px;grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));list-style:none;margin:0;padding:0}
.sx-card{position:relative;display:flex;flex-direction:column;border:1px solid rgba(201,163,107,.2);border-radius:18px;background:rgba(0,0,0,.24);padding:20px 20px 18px;min-width:0;
  transition:border-color .25s,transform .25s,background .25s}
.sx-card:hover{border-color:rgba(251,191,36,.5);background:rgba(245,158,11,.04);transform:translateY(-2px)}
/* :where() keeps these at the lowest priority, so cards that carry their own
   utility classes (the presale price ladder) keep their sizes and colours */
:where(.sx-card) h4{font-family:var(--abc-sans);font-weight:600;font-size:16.5px;letter-spacing:-.01em;color:#FFF3D6;margin-top:14px}
:where(.sx-card) p{font-size:13.5px;color:#A79F90;line-height:1.6;margin-top:6px}
:where(.sx-card) p b,:where(.sx-card) p strong{color:#F2E7CE;font-weight:600}
.sx-idx{position:absolute;top:16px;right:18px;font-family:var(--abc-mono);font-size:12px;font-weight:600;color:rgba(253,224,138,.5)}
.sx-tagline{margin-top:auto;padding-top:14px;font-family:var(--abc-mono);font-size:11px;letter-spacing:.06em;color:#FBBF24}

.sx-steps{list-style:none;display:grid;gap:16px;margin:0;padding:0}
.sx-steps li{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;align-items:start}
.sx-steps li>i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;font-style:normal;font-family:var(--abc-mono);font-size:12px;font-weight:700;
  color:#1A1206;background:linear-gradient(180deg,#FDE08A,#F59E0B);box-shadow:0 0 18px -6px rgba(245,158,11,.9)}
.sx-steps li>div>b{display:block;color:#FFF3D6;font-weight:600;font-size:15px}
.sx-steps li>div>span{display:block;color:#A79F90;font-size:13.5px;line-height:1.6;margin-top:3px}

.sx-tags{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.sx-tags li{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:10px;font-size:12.5px;color:#E7DFCF;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08)}
.sx-tags li::before{content:"";width:5px;height:5px;border-radius:50%;background:#FBBF24;box-shadow:0 0 6px rgba(245,158,11,.9)}

.sx-callout{display:flex;align-items:center;gap:16px;margin-top:16px;padding:18px 20px;border-radius:18px;border:1px solid rgba(var(--sx-glow),.32);
  background:linear-gradient(100deg,rgba(var(--sx-glow),.1),rgba(0,0,0,.18) 60%)}
.sx-callout h4{font-family:var(--abc-sans);font-weight:600;font-size:16px;color:#FFF3D6}
.sx-callout p{font-size:13.5px;line-height:1.6;color:#A79F90;margin-top:3px}
.sx-callout .ico-tile{flex:none}

.sx-ctas{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin-top:34px}
.sx-ghost{display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 22px;border-radius:16px;font-weight:600;font-size:14.5px;color:#F2E7CE;
  background:rgba(255,255,255,.04);border:1px solid rgba(201,163,107,.45);transition:border-color .2s,background .2s}
.sx-ghost:hover{border-color:#FBBF24;background:rgba(245,158,11,.06)}
.sx-links{font-size:13px;text-align:center;color:#8E8778;margin-top:14px}
.sx-note{font-size:11.5px;color:#8E8778;line-height:1.6;text-align:center;max-width:860px;margin:24px auto 0}

/* ---------- 04 gateway ---------- */
.sx-compare{display:grid;grid-template-columns:1.1fr repeat(3,1fr);font-size:13px;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.07)}
.sx-compare>div{padding:11px 12px;border-bottom:1px solid rgba(255,255,255,.06);color:#9A958C;text-align:center}
.sx-compare>div:nth-child(4n+1){text-align:left;color:#B9B2A5}
.sx-compare>div:nth-child(4n+2){background:rgba(245,158,11,.06);color:#34D399;font-weight:600}
.sx-compare>.h{color:#E7DFCF;font-weight:600;background:rgba(255,255,255,.025)}
.sx-compare>.h.us{background:rgba(245,158,11,.14);color:#fff}
.sx-compare>div:nth-last-child(-n+4){border-bottom:0}
.sx-mock{display:grid;place-items:center;padding:8px 0}
.sx-flow{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;margin-bottom:16px}
.sx-flow p{font-size:12px;color:#9A958C;text-align:center}

/* ---------- 05 mining ---------- */
.sx .mine-stats{grid-template-columns:repeat(4,1fr)}

/* ---------- 06 tokenomics ---------- */
.sx-alloc{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;list-style:none;margin:0;padding:0}
.sx-alloc li{padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid rgba(255,255,255,.06)}
.sx-donut{display:grid;place-items:center;margin:4px 0 14px}

/* ---------- 09 roadmap ---------- */
.sx-road{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.sx-road .mine-step h4 small{font-family:var(--abc-mono);font-size:10.5px;font-weight:600;letter-spacing:.1em;color:rgba(253,224,138,.6);margin-right:6px}
.sx-road .mine-step ul{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:3px}
.sx-road .mine-step li{position:relative;padding-left:14px;font-size:13px;line-height:1.55;color:rgba(242,231,206,.62)}
.sx-road .mine-step li::before{content:"";position:absolute;left:2px;top:.62em;width:5px;height:5px;transform:rotate(45deg);background:var(--ms,#FBBF24);opacity:.75}

/* ---------- 11 faq ---------- */
.sx-faq{max-width:860px;margin:0 auto;display:grid;gap:10px}
.sx-faq details{border-radius:16px;padding:16px 20px;background:rgba(0,0,0,.24);border:1px solid rgba(201,163,107,.18);transition:border-color .2s,background .2s}
.sx-faq summary{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#fff;font-weight:600;font-size:15.5px}
.sx-faq details p{color:#A79F90;font-size:14px;line-height:1.7;margin-top:10px}

/* ---------- closing countdown + contact ---------- */
.sx-cta{text-align:center}
.sx-cta .sx-head{margin-bottom:22px}
.sx-mail{max-width:560px;margin:0 auto;text-align:center}
.sx-mail .ico-tile{margin:0 auto}
.sx-mail a.sx-addr{display:inline-flex;align-items:center;gap:8px;margin-top:6px;font-family:var(--abc-sans);font-weight:600;font-size:clamp(1.25rem,3vw,1.7rem);color:#fff;word-break:break-all;transition:color .2s}
.sx-mail a.sx-addr:hover{color:#FBBF24}
.sx-mail .sx-tags{justify-content:center;margin-top:18px}

@media (max-width:1100px){
  .sx-cards{--cols:2!important}
  .sx-cards.is-3{--cols:3!important}
}
@media (max-width:1024px){
  .sx-grid,.sx-grid.is-even{grid-template-columns:1fr}
  .sx-road{grid-template-columns:1fr}
}
@media (max-width:760px){
  .sx-cards.is-3{--cols:1!important}
  .sx .mine-stats{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:640px){
  .sx{padding:28px 16px 24px;border-radius:22px}
  .sx-head{margin-bottom:24px}
  .sx-lede{font-size:15px}
  .sx-cards{--cols:1!important}
  .sx-panel{padding:16px}
  .sx-subhead h3{font-size:20px}
  .sx-callout{flex-direction:column;align-items:flex-start}
  .sx-compare{font-size:11.5px}
  .sx-compare>div{padding:9px 6px}
  /* the payment path fits a phone: three narrow steps (labels on two lines) and
     lines that keep some length, so the moving dots still travel along them.
     At 80+96+80px the steps were wider than the box, and "Your wallet" stuck out */
  .sx-flow{padding:14px 10px;gap:6px}
  .sx-flow>div:not(.flow-line){flex:0 1 64px;width:auto;min-width:56px} /* 56px still holds the 56px coin */
  .sx-flow>.flow-line{min-width:16px}
  .sx-flow p{font-size:11.5px;line-height:1.3}
}
/* the narrowest phones: four columns need ~265px and a 320px phone has 219, so
   the comparison stacks. Each row's label is a small line above its three values */
@media (max-width:374px){
  .sx-compare{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sx-compare>div:first-child{display:none}
  .sx-compare>div:nth-child(4n+1):not(:first-child){grid-column:1/-1;border-bottom:0;padding:9px 8px 0;
    font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#8E8778}
}
