/* FORGE — /1 "film cut".
 * Black-and-white film grey. Bitcoin orange is the ONLY accent (no lime).
 * Type: Geist + Geist Mono (factory.ai reference). Graffiti: Permanent Marker.
 */

:root {
  --bg: #181715;
  --bg-2: #201f1d;
  --panel: #1d1c1a;
  --line: #2c2b28;
  --line-2: #38362f;
  --ink: #e7e5df;
  --ink-2: #b3b1a9;
  --ink-soft: #817f78;
  --ink-faint: #56544e;
  --btc: #f7931a;
  --btc-soft: #d97f0c;

  --sans: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --graf: "Permanent Marker", cursive;

  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* film grain + vignette to sell the "ч/б плёнка" feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0,0,0,.55) 100%);
}

a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.4rem); position: relative; z-index: 2; }

.mono { font-family: var(--mono); }
.kick {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--btc);
  display: inline-flex; align-items: center; gap: .7em;
}
.kick::before { content: ""; width: 26px; height: 1px; background: var(--btc); }

/* graffiti scatter — subtle decals */
.graf-decal {
  position: absolute;
  font-family: var(--graf);
  color: rgba(231,229,223,.05);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 1;
  font-size: clamp(1.1rem, 2.6vw, 2.1rem);
}
.graf-decal.orange { color: rgba(247,147,26,.10); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; letter-spacing: -0.03em; font-size: 1.1rem; }
.brand .spark { width: 13px; height: 13px; border-radius: 3px; background: var(--btc); }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.nav-links a:hover { color: var(--btc); }
.nav-right .btn { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .82rem; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase;
  padding: .72em 1.2em; border-radius: 4px; border: 1px solid var(--line-2);
  color: var(--ink); cursor: pointer; transition: .18s;
}
.btn:hover { border-color: var(--btc); color: var(--btc); }
.btn-btc { background: var(--btc); color: #150d02; border-color: var(--btc); font-weight: 600; }
.btn-btc:hover { background: #ffa733; color: #150d02; border-color: #ffa733; }

/* ---------- hero ---------- */
.hero { padding: clamp(4rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 6rem); position: relative; }
.hero .tagline-graf {
  font-family: var(--graf);
  color: var(--btc);
  font-size: clamp(1.6rem, 5.5vw, 3.4rem);
  transform: rotate(-4deg);
  display: inline-block;
  margin-bottom: 1.4rem;
  text-shadow: 0 6px 30px rgba(247,147,26,.25);
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 16ch;
}
.hero h1 .o { color: var(--btc); }
.hero .sub {
  font-family: var(--mono);
  color: var(--ink-2);
  margin-top: 1.8rem;
  font-size: clamp(.92rem, 1.8vw, 1.12rem);
  letter-spacing: 0.01em;
  max-width: 52ch;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: .8rem; margin-top: 2.4rem; flex-wrap: wrap; }

/* ---------- rules row ---------- */
.rules { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.rule { padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem,2vw,1.6rem); border-left: 1px solid var(--line); position: relative; }
.rule:first-child { border-left: none; }
.rule .n { font-family: var(--mono); color: var(--btc); font-size: .74rem; letter-spacing: .14em; }
.rule h3 { font-size: 1.06rem; font-weight: 600; margin: .8rem 0 .4rem; letter-spacing: -0.02em; }
.rule p { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- statement ---------- */
.statement { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.statement h2 {
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.05;
  max-width: 20ch;
}
.statement h2 .o { color: var(--btc); }
.statement .lead { font-family: var(--mono); color: var(--ink-2); margin-top: 1.4rem; max-width: 56ch; font-size: .98rem; line-height: 1.7; }

/* big graffiti banner */
.banner { padding: clamp(3rem,7vw,6rem) 0; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.banner .nykc {
  font-family: var(--graf);
  font-size: clamp(2rem, 9vw, 7rem);
  line-height: 0.95;
  color: var(--ink);
  transform: rotate(-2.5deg);
  display: inline-block;
}
.banner .nykc .o { color: var(--btc); }
.banner .small { font-family: var(--mono); color: var(--ink-soft); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1.6rem; }

/* spec mini grid */
.spec { padding: clamp(3rem,7vw,6rem) 0; border-top: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.spec-cell { background: var(--bg); padding: clamp(1.4rem,3vw,2rem); }
.spec-cell .lbl { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.spec-cell .val { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; margin-top: .5rem; }
.spec-cell .val.o { color: var(--btc); }
.spec-cell p { font-family: var(--mono); font-size: .76rem; color: var(--ink-soft); margin-top: .4rem; line-height: 1.5; }

/* ---------- factory-style footer ---------- */
.foot { padding: clamp(3rem,6vw,5rem) 0 2.5rem; position: relative; z-index: 2; }
.foot-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.6rem,4vw,3rem);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--panel), var(--bg));
}
.foot-cols { display: flex; justify-content: flex-end; gap: clamp(2rem,6vw,5rem); }
.foot-col h5 { font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: .9rem; }
.foot-col a { display: block; font-size: .88rem; color: var(--ink-soft); padding: .26rem 0; }
.foot-col a:hover { color: var(--btc); }
.foot-bottomrow { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 3rem; }
.foot-mark {
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: clamp(3rem, 13vw, 9rem);
  line-height: 0.8;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: .12em;
}
.foot-mark .spark { width: clamp(26px,5vw,52px); height: clamp(26px,5vw,52px); border-radius: 8px; background: var(--btc); }
.foot-meta { text-align: right; font-family: var(--mono); font-size: .72rem; color: var(--ink-soft); line-height: 1.9; }
.foot-meta a:hover { color: var(--btc); }
.foot-social { display: flex; gap: 1rem; justify-content: flex-end; margin-bottom: .6rem; }
.foot-social a { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.foot-social a:hover { color: var(--btc); }

.switch { font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.switch a { color: var(--btc); }

@media (max-width: 860px) {
  .rules-grid { grid-template-columns: 1fr 1fr; }
  .rule:nth-child(3) { border-left: none; }
  .spec-grid { grid-template-columns: 1fr; }
  .foot-cols { justify-content: space-between; flex-wrap: wrap; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .rules-grid { grid-template-columns: 1fr; }
  .rule { border-left: none; border-top: 1px solid var(--line); }
  .rule:first-child { border-top: none; }
  .foot-bottomrow { flex-direction: column; align-items: flex-start; }
  .foot-meta { text-align: left; }
  .foot-social { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
