/* =========================
   GLOBAL / FULLSCREEN
========================= */
:root{
  --btc: #f7931a;
  --btc-dark: #c87314;
  --ink: #111827;         /* near-black */
  --muted: #6b7280;       /* gray */
  --line: rgba(17,24,39,0.10);
  --shadow: 0 10px 30px rgba(17,24,39,0.08);
  --shadow-sm: 0 6px 18px rgba(17,24,39,0.10);
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000; /* landing stays black */
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* =========================
   MATRIX CANVAS
========================= */
#matrix {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  opacity: 1;
  transition: opacity 700ms ease;
}

/* On home: fully fade the matrix away */
#matrix.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* =========================
   LANDING (ONLY)
========================= */
.landing {
  position: fixed;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 24px;
  text-align: center;
  color: #00ff66;
}

.glow-frame {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 16px 18px;
  border-radius: 14px;

  border: 1px solid rgba(0, 255, 102, 0.35);
  background: rgba(0, 0, 0, 0.55);

  box-shadow:
          0 0 18px rgba(0, 255, 102, 0.12),
          0 0 48px rgba(0, 255, 102, 0.06);

  backdrop-filter: blur(6px);
}

.type {
  font-size: clamp(18px, 5vw, 44px);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
  white-space: nowrap;
}

.caret {
  font-size: clamp(18px, 5vw, 44px);
  opacity: 1;
  animation: blink 1s steps(2, jump-none) infinite;
  text-shadow: 0 0 10px rgba(0, 255, 102, 0.35);
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.pills {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.pills:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

/* =========================
   PILL BUTTONS (LOCKED COLORS)
========================= */
button.pill {
  width: 180px;
  height: 44px;

  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;

  cursor: pointer;
  border: 1px solid transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  user-select: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;

  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

button.pill:active {
  transform: translateY(1px);
}

/* Matrix blue pill */
button.pill.blue {
  background: linear-gradient(180deg, #3b6ea8, #1f3f66);
  color: #ffffff;

  border-color: rgba(130, 180, 255, 0.55);
  box-shadow:
          0 0 14px rgba(90, 140, 200, 0.45),
          0 0 30px rgba(60, 100, 160, 0.30),
          inset 0 0 8px rgba(255, 255, 255, 0.18);
}

button.pill.blue:hover {
  box-shadow:
          0 0 20px rgba(90, 140, 200, 0.65),
          0 0 44px rgba(60, 100, 160, 0.40),
          inset 0 0 10px rgba(255, 255, 255, 0.22);
}

/* Bitcoin orange pill */
button.pill.orange {
  background: linear-gradient(180deg, var(--btc), var(--btc-dark));
  color: #ffffff;

  border-color: rgba(255, 170, 60, 0.75);
  box-shadow:
          0 0 18px rgba(247, 147, 26, 0.60),
          0 0 36px rgba(247, 147, 26, 0.35),
          inset 0 0 8px rgba(255, 255, 255, 0.18);
}

button.pill.orange:hover {
  box-shadow:
          0 0 26px rgba(247, 147, 26, 0.85),
          0 0 54px rgba(247, 147, 26, 0.45),
          inset 0 0 10px rgba(255, 255, 255, 0.25);
}

/* =========================
   TRUTH OVERLAY (POPS UP)
========================= */
.truth-overlay {
  position: fixed;
  inset: 0;
  z-index: 3;

  display: grid;
  place-items: center;

  background: radial-gradient(
          800px 500px at 50% 35%,
          rgba(0, 255, 102, 0.08),
          rgba(0, 0, 0, 0.88)
  );

  opacity: 0;
  pointer-events: none;
}

.truth-overlay.show {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 220ms ease;
}

.truth-text {
  color: #d8ffe9;
  font-weight: 900;
  letter-spacing: 0.4px;

  font-size: clamp(34px, 6vw, 84px);
  text-shadow:
          0 0 18px rgba(0, 255, 102, 0.18),
          0 0 44px rgba(0, 255, 102, 0.10);

  transform: translateY(10px) scale(0.98);
  opacity: 0;
}

.truth-overlay.show .truth-text {
  animation: truthPop 900ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes truthPop {
  0%   { opacity: 0; transform: translateY(14px) scale(0.96); }
  45%  { opacity: 1; transform: translateY(0) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1.00); }
}

/* =========================
   HOME VIEW (WHITE + BITCOIN ORANGE)
========================= */
.home {
  position: fixed;
  inset: 0;
  z-index: 2;

  display: grid;
  grid-template-rows: auto 1fr;
  padding: 20px;

  /* clean modern system font */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);

  background: #ffffff;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;

  transition: opacity 700ms ease, transform 700ms ease;
}

.home.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header */
.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;

  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.home-brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.home-brand::before {
  content: "₿ ";
  color: var(--btc);
}

/* Nav */
.home-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-nav-btn {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);

  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;

  appearance: none;
  -webkit-appearance: none;

  transition: transform 120ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-nav-btn:hover {
  border-color: rgba(247,147,26,0.45);
  box-shadow: 0 8px 20px rgba(247,147,26,0.10);
}

.home-nav-btn:active {
  transform: translateY(1px);
}

/* Hero */
.home-hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px 10px;
}

.home-title {
  margin: 14px 0 10px;
  font-size: clamp(34px, 6vw, 84px);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.home-title::after{
  content: ".";
  color: var(--btc);
}

.home-subtitle {
  margin: 0 0 18px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

/* Cards */
.home-cards {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.home-card {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 18px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);

  position: relative;
  overflow: hidden;
}

.home-card::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--btc), rgba(247,147,26,0.15));
}

.home-card-label {
  color: rgba(17,24,39,0.65);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.home-card-value {
  font-size: 28px;
  margin-top: 10px;
  color: var(--ink);
  font-weight: 700;
}

.home-card-meta {
  margin-top: 6px;
  color: rgba(17,24,39,0.55);
  font-size: 13px;
}

/* Actions */
.home-actions {
  margin-top: 18px;
}

.home-cta {
  border: 1px solid rgba(247,147,26,0.35);
  background: linear-gradient(180deg, rgba(247,147,26,0.10), rgba(247,147,26,0.06));
  color: var(--ink);

  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;

  appearance: none;
  -webkit-appearance: none;

  box-shadow: 0 10px 26px rgba(247,147,26,0.12);
  transition: transform 120ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-cta:hover {
  border-color: rgba(247,147,26,0.55);
  box-shadow: 0 14px 34px rgba(247,147,26,0.18);
}

.home-cta:active {
  transform: translateY(1px);
}

/* Responsive */
@media (max-width: 860px) {
  .home-cards { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  button.pill {
    width: 160px;
    height: 42px;
    font-size: 14px;
  }
}
