/* Freedom Dollar fUSD mobile stablecoin check - landing styles */

:root {
  --bg: #05070d;
  --bg-soft: #090d15;
  --panel: #0b111c;
  --panel-2: #101826;
  --line: #1b2636;
  --line-strong: #27384d;
  --text: #eef4fb;
  --muted: #8fa1b8;
  --blue: #0094f8;
  --blue-soft: #38bdf8;
  --blue-tint: rgba(0, 148, 248, 0.14);
  --green: #10b981;
  --green-soft: #a7f3d0;
  --red: #f43f5e;
  --red-soft: #fecdd3;
  --amber: #f59e0b;
  --cyan: #22d3ee;
  --radius: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Trust bar */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  padding: 8px 12px;
  background: #0a1119;
  border-bottom: 1px solid var(--line);
  color: #c3d1e0;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.trust-bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 9px 18px;
  background: rgba(5, 7, 13, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
}

.brand img {
  width: 30px;
  height: auto;
  flex: 0 0 auto;
}

.brand em {
  color: var(--blue-soft);
  font-style: normal;
}

.official-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: #d7e2ed;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.official-link svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 58px);
  overflow: hidden;
  background: #050b14;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.9) 0%, rgba(5, 7, 13, 0.42) 42%, rgba(5, 7, 13, 0.96) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 72px;
  padding-bottom: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: var(--radius);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(244, 63, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
  }
}

.hero h1 {
  max-width: 560px;
  margin: 0 0 12px;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.12;
}

.hero-sub {
  max-width: 560px;
  margin: 0 0 20px;
  color: #c7d4e2;
  font-size: 15px;
  line-height: 1.6;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:active {
  background: #007fd6;
}

.btn-secondary {
  background: var(--blue-tint);
  border-color: rgba(0, 148, 248, 0.5);
  color: var(--blue-soft);
}

.btn-secondary:active {
  background: rgba(0, 148, 248, 0.22);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: #d7e2ed;
}

.btn-lg {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* Terminal */

.terminal-strip {
  position: relative;
  z-index: 2;
  margin: 0 18px 16px;
  border: 1px solid rgba(0, 148, 248, 0.34);
  border-radius: var(--radius);
  background: rgba(7, 11, 18, 0.94);
  overflow: hidden;
}

.terminal-strip::before {
  content: "";
  display: block;
  height: 26px;
  background: #0d1521;
  border-bottom: 1px solid var(--line);
}

.terminal-log {
  min-height: 150px;
  padding: 10px 12px 12px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
}

.log-line {
  display: block;
  color: #9fb3c8;
  opacity: 0;
}

.log-line.visible {
  opacity: 1;
}

.log-line.cyan {
  color: var(--cyan);
}

.log-line.green {
  color: var(--green-soft);
}

.log-line.warn {
  color: #fdba74;
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  background: var(--blue-soft);
  vertical-align: -2px;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Stats */

.stats {
  padding: 22px 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stat {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.stat strong {
  display: block;
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
}

.stat:nth-child(1) strong {
  color: var(--red);
}

.stat:nth-child(2) strong {
  color: var(--green-soft);
}

.stat:nth-child(3) strong {
  color: var(--blue-soft);
}

.stat:nth-child(4) strong {
  color: var(--amber);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* Sections */

.section {
  padding: 44px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 22px;
}

.section-label {
  margin: 0 0 8px;
  color: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-head h2,
.reserve-copy h2,
.handoff-panel h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.22;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Check panel */

.check-panel {
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}

.check-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.step-label {
  color: #c3d1e0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.back-btn {
  min-height: 32px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: #c3d1e0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.progress-track {
  height: 5px;
  margin-bottom: 18px;
  border-radius: 99px;
  background: #16202d;
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--blue);
  transition: width 0.3s ease;
}

.check-prompt {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.option-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.option-card .option-sub {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.option-card.selected {
  border-color: var(--blue);
  background: var(--blue-tint);
}

/* Result */

.result-panel {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-kicker {
  margin: 0 0 6px;
  color: var(--green-soft);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.result-panel h3 {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
}

.result-text {
  margin: 0 0 14px;
  color: #c7d4e2;
  font-size: 14px;
  line-height: 1.6;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.result-meta span {
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: #c3d1e0;
  font-size: 12px;
  font-weight: 600;
}

.result-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.redo-btn {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Feature section */

.feature-media,
.reserve-media {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.feature-media img,
.reserve-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-media figcaption,
.reserve-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-index {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-soft);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Comparison table */

.compare-table-wrap {
  margin-bottom: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  min-width: 380px;
  border-collapse: collapse;
  font-size: 13px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table tr:last-child th,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table thead th {
  background: var(--panel-2);
  color: #c3d1e0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.compare-table td:first-child {
  color: #c7d4e2;
  font-weight: 600;
}

.compare-table .bad {
  color: var(--red-soft);
  font-weight: 700;
}

.compare-table .good {
  color: var(--green-soft);
  font-weight: 700;
}

/* Reserves */

.reserve-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 20px;
}

.reserve-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.reserve-copy .btn {
  margin-top: 6px;
}

.reserve-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reserve-stat {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.reserve-stat strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-soft);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.reserve-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.reserve-media img {
  aspect-ratio: 7 / 5;
}

/* Handoff */

.handoff-panel {
  padding: 26px 22px;
  border: 1px solid rgba(0, 148, 248, 0.4);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(0, 148, 248, 0.12) 0%, rgba(5, 7, 13, 0) 55%),
    var(--panel);
}

.handoff-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.handoff-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.handoff-note {
  margin: 14px 0 0;
  font-size: 12px;
}

/* Footer */

footer {
  padding: 30px 0 100px;
  background: #03050a;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand {
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.footer-inner p {
  margin: 0;
  color: #5f7187;
  font-size: 12px;
}

/* Sticky CTA */

.sticky-cta {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 7, 13, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
}

/* Desktop */

@media (min-width: 560px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .option-grid {
    grid-template-columns: 1fr 1fr;
  }

  .option-card.span2 {
    grid-column: 1 / -1;
  }

  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .reserve-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .handoff-actions {
    grid-template-columns: 1fr 1fr;
  }

  .result-actions {
    grid-template-columns: 1fr 1fr;
  }

  .redo-btn {
    grid-column: 1 / -1;
  }
}
