/* FDUU mobile USDT safety pre-check - landing styles */

:root {
  --bg: #070a10;
  --bg-soft: #0b111a;
  --panel: #0d141d;
  --panel-2: #111a24;
  --line: #202a36;
  --line-strong: #2c3a49;
  --text: #eef2f7;
  --muted: #93a2b2;
  --red: #f43f5e;
  --red-soft: #fecdd3;
  --green: #10b981;
  --green-soft: #a7f3d0;
  --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: #101820;
  border-bottom: 1px solid var(--line);
  color: #c6d2de;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

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

/* 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: 10px 18px;
  background: rgba(7, 10, 16, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.brand svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.brand em {
  color: var(--green);
  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: #d7e1ea;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

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

/* Hero */

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

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

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

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.86) 0%, rgba(7, 10, 16, 0.36) 38%, rgba(7, 10, 16, 0.94) 100%);
}

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

.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.38);
  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-copy h1 {
  max-width: 620px;
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.hero-sub {
  max-width: 580px;
  margin: 0 0 22px;
  color: #d3dde6;
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

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

.btn-lg {
  min-height: 54px;
  padding: 0 22px;
  font-size: 16px;
}

.btn-primary {
  background: var(--green);
  border-color: #34d399;
  color: #04130d;
}

.btn-primary:active {
  background: #0ea371;
}

.btn-danger {
  background: var(--red);
  border-color: #fb7185;
  color: #ffffff;
}

.btn-danger:active {
  background: #e11d48;
}

.terminal-strip {
  position: relative;
  z-index: 2;
  min-height: 122px;
  padding: 12px 18px 14px;
  background: rgba(6, 9, 14, 0.92);
  border-top: 1px solid rgba(74, 222, 128, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.terminal-log {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.75;
  color: #b8c6d2;
}

.log-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  min-height: 1.75em;
  color: #8ea0b0;
}

.log-line.visible {
  color: #d7e2eb;
}

.log-line.green {
  color: #4ade80;
}

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

.log-line.cyan {
  color: #67e8f9;
}

.term-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  margin-left: 4px;
  background: #4ade80;
  vertical-align: -2px;
  animation: blink 0.9s step-end 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: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  min-width: 0;
  text-align: center;
}

.stat strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

/* Sections */

.section {
  padding: 52px 0;
}

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

.section-head {
  max-width: 640px;
  margin-bottom: 24px;
}

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

.section-head h2,
.contract-copy h2,
.emergency-copy h2,
.handoff-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
}

.section-desc,
.contract-copy p,
.emergency-copy p,
.handoff-panel > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Risk check */

.check-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

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

.step-label {
  color: var(--green);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

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

.progress-track {
  height: 6px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: #17202b;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--amber));
  transition: width 0.35s ease;
}

.check-prompt {
  margin: 0 0 14px;
  color: #e4ebf2;
  font-size: 17px;
  font-weight: 700;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

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

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

.option-card:active,
.option-card.selected {
  border-color: var(--red);
  background: rgba(244, 63, 94, 0.12);
}

.result-panel {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

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

.result-panel h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 21px;
  line-height: 1.25;
}

.result-text {
  margin: 0 0 14px;
  color: #c4d0db;
  font-size: 15px;
}

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

.result-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: #131c26;
  color: #c8d5e0;
  font-size: 12px;
  font-weight: 600;
}

.result-note {
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}

.result-panel .btn {
  width: 100%;
}

/* Traps */

.trap-hero,
.checklist-media,
.emergency-media {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0b121a;
}

.trap-hero img,
.checklist-media img,
.emergency-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.trap-hero figcaption,
.checklist-media figcaption,
.emergency-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 12, 0.92));
  color: #d7e1ea;
  font-size: 13px;
  font-weight: 600;
}

.trap-list {
  display: grid;
  gap: 10px;
}

.trap-card {
  position: relative;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  background: var(--panel);
}

.trap-index {
  position: absolute;
  top: 12px;
  right: 14px;
  color: rgba(244, 63, 94, 0.55);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}

.trap-card h3 {
  max-width: calc(100% - 40px);
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
}

.trap-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Contract */

.contract-panel {
  padding: 24px 18px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0b1a16, #0d141d 72%);
}

.contract-copy {
  margin-bottom: 18px;
}

.contract-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--radius);
  background: rgba(4, 11, 9, 0.8);
}

.contract-box code {
  flex: 1;
  min-width: 0;
  color: #86efac;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.btn-copy {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
  font-size: 13px;
}

.btn-copy svg {
  width: 15px;
  height: 15px;
}

.lookup-hint {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.lookup-hint strong {
  color: #a7f3d0;
  font-family: var(--mono);
}

.lookup-hint em {
  color: #a7f3d0;
  font-family: var(--mono);
  font-style: normal;
}

.copy-note {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

/* Checklist */

.checklist-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

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

.rule-good {
  border-left: 4px solid var(--green);
}

.rule-bad {
  border-left: 4px solid var(--red);
}

.rule-card h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 17px;
}

.rule-good h3 {
  color: var(--green-soft);
}

.rule-bad h3 {
  color: #fda4af;
}

.rule-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rule-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: #c2ced9;
  font-size: 14px;
}

.rule-card li:last-child {
  margin-bottom: 0;
}

.rule-card li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
}

.rule-good li::before {
  background: var(--green);
}

.rule-bad li::before {
  background: var(--red);
}

.checklist-media {
  margin-bottom: 0;
}

/* Emergency */

.emergency-panel {
  padding: 24px 18px;
  border: 1px solid rgba(244, 63, 94, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1b0d13, #0d141d 74%);
}

.emergency-copy {
  margin-bottom: 20px;
}

.emergency-copy .section-label {
  color: #fda4af;
}

.emergency-steps {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.emergency-steps li {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 20, 29, 0.9);
}

.emergency-steps li > span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.emergency-steps strong {
  display: block;
  margin-bottom: 3px;
  color: #ffffff;
  font-size: 15px;
}

.emergency-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Handoff */

.handoff-panel {
  padding: 28px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.12), transparent 36%),
    radial-gradient(circle at 12% 92%, rgba(16, 185, 129, 0.14), transparent 40%),
    var(--panel);
  text-align: center;
}

.handoff-panel .section-label {
  color: var(--cyan);
}

.handoff-panel .btn {
  width: 100%;
  margin-top: 20px;
}

.handoff-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* Footer */

footer {
  padding: 28px 0 96px;
  background: #05080d;
  border-top: 1px solid var(--line);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: block;
  margin-bottom: 12px;
  color: #e6edf3;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}

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

.footer-links a:active {
  color: var(--green);
}

.footer-inner > p {
  margin: 0;
  color: #66788a;
  font-size: 12px;
}

/* Sticky CTA */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(7, 10, 16, 0), rgba(7, 10, 16, 0.96) 38%);
  transform: translateY(120%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

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

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

/* Desktop */

@media (min-width: 720px) {
  .trust-bar {
    gap: 8px 14px;
    font-size: 12px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-copy {
    padding-bottom: 36px;
  }

  .hero-copy h1 {
    font-size: 56px;
  }

  .hero-sub {
    font-size: 18px;
  }

  .terminal-strip {
    min-height: 132px;
  }

  .terminal-log {
    font-size: 13px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head h2,
  .contract-copy h2,
  .emergency-copy h2,
  .handoff-panel h2 {
    font-size: 36px;
  }

  .stats-grid {
    gap: 20px;
  }

  .stat strong {
    font-size: 30px;
  }

  .stat span {
    font-size: 13px;
  }

  .option-card {
    min-height: 104px;
    padding: 18px;
    font-size: 15px;
  }

  .trap-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trap-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .trap-hero img,
  .checklist-media img,
  .emergency-media img {
    height: 300px;
  }

  .checklist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .handoff-panel .btn {
    width: auto;
    min-width: 280px;
  }

  footer {
    padding-bottom: 36px;
  }
}
