/* feardc.net sites: one stylesheet for www, miner and client */

:root {
  --navy: #071f33;
  --navy-2: #0b3250;
  --navy-3: #0f3d60;
  --teal: #1fb6c9;
  --teal-2: #4fe3f2;
  --gold: #f39204;
  --gold-2: #ffe17a;
  --ink: #e8f1f5;
  --muted: #93abba;
  --card: rgba(14, 51, 80, .72);
  --card-2: rgba(18, 62, 96, .85);
  --code: #061a2b;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(79, 227, 242, .22);
  --glow: 0 0 0 1px rgba(79, 227, 242, .35), 0 8px 28px rgba(31, 182, 201, .28);
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
  --radius: 14px;
  --thumb: rgba(31, 182, 201, .35);
  --thumb-hover: rgba(31, 182, 201, .6);
  color-scheme: dark;
}

/* Scrollbars in the site's colors (inherited by every scrolling box) */
html { scrollbar-color: var(--thumb) var(--navy); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 5px; border: 2px solid var(--navy); }
::-webkit-scrollbar-thumb:hover { background: var(--thumb-hover); }
::-webkit-scrollbar-corner { background: var(--navy); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(31, 182, 201, .16), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(243, 146, 4, .08), transparent 60%),
    radial-gradient(1200px 700px at 50% -20%, var(--navy-3), var(--navy) 70%) fixed;
  background-color: var(--navy);
}

::selection { background: rgba(31, 182, 201, .4); color: #fff; }

a { color: var(--teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-2); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--teal-2);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }

code, pre { font: .9rem/1.55 ui-monospace, Consolas, "DejaVu Sans Mono", monospace; }
code {
  color: var(--gold-2);
  background: rgba(255, 225, 122, .07);
  padding: .1em .35em;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
pre {
  position: relative;
  background: linear-gradient(180deg, #08223a, var(--code));
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: .85rem 1rem;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
pre code { color: var(--ink); background: none; padding: 0; overflow-wrap: normal; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: .75rem 1.5rem;
  flex-wrap: wrap;
  padding: .75rem 1.25rem;
  background: rgba(7, 31, 51, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.brand { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.brand img { transition: transform .4s ease, filter .3s; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4)); }
.brand:hover { color: #fff; text-decoration: none; }
.brand:hover img { transform: rotate(-12deg) scale(1.08); filter: drop-shadow(0 0 8px rgba(79, 227, 242, .6)); }
.brand span {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  padding: .35rem .7rem;
  border-radius: 4px;
  transition: color .15s, background .15s, box-shadow .15s;
}
.nav a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); text-decoration: none; }
.nav a.active {
  color: #fff;
  font-weight: 600;
  background: rgba(31, 182, 201, .16);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.langs { margin-left: auto; display: flex; gap: .25rem; font-size: .85rem; }
.langs a { color: var(--muted); padding: .25rem .55rem; border-radius: 4px; }
.langs a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; }
.langs a.active { color: var(--navy); background: var(--gold); font-weight: 700; }

/* Layout */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem 3.5rem; flex: 1; }

.hero { text-align: center; padding: 2rem 0 2.25rem; }
.hero-logo {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .5)) drop-shadow(0 0 24px rgba(31, 182, 201, .25));
  animation: float 6s ease-in-out infinite;
}
.hero-logo.big { width: 200px; height: 200px; max-width: 50vw; max-height: 50vw; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  margin: 0 0 .6rem;
  background: linear-gradient(180deg, #fff 30%, #b9d8e4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .ticker {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline { max-width: 820px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

.section-title { margin: 2.5rem 0 1rem; font-size: 1.35rem; }
.muted { color: var(--muted); }

/* Live numbers: small cards that glow on hover */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .85rem;
  margin: 1.25rem 0 2rem;
}
.stat {
  position: relative;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem .9rem .85rem;
  text-align: center;
  overflow: hidden;
  /* label above the value (pages write value first) */
  display: flex;
  container-type: inline-size;
  flex-direction: column-reverse;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.stat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: .5;
  transition: opacity .2s;
}
.stat:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--glow);
}
.stat:hover::before { opacity: 1; }
.stat .value {
  display: block;
  /* one line always: the font follows the card width, from 0.8rem in a narrow card to 1.2rem */
  font-size: clamp(.8rem, 13cqi, 1.2rem);
  white-space: nowrap;
  font-weight: 800;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(255, 225, 122, .18);
}
.stats.four { grid-template-columns: repeat(4, 1fr); }
.stat.wide { grid-column: span 2; }
.stat .label {
  display: block;
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.notice {
  text-align: center;
  color: var(--gold-2);
  background: linear-gradient(90deg, rgba(243, 146, 4, .14), rgba(243, 146, 4, .06));
  border: 1px solid rgba(243, 146, 4, .3);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: .7rem 1rem;
}

/* Text blocks */
.card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h1 { font-size: 1.8rem; }
.card h2 {
  position: relative;
  font-size: 1.2rem;
  padding-left: .8rem;
}
.card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  bottom: .2em;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
}
.card h3 { font-size: .95rem; color: var(--muted); margin-bottom: .3rem; text-transform: uppercase; letter-spacing: .05em; }
.card ul { padding-left: 1.2rem; }
.card li { margin: .45rem 0; }
.card li::marker { color: var(--teal); }
.steps h2 { color: var(--teal-2); }
.pitch li { margin: .6rem 0; }
.pitch strong { color: var(--teal-2); }

/* Lists of points: title line, text below, a fading line between them */
.points, .card .points { list-style: none; margin: .5rem 0 0; padding: 0; }
.card .points li { position: relative; margin: 0; padding: 1rem 0 1rem 1.6rem; }
.points li::before {
  content: "";
  position: absolute;
  left: .2rem;
  top: 1.45rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 10px rgba(243, 146, 4, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.points li + li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 227, 242, .45) 20%, rgba(255, 225, 122, .35) 50%, rgba(79, 227, 242, .45) 80%, transparent);
}
.points li:first-child { padding-top: .4rem; }
.points li:first-child::before { top: .85rem; }
.points li:last-child { padding-bottom: 0; }
.point-t { display: block; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: .2rem; transition: color .2s; }
.point-d { display: block; color: var(--muted); }
.points li:hover .point-t { color: var(--teal-2); }
.points li:hover::before { transform: rotate(225deg) scale(1.2); box-shadow: 0 0 14px rgba(243, 146, 4, .8); }

/* Buttons */
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; margin: 1.6rem 0 0; }
.button {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(31, 182, 201, .35);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s;
}
.button:hover { color: var(--navy); text-decoration: none; transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 10px 28px rgba(31, 182, 201, .5); }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.button.ghost:hover { color: #fff; background: rgba(31, 182, 201, .12); box-shadow: inset 0 0 0 1px var(--teal), 0 8px 22px rgba(31, 182, 201, .2); }

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.feature {
  position: relative;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .45;
  transition: opacity .2s;
}
.feature:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--glow); }
.feature:hover::before { opacity: 1; }
.feature h3 { margin: 0 0 .45rem; font-size: 1.05rem; color: var(--gold-2); }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Questions: a jump from a link lands below the sticky header and lights up */
.faq { scroll-margin-top: 5.5rem; }
.faq:target { border-color: transparent; box-shadow: var(--glow); }

/* Get started tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.tile {
  position: relative;
  display: block;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 2.4rem 1.1rem 1.25rem;
  color: var(--muted);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile::after {
  content: "→";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  transition: transform .2s ease;
}
.tile:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--glow); text-decoration: none; }
.tile:hover::after { transform: translate(4px, -50%); }
.tile strong { display: block; color: var(--ink); margin-bottom: .25rem; font-size: 1.05rem; }

/* Tables */
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { color: var(--muted); font-weight: 600; width: 34%; }
.specs tr { transition: background .15s; }
.specs tr:hover { background: rgba(31, 182, 201, .06); }
.downloads td:last-child { overflow-wrap: anywhere; }
.fpr { display: inline-block; letter-spacing: .05em; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 26, 43, .35);
}
.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
.list th, .list td { text-align: left; padding: .6rem .8rem; white-space: nowrap; }
.list th {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(6, 26, 43, .9);
  border-bottom: 1px solid var(--line-2);
}
.list td { border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.list tr:last-child td { border-bottom: 0; }
.list tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.list tr td { transition: background .15s, color .15s; }
.list tr:hover td { background: rgba(31, 182, 201, .1); color: #fff; }
.list tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.mono { font-family: ui-monospace, Consolas, "DejaVu Sans Mono", monospace; }

/* Address lookup */
.lookup { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.lookup input {
  flex: 1 1 260px;
  min-width: 0;
  padding: .7rem .9rem;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--code);
  color: var(--ink);
  font: .95rem ui-monospace, Consolas, "DejaVu Sans Mono", monospace;
  transition: border-color .15s, box-shadow .15s;
}
.lookup input::placeholder { color: rgba(147, 171, 186, .6); }
.lookup input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 182, 201, .25); }
.lookup button {
  padding: .7rem 1.4rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--teal-2), var(--teal));
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 182, 201, .3);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s;
}
.lookup button:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 8px 24px rgba(31, 182, 201, .45); }
.lookup button:active { transform: translateY(0); }
.address-line { overflow-wrap: anywhere; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 1rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .18));
}
.site-footer p { margin: .4rem 0; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--teal-2); }
.copyright { font-size: .8rem; opacity: .75; margin-top: .9rem !important; }

@media (max-width: 600px) {
  /* header stays on top in two short rows: logo and languages, then the menu scrolling sideways */
  .site-header { gap: .4rem .75rem; padding: .55rem .9rem; }
  .langs { margin-left: auto; }
  .nav {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .card { padding: 1.2rem 1.1rem; }
  .specs th, .specs td { display: block; padding: .2rem 0; border: 0; width: auto; }
  .specs tr { display: block; padding: .55rem 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .stats.four { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
