/* TRUSWALLET marketing landing — inspired layout, own brand */
: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: 72px;
  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; }

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

img { display: block; max-width: 100%; }
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; }

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

.shell {
  width: min(1180px, calc(100% - 2.5rem));
  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: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--brand);
}

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: .55rem;
}

.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;
}

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

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

.nav-mobile {
  display: grid;
  gap: .25rem;
  padding: .5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.25rem;
  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;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 1rem; 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: 2.5rem;
  padding: 2.5rem 0 3rem;
  align-items: center;
}

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

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

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.hero-ctas.center { justify-content: center; }

.hero-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

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

.orbit-a {
  width: 320px;
  height: 320px;
  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: 180px;
  height: 180px;
  right: 8%;
  top: 12%;
  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: 58px;
  height: 58px;
  border-radius: 18px;
  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: 6%; top: 22%; }
.chip-lock { right: 4%; bottom: 28%; animation-delay: -1.5s; }

.phone {
  position: relative;
  z-index: 2;
  width: min(230px, 62vw);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1a2438, #0b1220);
  box-shadow: var(--shadow-phone);
}

.phone-back {
  position: absolute;
  transform: translate(-18%, -6%) rotate(-10deg);
  opacity: .92;
  z-index: 1;
  animation: tiltIn .9s ease both;
}

.phone-front {
  transform: translate(10%, 4%) rotate(4deg);
  animation: riseIn .9s .1s ease both;
}

.phone-screen {
  border-radius: 20px;
  padding: 1rem .9rem 1.1rem;
  min-height: 360px;
}

.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: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 1.1rem;
}

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

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

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

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

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

.ph-actions.dark span {
  display: grid;
  place-items: center;
  height: 42px;
  font-size: .58rem;
  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: 28px 1fr auto;
  align-items: center;
  gap: .55rem;
  padding: .45rem 0;
  font-size: .8rem;
}

.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%; }

.tok {
  width: 28px;
  height: 28px;
  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;
  gap: 1.5rem;
  padding: 1rem 0 3.5rem;
  border-top: 1px solid var(--line);
}

.trust-bar h2 {
  font-size: 1.05rem;
  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: 3.5rem 0;
}

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

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

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

.network-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.network-pills li {
  padding: .55rem 1rem;
  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: .9rem;
  color: var(--brand-deep);
}

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

.features { padding: 4.5rem 0 3rem; }

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

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

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

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

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

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

.feature h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .45rem;
}

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

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

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

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

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

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

.security-copy .btn { margin-top: 1.5rem; }

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

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

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

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

.dev-band {
  padding: 4rem 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.8rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

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

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

.cta-final { padding: 2rem 0 4.5rem; }

.cta-card {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 28px;
  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 1.1rem; }

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

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

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

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

.footer-grid {
  display: grid;
  gap: 2rem;
}

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

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

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

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

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

/* 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: translate(10%, 18%) rotate(4deg); }
  to { opacity: 1; transform: translate(10%, 4%) rotate(4deg); }
}

@keyframes tiltIn {
  from { opacity: 0; transform: translate(-18%, 8%) rotate(-10deg); }
  to { opacity: .92; transform: translate(-18%, -6%) rotate(-10deg); }
}

@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; }
}

/* Breakpoints */
@media (min-width: 720px) {
  .lang-btn { display: inline-flex; }
  .trust-bar {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    padding: 3.5rem 0 2.5rem;
    min-height: calc(100svh - var(--header-h) - 140px);
  }
  .trust-bar {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    padding-top: .5rem;
  }
  .security-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
  }
}

@media (max-width: 959px) {
  .hero-copy h1 { max-width: none; }
  .hero-visual { min-height: 380px; margin-top: .5rem; }
}
