/* BitCore BTX – static site
   Colours, fonts and shapes are taken from the original Divi theme of bitcore.cc
   (accent #ff9c00, navy sections #0a1537, dark sections #262626/#202020,
   Montserrat for text, Pathway Gothic One for headlines). */

@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url("/assets/fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url("/assets/fonts/montserrat-500.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url("/assets/fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url("/assets/fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-display: swap; src: url("/assets/fonts/montserrat-800.woff2") format("woff2"); }
@font-face { font-family: "Pathway Gothic One"; font-weight: 400; font-display: swap; src: url("/assets/fonts/pathway-gothic-one-400.woff2") format("woff2"); }

:root {
  --orange: #ff9c00;
  --orange-2: #ff9900;
  --orange-light: #ffac30;
  --orange-soft: #fcbd60;
  --orange-dark: #d68107;
  --navy: #0a1537;
  --navy-2: #111f4d;
  --dark: #262626;
  --dark-2: #202020;
  --dark-3: #1c1c1c;
  --footer: #222222;
  --grey: #999999;
  --text: #e9e9e9;
  --text-muted: #b5b5b5;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --radius: 10px;
  --wrap: 1180px;
  --gutter: 20px;
  --head: "Pathway Gothic One", "Arial Narrow", sans-serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-light); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--white); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.small { font-size: .85rem; }
.lead { font-size: 1.1rem; color: var(--text); max-width: 760px; }
.center .lead, .lead.center { margin-left: auto; margin-right: auto; }
.accent { color: var(--orange); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Kicker + big gradient headline (Divi "gradient text": #ff9c00 -> #ffffff) */
.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .6rem;
}
.gradient {
  font-family: var(--body);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -2px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--white) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Typing effect (Divi "dsm_typing_effect") */
.typing { display: inline-block; position: relative; }
.typing span {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: type 2.2s steps(22, end) .3s forwards;
}
.typing::after {
  content: "";
  display: inline-block;
  width: .08em;
  height: .9em;
  margin-left: .08em;
  background: var(--orange);
  vertical-align: -.05em;
  animation: caret .8s step-end infinite;
}
@keyframes type { to { clip-path: inset(0 0 0 0); } }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Header (Divi: white, centered logo, Montserrat 13px nav) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand img { height: 44px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: rgba(0, 0, 0, .7);
}
.nav-toggle svg { width: 28px; height: 28px; display: block; }
.main-nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(0, 0, 0, .6);
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus-visible { color: #000; border-bottom-color: var(--orange); }
.main-nav .cta {
  background: var(--orange);
  color: #fff;
  border-radius: 4px;
  margin-left: 6px;
  border-bottom: 0;
}
.main-nav .cta:hover { background: var(--orange-dark); color: #fff; }

/* active page, set via <body data-page="..."> */
[data-page="home"] .main-nav a[href="/"],
[data-page="about"] .main-nav a[href="/about"],
[data-page="specs"] .main-nav a[href="/specs"],
[data-page="sbtx"] .main-nav a[href="/sbtx"],
[data-page="wallets"] .main-nav a[href="/wallets"],
[data-page="whitepaper"] .main-nav a[href="/whitepaper"],
[data-page="team"] .main-nav a[href="/team"],
[data-page="community"] .main-nav a[href="/community"] { color: #000; border-bottom-color: var(--orange); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-top: 3px solid var(--orange);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .25);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(0, 0, 0, .06); }
  .main-nav .cta { margin: 10px 0 0; text-align: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section--navy { background: var(--navy); }
.section--dark { background: var(--dark); }
.section--darker { background: var(--dark-2); }
.section--circles {
  background: var(--navy) url("/assets/img/bg-circles.svg") center / cover no-repeat;
}
.section--circles::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 55, .82);
}
.section--circles > * { position: relative; }
.section--orange { background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%); color: #1c1c1c; }
.section--orange h2, .section--orange h3 { color: #1c1c1c; }
.section-head { margin-bottom: 40px; }
.section-head.center { max-width: 820px; margin-left: auto; margin-right: auto; }

/* Page hero for sub pages */
.page-hero {
  background: var(--navy) url("/assets/img/bg-circles.svg") center / cover no-repeat;
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 90px);
  text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 21, 55, .78); }
.page-hero > * { position: relative; }
.page-hero .logo-float { width: 220px; margin: 0 auto 28px; animation: float 5s ease-in-out infinite; }
.page-hero p { color: var(--text); max-width: 720px; margin: 0 auto; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes bounce-in {
  0% { transform: scale(.85); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1); }
}

/* ---------- Home hero ---------- */
.hero {
  background: radial-gradient(ellipse at 50% 35%, var(--navy-2) 0%, var(--navy) 70%);
  padding: 40px 0 70px;
  text-align: center;
  overflow: hidden;
}
.hero h1 { margin-top: 10px; }
.hero h1 .gradient { font-size: .82em; }
.hero-art { max-width: 820px; margin: 0 auto -10px; animation: bounce-in .9s ease-out both; }
.hero .lead { margin: 0 auto 28px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row, .btn-row.center { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 2px solid var(--orange-2);
  border-radius: 4px;
  background: var(--orange-2);
  color: #fff;
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--orange-2); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--orange-2); color: var(--orange-2); }
.btn--dark { background: #1c1c1c; border-color: #1c1c1c; }
.btn--dark:hover { background: transparent; color: #1c1c1c; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.split--wide-text { grid-template-columns: 1.3fr 1fr; }
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .split, .split--wide-text { grid-template-columns: 1fr; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split .art-first { order: -1; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
.art { max-width: 420px; margin: 0 auto; }
.art--float { animation: float 6s ease-in-out infinite; }

/* ---------- Cards (glass look from the original home page) ---------- */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  padding: 26px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 156, 0, .55); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; color: var(--orange); margin-bottom: 14px; }
.section--dark .card, .section--darker .card { background: rgba(255, 255, 255, .04); box-shadow: none; }

a.card { display: block; color: var(--text); }
a.card:hover { color: var(--text); }
a.card .more { color: var(--orange); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* Stats / spec tiles */
.stat { text-align: center; padding: 26px 16px; }
.stat strong {
  display: block;
  font-family: var(--head);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--orange);
  margin-bottom: 8px;
}
.stat span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

.spec-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.spec-list li span:first-child { color: var(--text-muted); }
.spec-list li span:last-child { color: var(--white); font-weight: 600; text-align: right; }
@media (max-width: 760px) { .spec-list { grid-template-columns: 1fr; } }

/* Check list */
.checks { list-style: none; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0; top: .2em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--orange);
  color: #1c1c1c;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

/* ---------- Address boxes with copy button ---------- */
.address {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: rgba(0, 0, 0, .25);
  overflow: hidden;
  margin: 8px 0 4px;
}
.address code {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86rem;
  color: var(--white);
  overflow-wrap: anywhere;
}
.copy {
  flex: none;
  border: 0;
  border-left: 1px solid var(--glass-border);
  background: rgba(255, 156, 0, .14);
  color: var(--orange);
  font: 700 .72rem/1 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 0 16px;
  cursor: pointer;
}
.copy:hover, .copy:focus-visible { background: var(--orange); color: #000; }
.copy.done { background: #2e7d32; color: #fff; }
.label { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }

.qr-card { text-align: center; }
.qr-card img {
  width: 150px;
  height: 150px;
  margin: 6px auto 14px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  image-rendering: pixelated;
}

/* ---------- Logo strips (partners, markets) ---------- */
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.logo-grid a {
  flex: 0 1 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .2s, background .2s;
}
.logo-grid a:hover { border-color: var(--orange); background: rgba(255, 156, 0, .06); }
.logo-grid img { max-height: 46px; width: auto; }
.logo-grid .text-logo { color: var(--white); font-weight: 700; letter-spacing: .03em; text-align: center; }

/* Link pills (social channels etc.) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.center .pills { justify-content: center; }
.pills a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
}
.pills a:hover, .pills a:focus-visible { border-color: var(--orange); color: var(--orange); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--orange), rgba(255, 156, 0, .1));
}
.timeline li { position: relative; padding: 0 0 34px 44px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--orange);
}
.timeline time {
  display: block;
  font-family: var(--head);
  font-size: 1.35rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.timeline h3 { font-size: 1.4rem; margin: 2px 0 6px; }
.timeline p { color: var(--text-muted); margin: 0; }

/* ---------- Team ---------- */
.member { text-align: center; }
.member .photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--orange);
}
.member .sig { height: 34px; width: auto; margin: 0 auto 10px; }
.member .role { color: var(--orange); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.member .links { font-size: .85rem; margin-top: 12px; }
.member .links a + a::before { content: "·"; color: var(--grey); margin: 0 8px; }
.team-photo { border-radius: var(--radius); margin: 0 auto; }

/* ---------- Converter ---------- */
.converter label { display: block; margin-bottom: 8px; }
.converter .field { display: flex; gap: 10px; flex-wrap: wrap; }
.converter input {
  flex: 1 1 280px;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font: .95rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.converter input:focus { outline: 2px solid var(--orange); border-color: transparent; }
.converter .result { margin-top: 22px; display: none; }
.converter .result.show { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.converter .error { color: #ff8a80; margin-top: 14px; display: none; }
.converter .error.show { display: block; }
.converter canvas, .converter .qr { background: #fff; padding: 8px; border-radius: 8px; width: 150px; height: 150px; }
@media (max-width: 560px) { .converter .result.show { grid-template-columns: 1fr; justify-items: center; } }
.format-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.format-table th, .format-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.format-table th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--grey); }
.format-table code { color: var(--orange-light); }

/* ---------- Notice ---------- */
.notice {
  border-left: 4px solid var(--orange);
  background: rgba(255, 156, 0, .08);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  color: var(--text);
}

/* ---------- Footer (Divi footer #222, link rows) ---------- */
.site-footer { background: var(--footer); color: var(--text-muted); font-size: .9rem; }
.site-footer .top { padding: 60px 0 40px; display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 30px; }
.site-footer h4 { font-size: 1.15rem; color: var(--orange); margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--orange); }
.site-footer .brand-col img { width: 170px; margin-bottom: 14px; }
.site-footer .disclaimer p {
  margin: 0 0 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 255, 255, .03);
  border-radius: 0 6px 6px 0;
  font-size: .82rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.site-footer .disclaimer strong { color: var(--orange); }
.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .8rem;
}
@media (max-width: 980px) { .site-footer .top { grid-template-columns: repeat(2, 1fr); } .site-footer .brand-col { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .top { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.divider { height: 1px; background: rgba(255, 255, 255, .08); border: 0; margin: 40px 0; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-320 { max-width: 320px; }
.w-480 { max-width: 480px; }
.lang { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.date { font-size: .8rem; color: var(--grey); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .typing span { clip-path: none; }
  html { scroll-behavior: auto; }
}
