/* BitMeter marketing site — plain CSS + variables, no framework. */

:root {
  --bg: #0e0f12;
  --bg-elev: #16181d;
  --line: #262a31;
  --fg: #f2f3f5;
  --fg-dim: #9aa1ac;
  --fg-faint: #6b7280;
  --green: #2ecc71;
  --amber: #e0a100;
  --red: #e5533d;
  --accent: #2ecc71;
  --radius: 18px;
  --maxw: 1000px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", var(--font);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient glow behind the hero */
.hero {
  position: relative;
  text-align: center;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto 0;
  height: 460px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(46, 204, 113, 0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
}

.app-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
}

h1 {
  font-family: var(--font-round);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 20px 0 8px;
}

.tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--fg-dim);
  max-width: 30ch;
  margin: 0 auto 28px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #08130c;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 1.02rem;
}
.cta:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.cta.secondary {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--fg-faint);
}

/* Sections */
section {
  padding: 56px 0;
}
.section-title {
  font-family: var(--font-round);
  font-size: 1.7rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--fg-dim);
  margin: 0 auto 36px;
  max-width: 52ch;
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 720px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card .ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(46, 204, 113, 0.12);
  font-size: 20px;
  margin-bottom: 14px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}
.card p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 0.96rem;
}
.card .tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(224, 161, 0, 0.4);
  border-radius: 6px;
  padding: 2px 7px;
}

/* Meter strip (green→amber→red), a nod to the app */
.meter {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  max-width: 260px;
  margin: 0 auto 30px;
}
.meter span {
  flex: 1;
}
.meter .g {
  background: var(--green);
}
.meter .a {
  background: var(--amber);
}
.meter .r {
  background: var(--red);
}

/* Honesty callout */
.callout {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  max-width: 720px;
  margin: 0 auto;
}
.callout h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}
.callout p {
  margin: 0;
  color: var(--fg-dim);
}

/* Footer */
footer {
  padding: 36px 0 56px;
  text-align: center;
  color: var(--fg-faint);
  font-size: 0.9rem;
}
footer .links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
footer a {
  color: var(--fg-dim);
}

/* Content pages (privacy) */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}
.doc h1 {
  font-size: 2rem;
  text-align: left;
  margin-bottom: 4px;
}
.doc .updated {
  color: var(--fg-faint);
  font-size: 0.9rem;
  margin-bottom: 28px;
}
.doc h2 {
  font-size: 1.2rem;
  margin: 30px 0 8px;
}
.doc p,
.doc li {
  color: var(--fg-dim);
}
.doc a.back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--fg-dim);
}
