:root {
  --bg: #0b1120;
  --bg-elevated: #141e33;
  --bg-card: rgba(30, 41, 59, 0.82);
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(56, 189, 248, 0.42);
  --primary: #38bdf8;
  --primary-dark: #0284c7;
  --green: #34d399;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 6%, rgba(56, 189, 248, 0.18), transparent 36%),
    radial-gradient(circle at 85% 12%, rgba(37, 99, 235, 0.16), transparent 34%),
    var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.container {
  width: min(var(--max-w), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 17, 32, 0.86);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

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

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

.lang-switcher {
  display: inline-flex;
  background: rgba(20, 30, 51, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--primary);
  color: #082f49;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.85rem 1.45rem;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.52rem 1rem;
  font-size: 0.86rem;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #062238;
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.28);
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.88);
  color: var(--text);
  border-color: var(--border);
}

/* Shared Card Banner (?d=...) */
.shared-wrap {
  max-width: 460px;
  margin: 2.5rem auto 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.wallet-card {
  border-radius: 26px;
  padding: 22px 20px;
  background: linear-gradient(135deg, #0284c7, #1d4ed8);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wallet-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  word-break: break-word;
}

.barcode-stage {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

#barcodeCanvas {
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.readable-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f172a;
  word-break: break-all;
  text-align: center;
}

/* Hero Section */
.hero {
  padding: 4rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.14);
  color: var(--primary);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.pill-green {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.3);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.3vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 58ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.1rem;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 1.2rem;
  color: var(--text);
}

.stat-item span {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.hero-phone-showcase {
  display: flex;
  justify-content: center;
}

.device-frame {
  background: #1e293b;
  padding: 11px;
  border-radius: 38px;
  border: 2px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.6);
  max-width: 310px;
  width: 100%;
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

/* Sections */
section {
  padding: 3.8rem 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.6rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

/* Screenshots Grid */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  align-items: start;
}

.shot-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.shot-card .device-frame {
  max-width: 255px;
}

.shot-card h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.12rem;
}

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

/* Supported Brands Strip */
.brands-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
}

.brands-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.brand-chip img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
}

.feature-box h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
}

.feature-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

th, td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  font-weight: 800;
  color: var(--text);
  background: rgba(15, 23, 42, 0.55);
}

tr:last-child td {
  border-bottom: 0;
}

.highlight-col {
  background: rgba(56, 189, 248, 0.08);
}

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

.muted-cell {
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Bottom CTA */
.cta-banner {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.24), rgba(30, 41, 59, 0.92));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-banner img {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.cta-banner p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
  max-width: 54ch;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-links {
  display: flex;
  gap: 1.4rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .hero-grid,
  .screenshots-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 2.5rem;
  }
}
