/* bitline Solutions - holding page
   Brand: green #36ac6a (logo), gold #be9a3f (logo). Darker green #1f7a4a used for text/buttons (WCAG AA on white). */

:root {
  --green: #36ac6a;
  --green-dark: #1f7a4a;
  --green-deep: #155c37;
  --gold: #be9a3f;
  --ink: #12261c;
  --muted: #55605c;
  --bg: #f6faf7;
  --surface: rgba(255, 255, 255, 0.72);
  --border: rgba(18, 38, 28, 0.09);
  --radius: 999px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, .brandline, .lead { text-wrap: balance; }

a { color: var(--green-dark); }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Animated backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.38;
  animation: float 22s ease-in-out infinite alternate;
}
.blob-green { background: radial-gradient(circle, var(--green) 0%, transparent 65%); top: -18vmax; left: -12vmax; }
.blob-gold  { background: radial-gradient(circle, var(--gold) 0%, transparent 65%); bottom: -20vmax; right: -14vmax; opacity: 0.3; animation-delay: -11s; }

.grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(18, 38, 28, 0.13) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}

@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6vmax, 4vmax) scale(1.12); }
}

/* ---------- Layout ---------- */
.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem;
}

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  max-width: 44rem;
  text-align: center;
  animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both;
}

.logo { display: inline-block; border-radius: 12px; }
.logo img { display: block; width: min(300px, 70vw); height: auto; }

.brandline {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.brandline strong { color: var(--ink); font-weight: 600; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 2.25rem 0 0;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

.pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(54, 172, 106, 0.6);
  animation: pulse 2s infinite;
}

h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--ink) 30%, var(--green-dark) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
h1 .dot { color: var(--gold); -webkit-text-fill-color: var(--gold); }

.lead {
  max-width: 34rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--green-dark), var(--green-deep));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -10px rgba(21, 92, 55, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  word-break: break-all;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(21, 92, 55, 0.7); }
.btn:active { transform: translateY(0); }

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
}
.facts li {
  padding: 0.55rem 1.05rem;
  font-size: 0.9rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.facts strong { color: var(--ink); }

/* ---------- Legal page ---------- */
.page:has(.legal) { align-items: flex-start; }

.legal {
  width: 100%;
  max-width: 46rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 30px 60px -40px rgba(18, 38, 28, 0.35);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  animation: rise 0.6s cubic-bezier(.2, .7, .2, 1) both;
}
.legal-head { text-align: center; margin-bottom: 2rem; }
.legal-head .logo img { width: min(180px, 50vw); }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.legal h2 { margin: 2rem 0 0.5rem; font-size: 1.2rem; color: var(--green-dark); }
.legal p, .legal li { color: #2d3a34; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.4rem; }
.legal h2[id] { scroll-margin-top: 1.5rem; }
.legal h3 { margin: 1.4rem 0 0.35rem; font-size: 1.02rem; color: var(--ink); }
.toc {
  margin: 1.75rem 0 0.5rem;
  padding: 1rem 1.25rem;
  background: rgba(54, 172, 106, 0.06);
  border: 1px solid rgba(54, 172, 106, 0.18);
  border-radius: 14px;
}
.toc ol { margin: 0; padding-left: 1.25rem; columns: 2 15rem; column-gap: 2rem; }
.toc li { margin: 0.15rem 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.contact-card {
  font-style: normal;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(190, 154, 63, 0.06);
  border-radius: 0 12px 12px 0;
  line-height: 1.8;
}
.muted { color: var(--muted); margin: 0.5rem 0 0; }
.back { margin-top: 2.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 1.5rem;
  padding: 1.5rem 1.25rem 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 0.6rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--green-dark); text-decoration: underline; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(54, 172, 106, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(54, 172, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(54, 172, 106, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
