/* satoshi.com.pl */
:root {
  --accent: #F7931A;
  --accent-2: #FFB547;
  --accent-ink: #1a1206;
  --up: #22c55e;
  --down: #f43f5e;
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
:root, [data-theme="dark"] {
  --bg: #0a0c11;
  --bg-2: #0f1219;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef1f6;
  --muted: #8a93a6;
  --grid: rgba(255, 255, 255, .035);
  --glow: rgba(247, 147, 26, .22);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, .75);
  --surface-2: #ffffff;
  --border: rgba(15, 23, 42, .08);
  --border-strong: rgba(15, 23, 42, .16);
  --text: #0f1420;
  --muted: #5d667a;
  --grid: rgba(15, 23, 42, .045);
  --glow: rgba(247, 147, 26, .18);
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 15% -10%, var(--glow), transparent 60%),
    radial-gradient(700px 420px at 100% 10%, rgba(255, 181, 71, .08), transparent 60%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 100%);
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1160px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em; }
.up { color: var(--up); }
.down { color: var(--down); }
.accent { color: var(--accent); }
.grad {
  background: linear-gradient(120deg, var(--accent-2), var(--accent) 50%, #e8730c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Sale bar */
.salebar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px; font-size: .88rem; text-decoration: none;
  background: linear-gradient(90deg, rgba(247,147,26,.16), rgba(247,147,26,.06) 50%, rgba(247,147,26,.16));
  border-bottom: 1px solid rgba(247,147,26,.25);
  text-align: center;
}
.salebar:hover u { color: var(--accent); }
.salebar-en { color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 rgba(247,147,26,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(247,147,26,0); } 100% { box-shadow: 0 0 0 0 rgba(247,147,26,0); } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { border-radius: 10px; box-shadow: 0 6px 20px -6px rgba(247,147,26,.6); transition: transform .3s; }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -.03em; }
.wordmark span { color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  color: var(--muted); transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface-2); }
.nav a.nav-cta { color: var(--accent); border: 1px solid rgba(247,147,26,.4); }
.nav a.nav-cta:hover, .nav a.nav-cta.active { background: var(--accent); color: var(--accent-ink); }
.header-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s;
}
.icon-btn:hover { border-color: var(--border-strong); }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }
.menu-btn { display: none; }

/* Cards & buttons */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.card-link { text-decoration: none; display: block; transition: transform .25s, border-color .25s; }
.card-link:hover { transform: translateY(-3px); border-color: rgba(247,147,26,.45); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  text-decoration: none; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text); cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .2s, filter .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 60%, #e8730c);
  color: var(--accent-ink); border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(247,147,26,.7);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 14px 34px -10px rgba(247,147,26,.85); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); margin-bottom: 12px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border);
}
.stale-note { font-size: .8rem; color: var(--muted); }
.stale-note::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-right: 6px; vertical-align: 1px; }
.stale-note.is-stale::before { background: #eab308; }

/* Sections */
main { padding-bottom: 40px; }
section { margin: 0 0 28px; }
.page-head { padding-top: 56px; padding-bottom: 4px; }
.page-head p { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Hero */
.hero { padding-top: 64px; padding-bottom: 8px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: stretch; }
.hero h1 { margin-bottom: 16px; }
.hero-lead { color: var(--muted); font-size: 1.12rem; max-width: 520px; }
.price-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.price-card::after {
  content: "₿"; position: absolute; right: -20px; bottom: -70px; font-size: 260px; font-weight: 800;
  color: var(--accent); opacity: .06; line-height: 1; pointer-events: none;
}
.price-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.price-big { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; line-height: 1.05; }
.price-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.sat-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border);
}
.sat-chip .num { font-size: 1.15rem; font-weight: 700; color: var(--accent); }

/* Stats */
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-sub { font-size: .82rem; color: var(--muted); }

/* Converter */
.conv { display: grid; gap: 12px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; font: 600 1.15rem var(--mono); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 14px;
  padding: 16px 70px 16px 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { font: 400 1rem var(--font); padding-right: 16px; min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(247,147,26,.15); }
.field .unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 700; font-size: .85rem; color: var(--muted); pointer-events: none;
}
.field-label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.conv-swap { text-align: center; color: var(--muted); font-size: 1.1rem; line-height: 1; }

/* Tools */
.tool { display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.tool-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(247,147,26,.12); border: 1px solid rgba(247,147,26,.3);
}
.tool p { color: var(--muted); margin: 0; font-size: .95rem; }
.tool .more { margin-top: auto; color: var(--accent); font-weight: 700; font-size: .92rem; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cd-box {
  text-align: center; padding: 18px 8px; border-radius: 16px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.cd-box .num { display: block; font-size: clamp(1.8rem, 6vw, 3.4rem); font-weight: 700; line-height: 1.1; }
.cd-box small { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.countdown.compact .cd-box { padding: 12px 4px; }
.countdown.compact .cd-box .num { font-size: clamp(1.4rem, 3.5vw, 2rem); }
.progress { height: 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.progress > span {
  display: block; height: 100%; border-radius: inherit; width: 0;
  background: linear-gradient(90deg, #e8730c, var(--accent), var(--accent-2));
  box-shadow: 0 0 20px rgba(247,147,26,.5); transition: width 1s ease;
}
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 8px; gap: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
td.r, th.r { text-align: right; }
tr:last-child td { border-bottom: 0; }
tr.highlight td { color: var(--accent); font-weight: 700; }

/* Chart */
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button {
  border: 0; background: transparent; color: var(--muted); font: 600 .88rem var(--font);
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.seg button.active { background: var(--accent); color: var(--accent-ink); }
.chart-box { position: relative; height: 300px; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }
.chart-tip {
  position: absolute; top: 0; pointer-events: none; transform: translateX(-50%);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 6px 10px; font-size: .82rem; white-space: nowrap; opacity: 0; transition: opacity .15s; box-shadow: var(--shadow);
}
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

/* Fees */
.fee-card .num.big { font-size: 2.2rem; font-weight: 700; }
.fee-card .unit { color: var(--muted); font-size: .9rem; margin-left: 4px; }
.fee-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }

/* CTA + sale */
.cta-satsback { display: flex; align-items: center; gap: 20px; text-decoration: none; transition: border-color .25s; }
.cta-satsback:hover { border-color: rgba(247,147,26,.45); }
.cta-satsback h3 { margin-bottom: 4px; }
.cta-satsback p { margin: 0; color: var(--muted); }
.cta-satsback .btn { margin-left: auto; }
.cta-icon { font-size: 2rem; width: 60px; height: 60px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(247,147,26,.12); }
.sale {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(247,147,26,.18), transparent 70%),
    var(--surface);
  border-color: rgba(247,147,26,.3);
}
.sale p { margin-bottom: .4em; }
.sale-text { max-width: 640px; }

/* Forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .field input { font: 500 1rem var(--font); padding-right: 16px; }
.form .field input.mono { font-family: var(--mono); padding-right: 64px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 14px; font-weight: 500; white-space: pre-line; }
.alert-ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); }
.alert-err { background: rgba(244,63,94,.1); border: 1px solid rgba(244,63,94,.35); }
.offer-pln { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: rgba(247,147,26,.15); color: var(--accent);
}

/* Prose */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.2em; font-size: 1.5rem; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* Visitors */
.visitors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; overflow: hidden; }
.v-item { display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 16px 12px; color: var(--muted); font-size: .92rem; flex-wrap: wrap; text-align: center; }
.v-item + .v-item { border-left: 1px solid var(--border); }
.v-item strong { color: var(--text); font-size: 1.25rem; font-weight: 700; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--up); align-self: center; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: livePulse 2s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
@media (max-width: 640px) {
  .visitors { grid-template-columns: 1fr; }
  .v-item { justify-content: flex-start; padding: 12px 18px; }
  .v-item + .v-item { border-left: 0; border-top: 1px solid var(--border); }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 28px; margin-top: 40px; background: color-mix(in srgb, var(--bg-2) 50%, transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; text-decoration: none; padding: 3px 0; }
.footer-grid a:not(.brand):hover { color: var(--accent); }
.footer-grid .brand { margin-bottom: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Number flash on update */
.flash-up { animation: flashUp 1s; }
.flash-down { animation: flashDown 1s; }
@keyframes flashUp { 0% { color: var(--up); } }
@keyframes flashDown { 0% { color: var(--down); } }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px 16px 18px; gap: 4px; background: var(--bg-2); border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .header-actions { margin-left: auto; }
  .salebar-en { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .g2, .g3, .form-row { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .g4.tools { grid-template-columns: minmax(0, 1fr); }
  .tool { min-height: 0; }
  .price-big { font-size: 2.3rem; }
  .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat-value { white-space: normal; }
  .card { padding: 18px; }
  .stat-value { font-size: 1.25rem; }
  .countdown { gap: 8px; }
  .cd-box { padding: 12px 4px; }
  .cta-satsback, .sale { flex-direction: column; align-items: flex-start; }
  .cta-satsback .btn { margin-left: 0; }
  .sale { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .chart-box { height: 220px; }
  .wordmark { font-size: 1.1rem; }
  .salebar { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
