/* TrustX public site + panel preview */
:root {
  --tx-black: #0a0a0a;
  --tx-ink: #111111;
  --tx-muted: #5c5c5c;
  --tx-border: #e8e8e8;
  --tx-bg: #ffffff;
  --tx-soft: #f4f5f7;
  --tx-green: #00a651;
  --tx-green-soft: #e8f8ef;
  --tx-cyan: #0ea5b7;
  --tx-cyan-soft: #e6f7f9;
  --tx-red: #c8102e;
  --tx-radius: 1rem;
  --tx-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --tx-shadow-lg: 0 28px 80px rgba(10, 10, 10, 0.12);
  --tx-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.tx-container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.tx-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tx-border);
}

.tx-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.tx-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tx-brand img {
  height: 36px;
  width: auto;
}

.tx-brand-tag {
  font-size: 0.75rem;
  color: var(--tx-muted);
  display: none;
}

.tx-nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.tx-nav-links a:hover {
  color: var(--tx-cyan);
}

.tx-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.tx-btn-primary {
  background: var(--tx-black);
  color: #fff;
}

.tx-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--tx-shadow);
}

.tx-btn-ghost {
  background: transparent;
  border-color: var(--tx-border);
  color: var(--tx-ink);
}

.tx-btn-ghost:hover {
  border-color: var(--tx-ink);
}

.tx-btn-green {
  background: var(--tx-green);
  color: #fff;
}

.tx-btn-cyan {
  background: var(--tx-cyan);
  color: #fff;
}

.tx-menu-toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--tx-border);
  background: #fff;
  align-items: center;
  justify-content: center;
}

.tx-mobile-menu {
  display: none;
  border-top: 1px solid var(--tx-border);
  padding: 1rem 0 1.25rem;
}

.tx-mobile-menu.open {
  display: block;
}

.tx-mobile-menu a {
  display: block;
  padding: 0.7rem 0;
  font-weight: 500;
}

.tx-hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(circle at top right, rgba(14, 165, 183, 0.12), transparent 40%),
    radial-gradient(circle at 10% 80%, rgba(0, 166, 81, 0.1), transparent 35%),
    #fff;
}

.tx-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.tx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--tx-soft);
  color: var(--tx-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tx-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.tx-hero p.lead {
  font-size: 1.1rem;
  color: var(--tx-muted);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.tx-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.tx-access {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tx-access-item {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 0.9rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.tx-access-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.2rem;
}

.tx-access-item span {
  font-size: 0.8rem;
  color: var(--tx-muted);
}

.tx-hero-card {
  background: var(--tx-black);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: var(--tx-shadow);
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.tx-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(14, 165, 183, 0.25);
}

.tx-hero-mark {
  width: 120px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1);
}

.tx-hero-card h2 {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.tx-hero-card p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1.5rem;
}

.tx-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tx-pill {
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
}

.tx-section {
  padding: 4rem 0;
}

.tx-section.alt {
  background: var(--tx-soft);
}

.tx-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.tx-section-head .eyebrow {
  color: var(--tx-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.tx-section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.tx-section-head p {
  color: var(--tx-muted);
  margin: 0;
}

.tx-product-grid {
  display: grid;
  gap: 1.25rem;
}

.tx-pain-grid {
  display: grid;
  gap: 1rem;
}

.tx-pain {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.15rem;
  padding: 1.35rem;
}

.tx-pain.highlight {
  background: var(--tx-black);
  color: #fff;
  border-color: var(--tx-black);
}

.tx-pain.highlight p {
  color: rgba(255, 255, 255, 0.72);
}

.tx-pain h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.tx-pain p {
  margin: 0;
  color: var(--tx-muted);
}

.tx-product {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.tx-product.featured {
  border-color: #9ad8e1;
  box-shadow: 0 16px 40px rgba(14, 165, 183, 0.12);
  transform: translateY(-2px);
}

.tx-modules-showcase {
  margin-top: 2rem;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.25rem;
  padding: 1.35rem;
}

.tx-modules-showcase h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.tx-use-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.tx-product .badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.tx-badge-nfc {
  background: #111;
  color: #fff;
}

.tx-badge-qr {
  background: var(--tx-cyan-soft);
  color: #066677;
}

.tx-badge-menu {
  background: var(--tx-green-soft);
  color: #06753c;
}

.tx-product h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.tx-product p {
  margin: 0;
  color: var(--tx-muted);
}

.tx-product ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--tx-ink);
}

.tx-product li {
  margin-bottom: 0.45rem;
}

.tx-product .price {
  margin-top: auto;
  font-size: 0.92rem;
  font-weight: 600;
}

.tx-steps {
  display: grid;
  gap: 1rem;
}

.tx-step {
  background: #fff;
  border-radius: 1.1rem;
  border: 1px solid var(--tx-border);
  padding: 1.25rem;
}

.tx-step .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tx-black);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.tx-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.tx-step p {
  margin: 0;
  color: var(--tx-muted);
}

.tx-benefit-grid {
  display: grid;
  gap: 1rem;
}

.tx-benefit {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.25rem;
  border: 1px solid var(--tx-border);
}

.tx-benefit h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.tx-benefit p {
  margin: 0;
  color: var(--tx-muted);
  font-size: 0.95rem;
}

.tx-cta {
  background: var(--tx-black);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--tx-shadow);
}

.tx-cta h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.tx-cta p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.72);
}

.tx-cta .tx-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.tx-footer {
  border-top: 1px solid var(--tx-border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.tx-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.tx-footer p {
  margin: 0;
  color: var(--tx-muted);
  font-size: 0.9rem;
}

/* Panel preview */
body.trustx-panel-body {
  margin: 0;
  font-family: var(--tx-font);
  background: #f3f4f6;
  color: var(--tx-ink);
}

.tx-panel-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

.tx-sidebar {
  background: #0f1115;
  color: #fff;
  padding: 1.25rem;
  display: none;
}

.tx-sidebar.open {
  display: block;
  position: fixed;
  inset: 0 auto 0 0;
  width: min(300px, 86vw);
  z-index: 60;
  overflow-y: auto;
}

.tx-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.tx-sidebar-brand img {
  height: 28px;
  filter: brightness(0) invert(1);
}

.tx-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.tx-sidebar nav a.active,
.tx-sidebar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.tx-sidebar .tx-demo-tag {
  margin-top: 1.5rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: rgba(14, 165, 183, 0.15);
  color: #9ce7f0;
  font-size: 0.8rem;
}

.tx-panel-main {
  min-width: 0;
}

.tx-topbar {
  background: #fff;
  border-bottom: 1px solid var(--tx-border);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.tx-topbar h1 {
  margin: 0;
  font-size: 1.15rem;
}

.tx-topbar .meta {
  color: var(--tx-muted);
  font-size: 0.85rem;
}

.tx-panel-content {
  padding: 1.25rem;
}

.tx-alert-demo {
  background: #fff7e6;
  border: 1px solid #f5d78e;
  color: #7a5b00;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.tx-stat-grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.tx-stat {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.tx-stat .label {
  color: var(--tx-muted);
  font-size: 0.82rem;
  margin-bottom: 0.35rem;
}

.tx-stat .value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tx-stat .hint {
  font-size: 0.8rem;
  color: var(--tx-green);
  margin-top: 0.25rem;
}

.tx-card {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1rem;
  padding: 1.1rem;
  margin-bottom: 1rem;
}

.tx-card h2,
.tx-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tx-table th,
.tx-table td {
  text-align: left;
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid var(--tx-border);
  vertical-align: top;
}

.tx-table th {
  color: var(--tx-muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tx-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.tx-badge-ok {
  background: var(--tx-green-soft);
  color: #06753c;
}

.tx-badge-warn {
  background: #fff3cd;
  color: #856404;
}

.tx-badge-info {
  background: var(--tx-cyan-soft);
  color: #066677;
}

.tx-badge-muted {
  background: var(--tx-soft);
  color: var(--tx-muted);
}

.tx-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tx-module {
  border: 1px solid var(--tx-border);
  border-radius: 0.7rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  background: var(--tx-soft);
}

.tx-module.on {
  background: var(--tx-cyan-soft);
  border-color: #b6e7ee;
}

.tx-dish {
  display: grid;
  gap: 1rem;
}

.tx-dish-media {
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  border-radius: 1rem;
  min-height: 160px;
  display: flex;
  align-items: end;
  padding: 1rem;
}

.tx-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 55;
}

.tx-backdrop.open {
  display: block;
}

@media (min-width: 768px) {
  .tx-brand-tag {
    display: block;
  }

  .tx-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tx-pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tx-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .tx-use-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .tx-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tx-dish {
    grid-template-columns: 220px 1fr;
  }
}

.tx-nav-links a.is-active {
  color: var(--tx-cyan);
}

.tx-footer-links {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.tx-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.tx-page-hero {
  padding-bottom: 2.5rem;
}

.tx-page-hero-compact {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.tx-hero-card-cyan {
  background: linear-gradient(160deg, #0a0a0a 0%, #0ea5b7 140%);
}

.tx-hero-card-green {
  background: linear-gradient(160deg, #0a0a0a 0%, #00a651 140%);
}

.tx-feature-grid {
  display: grid;
  gap: 1rem;
}

.tx-feature {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.tx-feature h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.tx-feature p {
  margin: 0;
  color: var(--tx-muted);
  font-size: 0.95rem;
}

.tx-feature-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--tx-cyan);
  margin-bottom: 0.5rem;
}

.tx-split {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.tx-split h2 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.tx-split > div > p {
  color: var(--tx-muted);
}

.tx-check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.tx-check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.5rem;
  color: var(--tx-ink);
}

.tx-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--tx-green);
}

.tx-panel-box {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--tx-shadow);
}

.tx-panel-box h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.tx-panel-note {
  margin: 1rem 0 0;
  color: var(--tx-muted);
  font-size: 0.92rem;
}

.tx-detail-grid {
  display: grid;
  gap: 1rem;
}

.tx-detail-card {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.25rem;
  padding: 1.4rem;
}

.tx-detail-card h3 {
  margin: 0.7rem 0 0.5rem;
  letter-spacing: -0.02em;
}

.tx-detail-card p {
  margin: 0 0 1rem;
  color: var(--tx-muted);
}

.tx-detail-card a {
  font-weight: 600;
  color: var(--tx-cyan);
}

.tx-works-grid {
  display: grid;
  gap: 1rem;
}

.tx-work-card {
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.25rem;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tx-work-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tx-shadow);
}

.tx-work-card h2,
.tx-work-card h3 {
  margin: 0.2rem 0 0;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}

.tx-work-card > p {
  margin: 0;
  color: var(--tx-muted);
  font-size: 0.92rem;
  flex: 1;
}

.tx-work-sub {
  font-weight: 600 !important;
  color: var(--tx-ink) !important;
  font-size: 0.88rem !important;
}

.tx-work-card .tx-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.tx-work-badge {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--tx-soft);
  color: var(--tx-muted);
}

.tx-work-badge-menu {
  background: var(--tx-green-soft);
  color: #06753c;
}

.tx-work-badge-app,
.tx-work-badge-event {
  background: var(--tx-cyan-soft);
  color: #066677;
}

.tx-work-badge-mp3,
.tx-work-badge-playlist {
  background: #f3e8ff;
  color: #6b21a8;
}

.tx-work-badge-coupon {
  background: #fff3cd;
  color: #856404;
}

.tx-work-badge-feedback {
  background: #ffe4e6;
  color: #9f1239;
}

@media (min-width: 768px) {
  .tx-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tx-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .tx-works-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tx-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 960px) {
  .tx-nav-links {
    display: flex;
  }

  .tx-menu-toggle {
    display: none;
  }

  .tx-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }

  .tx-panel-shell {
    grid-template-columns: 270px 1fr;
  }

  .tx-sidebar {
    display: block;
    position: sticky;
    top: 0;
    height: 100vh;
  }

  .tx-menu-toggle.panel {
    display: none;
  }

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

  .tx-works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ——— Homepage premium ——— */
.tx-btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 0.98rem;
}

.tx-gradient-text {
  background: linear-gradient(120deg, var(--tx-cyan) 0%, var(--tx-green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tx-hero-home {
  position: relative;
  padding: 3rem 0 2rem;
  overflow: hidden;
}

.tx-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(14, 165, 183, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 5% 90%, rgba(0, 166, 81, 0.14), transparent 50%),
    linear-gradient(180deg, #fafbfc 0%, #fff 45%, #f8faf9 100%);
  pointer-events: none;
}

.tx-hero-home-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}

.tx-kicker-glow {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--tx-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.tx-kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tx-green);
  box-shadow: 0 0 0 4px var(--tx-green-soft);
}

.tx-hero-home h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 0 0 1.1rem;
  max-width: 14ch;
}

.tx-hero-home .lead {
  font-size: 1.12rem;
  max-width: 32rem;
}

.tx-hero-stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.tx-hero-stats li {
  padding: 0.85rem 0.75rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--tx-border);
}

.tx-hero-stats strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.tx-hero-stats span {
  font-size: 0.75rem;
  color: var(--tx-muted);
  line-height: 1.35;
}

.tx-hero-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-device {
  width: min(280px, 78vw);
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.18));
}

.tx-device-frame {
  background: #0f1115;
  border-radius: 2rem;
  padding: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tx-device-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.75rem 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 600;
}

.tx-device-signal {
  width: 36px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.tx-device-splash {
  background: linear-gradient(145deg, #111 0%, #1a2332 100%);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.25rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
}

.tx-device-splash img {
  width: 48px;
  margin: 0 auto 0.5rem;
  opacity: 0.95;
}

.tx-device-body {
  background: #fff;
  border-radius: 0 0 1.25rem 1.25rem;
  padding: 1rem 1rem 1.25rem;
}

.tx-device-hero-chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tx-cyan);
  background: var(--tx-cyan-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.tx-device-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--tx-ink);
}

.tx-device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.tx-device-actions span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  background: var(--tx-soft);
  color: var(--tx-ink);
}

.tx-device-carousel {
  display: flex;
  gap: 0.4rem;
}

.tx-device-carousel span {
  flex: 1;
  height: 52px;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #e8e8e8, #f6f6f6);
}

.tx-device-carousel span:first-child {
  background: linear-gradient(135deg, #0ea5b7, #00a651);
  opacity: 0.85;
}

.tx-float-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 0.85rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: var(--tx-shadow);
  animation: tx-float 5s ease-in-out infinite;
}

.tx-float-card span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tx-muted);
  margin-bottom: 0.1rem;
}

.tx-float-nfc {
  top: 8%;
  left: 0;
  animation-delay: 0s;
}

.tx-float-menu {
  bottom: 12%;
  right: 0;
  animation-delay: 1.2s;
}

@keyframes tx-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.tx-hero-quick {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--tx-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
}

.tx-hero-quick-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tx-hero-quick-item:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.tx-hero-quick-item strong {
  display: block;
  font-size: 0.95rem;
}

.tx-hero-quick-item small {
  color: var(--tx-muted);
  font-size: 0.8rem;
}

.tx-hero-quick-featured {
  background: linear-gradient(135deg, rgba(14, 165, 183, 0.08), rgba(0, 166, 81, 0.06));
  border: 1px solid rgba(14, 165, 183, 0.2);
}

.tx-hero-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.tx-hero-quick-icon-nfc {
  background: linear-gradient(135deg, #111, #333);
}

.tx-hero-quick-icon-qr {
  background: linear-gradient(135deg, var(--tx-cyan), #0891a2);
}

.tx-hero-quick-icon-menu {
  background: linear-gradient(135deg, var(--tx-green), #059669);
}

.tx-section-tight {
  padding: 3rem 0;
}

.tx-problem-banner {
  display: grid;
  gap: 2rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.tx-problem-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.tx-problem-copy p {
  margin: 0;
  color: var(--tx-muted);
  max-width: 36rem;
}

.tx-problem-cards {
  display: grid;
  gap: 0.75rem;
}

.tx-problem-card {
  padding: 1.1rem 1.2rem;
  border-radius: 1rem;
  background: var(--tx-soft);
  border: 1px solid transparent;
}

.tx-problem-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.tx-problem-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--tx-muted);
}

.tx-problem-card-accent {
  background: var(--tx-black);
  color: #fff;
}

.tx-problem-card-accent p {
  color: rgba(255, 255, 255, 0.72);
}

.tx-product-showcase {
  display: grid;
  gap: 1.25rem;
}

.tx-product-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 1.35rem;
  border: 1px solid var(--tx-border);
  background: #fff;
  min-height: 100%;
  overflow: hidden;
}

.tx-product-tile-nfc {
  border-top: 4px solid var(--tx-black);
}

.tx-product-tile-menu {
  border-top: 4px solid var(--tx-green);
}

.tx-product-tile-qr {
  border-top: 4px solid var(--tx-cyan);
  background: linear-gradient(165deg, #0a1628 0%, #0f1115 55%, #111 100%);
  color: #fff;
  border-color: rgba(14, 165, 183, 0.35);
}

.tx-product-tile-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(14, 165, 183, 0.25);
  pointer-events: none;
}

.tx-product-tile-qr p,
.tx-product-tile-qr .tx-product-tile-list {
  color: rgba(255, 255, 255, 0.78);
}

.tx-product-tile-qr h3 {
  color: #fff;
}

.tx-product-tile-top h3 {
  margin: 0.5rem 0 0.65rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.tx-product-tile-top p {
  margin: 0;
  color: var(--tx-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tx-product-tile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tx-product-tile-list li {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--tx-soft);
}

.tx-product-tile-qr .tx-product-tile-list li {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.tx-product-tile .tx-product-actions {
  margin-top: auto;
  align-items: center;
}

.tx-link-arrow {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tx-cyan);
}

.tx-link-arrow-light {
  color: #9ce7f0;
}

.tx-flow {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tx-flow-intro h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.tx-flow-intro p {
  margin: 0;
  color: var(--tx-muted);
  max-width: 28rem;
}

.tx-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.tx-flow-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.1rem;
}

.tx-flow-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tx-black);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}

.tx-flow-steps h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.tx-flow-steps p {
  margin: 0;
  color: var(--tx-muted);
  font-size: 0.92rem;
}

.tx-module-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.5rem;
  background: var(--tx-soft);
  border-radius: 1.25rem;
  border: 1px dashed var(--tx-border);
}

.tx-module-cloud span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tx-border);
  color: var(--tx-ink);
}

.tx-section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
  text-align: left;
  margin-bottom: 1.75rem;
}

.tx-section-head-row h2 {
  margin-bottom: 0.35rem;
}

.tx-works-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(280px, 85vw);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.tx-works-scroll::-webkit-scrollbar {
  height: 6px;
}

.tx-works-scroll::-webkit-scrollbar-thumb {
  background: var(--tx-border);
  border-radius: 999px;
}

.tx-work-tile {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid var(--tx-border);
  border-radius: 1.2rem;
  min-height: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tx-work-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--tx-shadow);
  border-color: color-mix(in srgb, var(--work-color, var(--tx-cyan)) 40%, #fff);
}

.tx-work-visual {
  position: relative;
  height: 120px;
  background: var(--work-soft, var(--tx-soft));
  overflow: hidden;
}

.tx-work-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.92;
  transform: scale(1.02);
}

.tx-work-logo {
  position: absolute;
  left: 0.9rem;
  bottom: -18px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #fff;
}

.tx-work-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tx-work-body {
  padding: 1.6rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.tx-work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.tx-work-industry {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--work-color, var(--tx-muted));
}

.tx-work-tile h3,
.tx-work-card h2 {
  margin: 0.15rem 0 0;
  letter-spacing: -0.02em;
  font-size: 1.08rem;
}

.tx-work-tile p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--tx-muted);
  flex: 1;
}

.tx-work-open {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--work-color, var(--tx-cyan));
}

.tx-work-card-rich {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tx-work-card-rich .tx-work-visual {
  height: 150px;
}

.tx-work-card-rich .tx-work-body {
  padding: 1.75rem 1.25rem 1.35rem;
}

.tx-work-card-rich .tx-btn {
  margin-top: 0.85rem;
  align-self: flex-start;
}

.tx-benefit-grid-home {
  grid-template-columns: 1fr;
}

.tx-benefit-icon {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.25rem;
  align-items: start;
}

.tx-benefit-ico {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tx-cyan-soft);
  color: var(--tx-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.tx-benefit-icon h3 {
  margin: 0;
  align-self: end;
}

.tx-benefit-icon p {
  grid-column: 2;
}

.tx-industries {
  text-align: center;
  padding: 1.5rem 0;
}

.tx-industries h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.tx-industries-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tx-industries-tags span {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--tx-border);
}

.tx-section-cta {
  padding-bottom: 5rem;
}

.tx-cta-premium {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem;
  border-radius: 1.75rem;
  background: linear-gradient(145deg, #0a0a0a 0%, #152238 50%, #0a1628 100%);
}

.tx-cta-glow {
  position: absolute;
  inset: -50% auto auto 50%;
  width: 400px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(14, 165, 183, 0.35), transparent 70%);
  pointer-events: none;
}

.tx-cta-kicker {
  position: relative;
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-cyan);
}

.tx-cta-premium h2 {
  position: relative;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.tx-cta-premium p {
  position: relative;
}

.tx-cta-premium .tx-hero-ctas {
  position: relative;
  justify-content: center;
}

@media (min-width: 768px) {
  .tx-hero-home {
    padding: 4rem 0 2.5rem;
  }

  .tx-hero-home-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .tx-hero-home h1 {
    max-width: none;
  }

  .tx-hero-quick {
    grid-template-columns: repeat(3, 1fr);
  }

  .tx-problem-banner {
    grid-template-columns: 1fr 1fr;
    padding: 2.25rem 2rem;
  }

  .tx-problem-cards {
    grid-template-columns: 1fr;
  }

  .tx-product-showcase {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .tx-product-tile-featured {
    transform: scale(1.02);
    z-index: 1;
    box-shadow: var(--tx-shadow-lg);
  }

  .tx-flow {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .tx-flow-steps {
    grid-template-columns: 1fr;
  }

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

  .tx-works-scroll {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
}

@media (min-width: 960px) {
  .tx-container {
    width: min(1160px, calc(100% - 2.5rem));
  }

  .tx-benefit-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tx-works-scroll {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .tx-hero-stats {
    grid-template-columns: 1fr;
  }

  .tx-float-card {
    display: none;
  }

  .tx-hero-visual {
    min-height: 320px;
  }

  .tx-product-tile-featured {
    order: -1;
  }
}

/* ——— Hero + NFC scroll story (unified) ——— */
.tx-nfc-scroll-track.tx-hero-story {
  --p: 0;
  position: relative;
  height: 340vh;
  margin: 0;
}

.tx-hero-story .tx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tx-nfc-scroll-sticky {
  position: sticky;
  top: 64px;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0 1.5rem;
  overflow: hidden;
  z-index: 1;
}

.tx-hero-story-layout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.tx-hero-story-copy h1 {
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 0.75rem;
}

.tx-nfc-caption {
  margin: 0.85rem 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tx-cyan);
  letter-spacing: -0.01em;
  min-height: 1.25em;
  transition: opacity 0.2s ease;
}

.tx-hero-story .tx-nfc-progress {
  max-width: 180px;
  margin: 0;
}

.tx-hero-mobile-ctas {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tx-hero-desktop-only {
  display: none;
}

#hero-cta-mobile {
  padding-top: 1.5rem;
}

@media (max-width: 767px) {
  .tx-nfc-scroll-track.tx-hero-story {
    height: 280vh;
  }

  .tx-nfc-scroll-sticky {
    top: 60px;
    min-height: calc(100vh - 60px);
    padding: 0.75rem 0 1rem;
  }

  .tx-hero-story-layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tx-hero-story-copy {
    text-align: center;
  }

  .tx-hero-story-copy h1 {
    font-size: clamp(1.55rem, 7.5vw, 2rem);
    max-width: 16ch;
    margin-inline: auto;
  }

  .tx-nfc-caption {
    font-size: 0.8rem;
  }

  .tx-hero-story .tx-nfc-progress {
    margin-inline: auto;
  }

  .tx-nfc-stage {
    min-height: 380px;
    order: 2;
  }

  .tx-nfc-card-physical {
    width: min(300px, 86vw);
  }

  .tx-nfc-phone {
    width: min(250px, 72vw);
  }

  .tx-nfc-phone-screen {
    min-height: 400px;
  }

  .tx-nfc-phone-profile {
    min-height: 400px;
  }

  .tx-nfc-profile-hero {
    padding: 1.5rem 0.85rem 2rem;
  }

  .tx-nfc-bio {
    display: none;
  }

  .tx-nfc-wallets img {
    height: 32px;
  }

  .tx-nfc-scroll-hint {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
}

@media (min-width: 768px) {
  .tx-hero-desktop-only {
    display: block;
  }

  .tx-hero-desktop-only.tx-hero-ctas,
  .tx-kicker.tx-hero-desktop-only {
    display: flex;
  }

  .tx-hero-mobile-ctas {
    display: none;
  }

  #hero-cta-mobile {
    padding-top: 2rem;
  }

  .tx-hero-story-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
  }

  .tx-hero-story-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    max-width: none;
  }

  .tx-hero-story-copy .lead {
    font-size: 1.08rem;
    color: var(--tx-muted);
    max-width: 32rem;
    margin: 0 0 1.25rem;
  }

  .tx-nfc-scroll-sticky {
    top: 72px;
    min-height: calc(100vh - 72px);
    padding: 1.5rem 0 2rem;
  }

  .tx-nfc-stage {
    min-height: 520px;
  }
}

.tx-nfc-progress {
  margin-top: 1.25rem;
  height: 4px;
  border-radius: 999px;
  background: var(--tx-border);
  overflow: hidden;
}

.tx-nfc-progress-bar {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tx-cyan), var(--tx-green));
  transition: width 0.08s linear;
}

.tx-nfc-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.tx-nfc-stage-glow {
  position: absolute;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 183, 0.2), transparent 68%);
  transform: scale(calc(0.85 + var(--p) * 0.25));
  pointer-events: none;
}

.tx-nfc-waves {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  opacity: clamp(0, (var(--p) - 0.18) / 0.22, 1);
  pointer-events: none;
}

.tx-nfc-waves span {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(14, 165, 183, 0.45);
  border-radius: 50%;
  animation: tx-nfc-pulse 2.2s ease-out infinite;
}

.tx-nfc-waves span:nth-child(2) {
  animation-delay: 0.5s;
}

.tx-nfc-waves span:nth-child(3) {
  animation-delay: 1s;
}

@keyframes tx-nfc-pulse {
  0% {
    transform: scale(0.35);
    opacity: 0.85;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.tx-nfc-card-physical {
  position: absolute;
  width: min(360px, 90vw);
  aspect-ratio: 1.586 / 1;
  transform:
    translate3d(
      calc((0.5 - var(--p)) * -8%),
      calc(var(--p) * 42%),
      calc(var(--p) * 80px)
    )
    rotateY(calc(-18deg + var(--p) * 22deg))
    rotateX(calc(8deg - var(--p) * 12deg))
    scale(calc(1 - var(--p) * 0.52));
  opacity: calc(1 - clamp(0, (var(--p) - 0.78) / 0.2, 1));
  transform-style: preserve-3d;
  z-index: 3;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, calc(0.22 + var(--p) * 0.12)));
}

.tx-nfc-card-inner {
  position: relative;
  height: 100%;
  border-radius: 1.15rem;
  padding: 1.15rem 1.25rem 1rem;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(255, 255, 255, 0.1), transparent 50%),
    linear-gradient(155deg, #1a1a1a 0%, #0a0a0a 42%, #121212 78%, #050505 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}

.tx-nfc-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 48%,
    transparent 62%
  );
  pointer-events: none;
  z-index: 1;
}

.tx-nfc-card-edge {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
  z-index: 2;
}

.tx-nfc-card-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tx-nfc-card-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.95;
}

.tx-nfc-contactless {
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
}

.tx-nfc-card-brand {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.35rem 0 0.5rem;
}

.tx-nfc-card-wordmark {
  height: clamp(28px, 7vw, 36px);
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 0.45rem;
}

.tx-nfc-card-brand p {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

.tx-nfc-card-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem;
}

.tx-nfc-card-qr {
  position: relative;
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 0.55rem;
  padding: 5px;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.tx-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 0.25rem;
}

.tx-qr-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.tx-qr-logo img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.tx-nfc-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.tx-nfc-card-chip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 34px;
  height: 26px;
  padding: 3px;
  border-radius: 5px;
  background: linear-gradient(145deg, #d4af37 0%, #f0d78c 40%, #b8860b 100%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.3rem;
}

.tx-nfc-card-chip span {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 1px;
}

.tx-nfc-card-meta strong {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.tx-nfc-card-meta em {
  font-style: normal;
  font-size: 0.7rem;
  color: #9ce7f0;
  font-weight: 600;
}

.tx-nfc-phone {
  position: absolute;
  width: min(290px, 80vw);
  opacity: clamp(0, (var(--p) - 0.2) / 0.28, 1);
  transform:
    translateY(calc((1 - clamp(0, (var(--p) - 0.2) / 0.28, 1)) * 40px))
    scale(calc(0.88 + clamp(0, (var(--p) - 0.2) / 0.28, 1) * 0.12));
  z-index: 2;
  filter: drop-shadow(0 36px 70px rgba(0, 0, 0, 0.22));
}

.tx-nfc-phone-shell {
  background: linear-gradient(160deg, #2a2a2e 0%, #0f1115 40%, #000 100%);
  border-radius: 2.15rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.tx-nfc-phone-bezel {
  background: #000;
  border-radius: 1.8rem;
  overflow: hidden;
  position: relative;
}

.tx-nfc-phone-notch {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 8px;
  border-radius: 999px;
  background: #1a1a1a;
  z-index: 5;
}

.tx-nfc-phone-screen {
  border-radius: 1.7rem;
  overflow: hidden;
  background: #f4f4f5;
  min-height: 460px;
  position: relative;
}

.tx-nfc-phone-splash {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: linear-gradient(160deg, #0a0a0a, #111);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: calc(1 - clamp(0, (var(--p) - 0.42) / 0.18, 1));
  z-index: 4;
}

.tx-nfc-phone-splash img {
  width: 64px;
  margin-bottom: 0.35rem;
}

.tx-nfc-phone-splash small {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.12em;
}

.tx-nfc-phone-profile {
  opacity: clamp(0, (var(--p) - 0.48) / 0.32, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.48) / 0.32, 1)) * 24px));
  min-height: 460px;
}

.tx-nfc-profile-hero {
  background: #0a0a0a;
  padding: 1.85rem 1rem 2.4rem;
  text-align: center;
  color: #fff;
}

.tx-nfc-profile-brand {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

.tx-nfc-profile-brand-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tx-nfc-profile-card {
  margin: -1.35rem 0.7rem 0.7rem;
  background: #fff;
  border-radius: 1.1rem;
  padding: 1.15rem 0.95rem 1rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  z-index: 2;
}

.tx-nfc-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: -2.35rem auto 0.65rem;
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 3px solid #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.tx-nfc-profile-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: #111;
}

.tx-nfc-role {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  color: #6b6b6b;
  font-weight: 500;
}

.tx-nfc-quick {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.tx-nfc-quick-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f8ef;
  color: #06753c;
  box-shadow: 0 2px 8px rgba(0, 166, 81, 0.12);
}

.tx-nfc-cta-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.tx-nfc-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.tx-nfc-profile-links span {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #f4f5f7;
  color: #333;
  border: 1px solid #ebebeb;
}

.tx-nfc-bio {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: #7a7a7a;
}

.tx-nfc-wallets {
  margin-top: 0.9rem;
  opacity: clamp(0, (var(--p) - 0.68) / 0.25, 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.68) / 0.25, 1)) * 20px));
  text-align: center;
}

.tx-nfc-wallet-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-muted);
  margin-bottom: 0.45rem;
}

.tx-nfc-wallet-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tx-nfc-wallets img {
  height: 38px;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.tx-nfc-scroll-hint {
  text-align: center;
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--tx-muted);
  transition: opacity 0.3s ease;
  animation: tx-hint-bounce 2s ease-in-out infinite;
}

@keyframes tx-hint-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (min-width: 768px) {
  .tx-nfc-stage {
    min-height: 560px;
  }

  .tx-nfc-card-physical {
    width: min(380px, 42vw);
    transform:
      translate3d(
        calc((0.5 - var(--p)) * -12%),
        calc(var(--p) * 28%),
        calc(var(--p) * 100px)
      )
      rotateY(calc(-22deg + var(--p) * 28deg))
      rotateX(calc(6deg - var(--p) * 10deg))
      scale(calc(1 - var(--p) * 0.48));
  }
}

@media (prefers-reduced-motion: reduce) {
  .tx-nfc-scroll-track {
    height: auto;
  }

  .tx-nfc-scroll-sticky {
    position: relative;
    top: auto;
  }

  .tx-nfc-waves,
  .tx-nfc-scroll-hint {
    display: none;
  }

  .tx-nfc-card-physical {
    position: relative;
    opacity: 0;
    pointer-events: none;
  }

  .tx-nfc-phone {
    position: relative;
    opacity: 1;
    transform: none;
  }

  .tx-nfc-phone-splash {
    opacity: 0;
  }

  .tx-nfc-phone-profile,
  .tx-nfc-wallets {
    opacity: 1;
    transform: none;
  }
}
