:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-soft: #0d1728;
  --surface: rgba(11, 20, 36, 0.82);
  --surface-strong: rgba(15, 26, 45, 0.94);
  --surface-muted: rgba(255, 255, 255, 0.04);
  --border: rgba(124, 154, 191, 0.18);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7fb;
  --muted: #9fb0c7;
  --accent: #ffcc48;
  --brand: #4ee0c1;
  --brand-strong: #22b8b2;
  --danger: #ff8d8d;
  --success: #7ef0b8;
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.24);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 184, 178, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 204, 72, 0.16), transparent 24%),
    linear-gradient(180deg, #07101d 0%, #091322 32%, #060c16 100%);
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.05));
  z-index: -1;
}

body::after {
  background: linear-gradient(180deg, rgba(8, 17, 31, 0) 0%, rgba(8, 17, 31, 0.5) 74%, rgba(8, 17, 31, 0.95) 100%);
}

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

a:hover {
  color: var(--brand);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
pre {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -52px;
  z-index: 100;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.site-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  margin-bottom: 24px;
}

.nav-bar,
.mobile-nav,
.hero-section,
.page-panel,
.hero-card,
.wallet-card,
.resource-card,
.message-card,
.team-card,
.site-footer,
.metric-card,
.step-card,
.establishment-card,
.empty-state,
.message-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-radius: 999px;
  background: rgba(9, 16, 29, 0.8);
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 204, 72, 0.1), rgba(78, 224, 193, 0.04));
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
}

.nav-links,
.nav-actions,
.footer-list,
.feature-list,
.compact-list,
.badge-row,
.social-row,
.faq-stack,
.timeline-list,
.team-grid {
  display: flex;
  gap: 12px;
}

.nav-links {
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a,
.mobile-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a.is-active,
.mobile-nav a.is-active,
.nav-links a:hover,
.mobile-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-actions {
  align-items: center;
}

.menu-toggle-btn {
  display: none;
  width: 48px;
  height: 48px;
  min-height: auto;
  padding: 0;
}

.mobile-nav {
  display: none;
  margin-top: 10px;
  flex-direction: column;
  padding: 18px;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav[hidden] {
  display: none !important;
}

.page-shell,
.page-grid,
.hero-grid,
.card-grid,
.steps-grid,
.metric-strip,
.benefits-grid,
.footer-grid,
.form-two-columns,
.filter-bar {
  display: grid;
  gap: 20px;
}

.page-shell {
  gap: 20px;
}

.hero-grid,
.page-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.88fr);
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.directory-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}

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

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

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

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

.hero-section,
.page-panel,
.hero-card,
.wallet-card,
.resource-card,
.message-card,
.team-card,
.site-footer,
.empty-state,
.message-box {
  padding: 24px;
}

.hero-section {
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(255, 204, 72, 0.14), transparent 32%),
    radial-gradient(circle at top right, rgba(78, 224, 193, 0.14), transparent 32%);
  pointer-events: none;
}

.compact-hero {
  padding-block: 28px;
}

.hero-copy,
.hero-card,
.wallet-card,
.resource-card,
.team-card,
.establishment-card,
.step-card {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.card-kicker,
.pill,
.timeline-period,
.role-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill {
  width: fit-content;
  padding-inline: 0.65rem;
}

.headline,
.section-heading,
.hero-card-title,
.wallet-card h2,
.resource-card h3,
.team-card h3,
.establishment-card h3,
.step-card h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.headline {
  margin: 14px 0;
  font-size: clamp(1.8rem, 3.2vw, 2.85rem);
  line-height: 1.03;
}

.compact-hero .headline {
  font-size: clamp(1.55rem, 2.45vw, 2.2rem);
}

.lead,
.muted-text,
.hero-card p,
.page-panel p,
.resource-card p,
.wallet-card p,
.team-card p,
.establishment-card p {
  color: var(--muted);
}

.hero-actions,
.action-row,
.social-row,
.badge-row,
.meta-row,
.section-heading-row,
.message-card-header,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust-row {
  margin: 14px 0 18px;
  max-width: 90%;
  row-gap: 10px;
}

.trust-row span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.15;
}

.section-heading-row {
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-heading {
  margin: 10px 0 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.hero-card-title {
  margin: 14px 0;
  font-size: 1.55rem;
  line-height: 1.12;
}

.metric-card,
.step-card,
.benefit-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.page-panel,
.hero-card,
.wallet-card,
.resource-card,
.message-card,
.team-card,
.establishment-card,
.metric-card,
.step-card {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.page-panel:hover,
.hero-card:hover,
.wallet-card:hover,
.resource-card:hover,
.message-card:hover,
.team-card:hover,
.establishment-card:hover,
.metric-card:hover,
.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.metric-card span {
  color: var(--muted);
}

.standalone-strip {
  margin: 0;
}

.step-card {
  min-height: 100%;
}

.step-index {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
}

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

.benefit-card {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
}

.benefit-card::before {
  content: "✦";
  margin-right: 12px;
  color: var(--accent);
  font-size: 1.1rem;
}

.btn,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.copy-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn:disabled,
.copy-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.btn-cta {
  border: 0;
  color: #031320;
  background: linear-gradient(135deg, var(--accent) 0%, #f6b029 36%, var(--brand) 100%);
  box-shadow: 0 18px 34px rgba(78, 224, 193, 0.18);
}

.btn-cta:hover {
  color: #031320;
}

.btn-secondary,
.copy-button {
  background: rgba(255, 255, 255, 0.08);
}

.btn-full {
  width: 100%;
}

.inline-link {
  color: var(--brand);
  font-weight: 600;
}

.feature-list,
.footer-list,
.compact-list {
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.footer-list li {
  position: relative;
  padding-left: 20px;
}

.feature-list li::before,
.footer-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.compact-list li {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.compact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.notice-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.field,
.choice-group {
  display: grid;
  gap: 8px;
}

.stack-form,
.form-panel,
.faq-panel {
  display: grid;
  gap: 18px;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-panel,
.faq-panel {
  align-content: start;
}

.field span,
.choice-group legend {
  color: var(--text);
  font-weight: 600;
}

.field-inline {
  align-content: start;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.88rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2.9rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color-scheme: dark;
}

select option,
select optgroup {
  color: var(--text);
  background: #0d1728;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(78, 224, 193, 0.54);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(78, 224, 193, 0.12);
}

textarea {
  resize: vertical;
}

.choice-group {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.choice-group legend {
  padding: 0 6px;
}

.choice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.choice-item input {
  width: auto;
  accent-color: var(--accent);
}

.message-box {
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.message-box.is-success {
  border-color: rgba(126, 240, 184, 0.25);
  background: rgba(126, 240, 184, 0.12);
  color: var(--success);
}

.message-box.is-error {
  border-color: rgba(255, 141, 141, 0.25);
  background: rgba(255, 141, 141, 0.12);
  color: var(--danger);
}

.tabs {
  display: grid;
  gap: 20px;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-trigger {
  min-height: auto;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.tab-trigger.is-active {
  color: var(--text);
  border-color: rgba(255, 204, 72, 0.28);
  background: rgba(255, 204, 72, 0.12);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.message-card-header {
  justify-content: space-between;
  margin-bottom: 14px;
}

.message-content {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font-family: inherit;
  line-height: 1.7;
}

.resource-card,
.wallet-card,
.team-card,
.establishment-card {
  display: grid;
  gap: 16px;
  min-height: 100%;
}

.establishment-card {
  overflow: hidden;
}

.resource-preview,
.support-image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  object-fit: cover;
}

.simple-card {
  justify-content: start;
}

.resource-body,
.establishment-body {
  display: grid;
  gap: 10px;
}

.establishment-body {
  padding: 0 18px 18px;
  align-content: start;
}

.resource-body .muted-text {
  margin-bottom: 0;
}

.establishment-logo-wrap {
  min-height: 140px;
  display: grid;
  place-items: center;
  margin: 18px 18px 0;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
}

.establishment-logo {
  max-height: 110px;
  object-fit: contain;
}

.meta-row,
.badge-row {
  color: var(--muted);
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.payment-badge.is-lightning {
  background: rgba(78, 224, 193, 0.14);
  color: var(--brand);
}

.payment-badge.is-onchain {
  background: rgba(255, 204, 72, 0.14);
  color: var(--accent);
}

.payment-badge.is-contactless {
  background: rgba(119, 176, 255, 0.14);
  color: #8fc4ff;
}

.map-panel {
  display: grid;
  gap: 18px;
}

.directory-map-panel .map-shell,
.directory-map-panel .map-frame {
  min-height: 520px;
}

.map-shell {
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.faq-stack {
  flex-direction: column;
}

.faq-stack details {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-stack summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-stack p {
  margin: 12px 0 0;
}

.timeline-list,
.team-grid {
  display: grid;
}

.timeline-list {
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
}

.timeline-item h3 {
  margin-bottom: 6px;
}

.timeline-period {
  justify-content: center;
  text-align: center;
  min-height: 76px;
  width: 100%;
  padding-inline: 1rem;
  line-height: 1.2;
}

.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.team-card {
  padding: 24px;
  align-content: start;
  grid-template-rows: auto auto auto 1fr;
}

.avatar {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 204, 72, 0.3), rgba(78, 224, 193, 0.25));
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.role-label {
  background: rgba(78, 224, 193, 0.1);
  color: var(--brand);
  width: fit-content;
}

.filter-bar {
  margin-bottom: 20px;
}

.empty-state {
  display: grid;
  gap: 12px;
  place-items: start;
}

.empty-state[hidden] {
  display: none;
}

.site-footer {
  margin-top: 20px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.directory-hero .hero-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
}

.footer-card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 12px;
}

.social-row a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.95rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .menu-toggle-btn {
    display: inline-flex;
  }

  .hero-grid,
  .page-grid,
  .footer-grid,
  .steps-grid,
  .benefits-grid,
  .metric-strip,
  .form-two-columns,
  .cta-band,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding-top: 16px;
  }

  .site-header {
    top: 8px;
  }

  .nav-bar {
    padding: 14px 16px;
  }

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

  .brand-copy small {
    display: none;
  }

  .hero-section,
  .page-panel,
  .hero-card,
  .wallet-card,
  .resource-card,
  .message-card,
  .site-footer,
  .empty-state,
  .message-box {
    padding: 20px;
  }

  .headline {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .directory-map-panel .map-shell,
  .directory-map-panel .map-frame {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .brand-copy {
    display: none;
  }

  .hero-actions .btn,
  .action-row .btn,
  .mobile-nav .btn,
  .filter-bar .field,
  .btn {
    width: 100%;
  }

  .menu-toggle-btn {
    width: 48px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .message-card-header {
    align-items: flex-start;
  }
}
