/* TRUSWALLET marketing landing */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-band: #eaf0ff;
  --fg: #12141a;
  --fg-muted: #5c6578;
  --fg-faint: #8b93a7;
  --line: #e6ebf5;
  --brand: #1a4bff;
  --brand-bright: #4db8ff;
  --brand-teal: #5cf2d0;
  --brand-deep: #0c1f45;
  --radius: 999px;
  --shadow-phone: 0 28px 60px rgba(12, 31, 69, 0.18);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 64px;
  --shell-pad: 1.25rem;
  color-scheme: light;
}

body.is-dark {
  --bg: #070b16;
  --bg-soft: #0c1324;
  --bg-band: #101a33;
  --fg: #f2f5ff;
  --fg-muted: #a8b3cc;
  --fg-faint: #7a869f;
  --line: #1c2740;
  --shadow-phone: 0 28px 60px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; }

[x-cloak] { display: none !important; }

.shell {
  width: min(1180px, calc(100% - (var(--shell-pad) * 2)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(12, 31, 69, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 1;
  min-width: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: 0.03em;
  color: var(--brand);
  white-space: nowrap;
}

body.is-dark .brand-name { color: var(--brand-bright); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.nav-desktop a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color .2s ease;
}

.nav-desktop a:hover { color: var(--fg); }

.header-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.icon-btn:hover { color: var(--fg); background: var(--bg-soft); }

.nav-toggle { display: inline-grid; }
.lang-btn,
.header-open { display: none; }

.nav-mobile {
  display: grid;
  gap: .15rem;
  padding: .35rem 0 1.1rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.nav-mobile a {
  padding: .85rem .35rem;
  font-weight: 600;
  color: var(--fg);
  border-radius: 10px;
}

.nav-mobile a:hover { background: var(--bg-soft); }
.nav-mobile .btn {
  margin-top: .55rem;
  width: 100%;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 .95rem; font-size: .88rem; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(26, 75, 255, 0.28);
}

.btn-primary:hover { background: #143de0; color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--fg);
}

.btn-outline:hover { border-color: var(--fg-faint); }

.btn-outline-brand {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
}

.btn-outline-brand:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

body.is-dark .btn-outline-brand {
  border-color: var(--brand-bright);
  color: var(--brand-bright);
}

/* Hero */
.hero {
  display: grid;
  gap: 2rem;
  padding: 1.75rem 0 2.25rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 7.2vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  max-width: none;
}

.hero-lead {
  margin-top: 1rem;
  max-width: 40ch;
  font-size: 1rem;
  color: var(--fg-muted);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 1.4rem;
}

.hero-ctas .btn { width: 100%; }

.hero-ctas.center { align-items: stretch; }

.hero-visual {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  margin-inline: -0.25rem;
}

.phones {
  position: relative;
  width: min(280px, 78vw);
  height: 340px;
  z-index: 2;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orbit-a {
  width: min(280px, 78vw);
  height: min(280px, 78vw);
  background:
    radial-gradient(circle at 30% 30%, rgba(92, 242, 208, 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(77, 184, 255, 0.4), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(26, 75, 255, 0.25), transparent 55%);
  filter: blur(8px);
  animation: drift 9s ease-in-out infinite alternate;
}

.orbit-b {
  width: 140px;
  height: 140px;
  right: 4%;
  top: 10%;
  background: radial-gradient(circle, rgba(26, 75, 255, 0.2), transparent 70%);
  animation: drift 7s ease-in-out infinite alternate-reverse;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(12, 31, 69, 0.14);
  animation: floaty 4.5s ease-in-out infinite;
}

body.is-dark .float-chip { background: #121a2e; }

.chip-key { left: 2%; top: 16%; }
.chip-lock { right: 2%; bottom: 18%; animation-delay: -1.5s; }

.phone {
  position: absolute;
  border-radius: 24px;
  padding: 8px;
  background: linear-gradient(160deg, #1a2438, #0b1220);
  box-shadow: var(--shadow-phone);
  width: 72%;
}

.phone-back {
  left: 0;
  top: 8%;
  transform: rotate(-9deg);
  opacity: .9;
  z-index: 1;
  animation: tiltIn .9s ease both;
}

.phone-front {
  right: 0;
  top: 4%;
  width: 78%;
  transform: rotate(3deg);
  z-index: 2;
  animation: riseIn .9s .1s ease both;
}

.phone-screen {
  border-radius: 18px;
  padding: .85rem .75rem 1rem;
  min-height: 300px;
}

.phone-screen-light {
  background: linear-gradient(180deg, #f7f9ff, #eef2fb);
  color: #12141a;
}

.phone-screen-dark {
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 75, 255, 0.28), transparent 55%),
    linear-gradient(180deg, #0c1324, #070b16);
  color: #f2f5ff;
}

.ph-top, .ph-brand {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: .9rem;
}

.ph-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.ph-balance {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.ph-balance.light { color: #fff; }
.ph-sub { margin-top: .15rem; font-size: .72rem; color: #8b93a7; }

.ph-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .3rem;
  margin: .85rem 0 1rem;
}

.ph-actions span {
  height: 32px;
  border-radius: 10px;
  background: rgba(18, 20, 26, 0.06);
}

.ph-actions.dark span {
  display: grid;
  place-items: center;
  height: 38px;
  font-size: .52rem;
  font-weight: 600;
  color: #c9d2e8;
  background: rgba(255, 255, 255, 0.06);
}

.ph-actions.dark .accent {
  background: color-mix(in srgb, var(--brand-teal) 22%, transparent);
  color: var(--brand-teal);
}

.ph-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: .45rem;
  padding: .4rem 0;
  font-size: .74rem;
}

.ph-row + .ph-row { border-top: 1px solid rgba(18, 20, 26, 0.06); }
.ph-row.dark + .ph-row.dark { border-top-color: rgba(255, 255, 255, 0.06); }
.ph-row b { font-weight: 700; }
.ph-row em { font-style: normal; color: var(--fg-muted); }
.ph-row.dark em { color: #a8b3cc; }
.ph-row img { border-radius: 50%; width: 26px; height: 26px; }

.tok {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: block;
}

.tok-eth { background: linear-gradient(135deg, #627eea, #3c4fe0); }
.tok-bnb { background: linear-gradient(135deg, #f3ba2f, #c99400); }
.tok-usdt { background: linear-gradient(135deg, #26a17b, #1a7a5c); }

/* Trust bar */
.trust-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem 1rem;
  padding: .75rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.trust-bar article:last-child {
  grid-column: 1 / -1;
}

.trust-bar h2 {
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stars {
  display: flex;
  gap: .2rem;
  margin-top: .45rem;
}

.stars span {
  width: 16px;
  height: 16px;
  background: var(--brand);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* Bands & sections */
.band {
  background: var(--bg-band);
  padding: 2.75rem 0;
}

.band-inner h2 {
  font-size: clamp(1.55rem, 5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: .4rem;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}

.band-lead {
  margin-top: .9rem;
  max-width: 52ch;
  color: var(--fg-muted);
  font-size: .98rem;
}

.network-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.network-pills li {
  padding: .5rem .9rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  font-weight: 600;
  font-size: .85rem;
  color: var(--brand-deep);
}

body.is-dark .network-pills li { color: var(--brand-bright); }

.features { padding: 3.25rem 0 2.5rem; }

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin-top: .75rem;
  color: var(--fg-muted);
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

.feature { padding: 0; background: transparent; }

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  margin-bottom: .85rem;
}

.feature h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.feature p { color: var(--fg-muted); max-width: 36ch; }

.security {
  background: var(--bg-soft);
  padding: 3.25rem 0;
}

.security-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.security-copy h2 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.security-copy > p,
.security-copy h3 + p {
  margin-top: .8rem;
  color: var(--fg-muted);
  max-width: 42ch;
}

.security-copy h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.security-copy .btn {
  margin-top: 1.35rem;
  width: 100%;
  max-width: 280px;
}

.security-list {
  display: grid;
  gap: 1.15rem;
}

.security-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: .85rem;
  align-items: start;
}

.security-list img { width: 36px; height: 36px; }

.security-list h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.security-list p { color: var(--fg-muted); font-size: .92rem; }

.dev-band {
  padding: 3rem 0;
  background:
    linear-gradient(120deg, rgba(26, 75, 255, 0.08), rgba(92, 242, 208, 0.08)),
    var(--bg);
}

.dev-band h2 {
  font-size: clamp(1.55rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dev-band p {
  margin-top: .85rem;
  max-width: 52ch;
  color: var(--fg-muted);
}

.text-link {
  display: inline-block;
  margin-top: 1.15rem;
  font-weight: 700;
  color: var(--brand);
}

body.is-dark .text-link { color: var(--brand-bright); }

.cta-final { padding: 1.5rem 0 3.25rem; }

.cta-card {
  text-align: center;
  padding: 2.25rem 1.15rem;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(77, 184, 255, 0.18), transparent 55%),
    var(--bg-soft);
  border: 1px solid var(--line);
}

.cta-logo { margin: 0 auto 1rem; width: 48px; height: 48px; }

.cta-card h2 {
  font-size: clamp(1.45rem, 5vw, 2.3rem);
  font-weight: 800;
}

.cta-card > p {
  margin: .7rem auto 0;
  max-width: 40ch;
  color: var(--fg-muted);
}

.cta-card .hero-ctas { margin-top: 1.35rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.25rem;
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.25rem;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  margin-top: .75rem;
  color: var(--fg-muted);
  max-width: 32ch;
  font-size: .92rem;
}

.footer-grid h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: .7rem;
}

.footer-grid a {
  display: block;
  padding: .3rem 0;
  color: var(--fg-muted);
  font-size: .92rem;
}

.footer-grid a:hover { color: var(--fg); }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--fg-faint);
  font-size: .82rem;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(12px, -16px, 0) scale(1.05); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px) rotate(3deg); }
  to { opacity: 1; transform: rotate(3deg); }
}

@keyframes tiltIn {
  from { opacity: 0; transform: translateY(14px) rotate(-9deg); }
  to { opacity: .9; transform: rotate(-9deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .orbit, .float-chip, .phone-back, .phone-front { animation: none; }
}

/* Small phones */
@media (max-width: 380px) {
  .brand-name { font-size: .8rem; letter-spacing: 0.01em; }
  .brand-mark { width: 28px; height: 28px; }
  .header-actions { gap: .15rem; }
  .icon-btn { width: 36px; height: 36px; }
  .chip-key, .chip-lock { display: none; }
}

/* Tablet+ */
@media (min-width: 560px) {
  --shell-pad: 1.5rem;
  --header-h: 70px;

  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 36px; height: 36px; }
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hero-ctas .btn { width: auto; }
  .hero-ctas.center { justify-content: center; }
  .trust-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-bar article:last-child { grid-column: auto; }
  .phones {
    width: min(340px, 70vw);
    height: 380px;
  }
  .phone-screen { min-height: 330px; }
  .hero-visual { min-height: 390px; }
  .security-copy .btn { width: auto; }
  .cta-card { padding: 2.75rem 1.5rem; border-radius: 28px; }
}

@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .footer-brand { grid-column: auto; }
  .float-chip {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
}

@media (min-width: 960px) {
  --shell-pad: 1.75rem;
  --header-h: 72px;

  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .lang-btn,
  .header-open { display: inline-flex; }
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    padding: 3.25rem 0 2.5rem;
    min-height: calc(100svh - var(--header-h) - 150px);
  }
  .hero-copy h1 { max-width: 14ch; }
  .hero-lead { font-size: 1.05rem; }
  .hero-visual {
    min-height: 440px;
    overflow: visible;
    margin-inline: 0;
  }
  .phones {
    width: 360px;
    height: 420px;
  }
  .phone { width: 230px; border-radius: 28px; padding: 10px; }
  .phone-back {
    left: 0;
    top: 6%;
    width: 210px;
  }
  .phone-front {
    right: 0;
    top: 0;
    width: 230px;
  }
  .phone-screen {
    border-radius: 20px;
    min-height: 360px;
    padding: 1rem .9rem 1.1rem;
  }
  .ph-balance { font-size: 1.65rem; }
  .chip-key { left: 0; top: 18%; }
  .chip-lock { right: 0; bottom: 22%; }
  .trust-bar {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    padding: .5rem 0 3.25rem;
  }
  .features { padding: 4.5rem 0 3rem; }
  .security { padding: 4.5rem 0; }
  .security-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
  .band { padding: 3.5rem 0; }
  .dev-band { padding: 4rem 0; }
  .cta-final { padding: 2rem 0 4.5rem; }
}

@media (min-width: 1200px) {
  .phones { width: 400px; }
}
