:root {
  color-scheme: light;
  --bg: #f6f8f8;
  --bg-strong: #e9f4f1;
  --ink: #14211f;
  --muted: #5d6965;
  --panel: #ffffff;
  --panel-soft: #eef5f3;
  --line: #d7dfdc;
  --teal: #0b786f;
  --teal-dark: #075a54;
  --blue: #315fbe;
  --coral: #d9503f;
  --gold: #c8911f;
  --green: #198754;
  --shadow: 0 18px 48px rgba(20, 33, 31, 0.12);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(215, 223, 220, 0.86);
  background: rgba(246, 248, 248, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-logo {
  width: 156px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.section.tight {
  padding-top: 42px;
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72svh;
  margin: 0 auto;
  padding: 82px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
}

.hero.home {
  min-height: 62svh;
  grid-template-columns: minmax(0, 1fr);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.page-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lede {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: #ffffff;
  font-weight: 760;
}

.button:hover {
  background: var(--teal-dark);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
  color: var(--teal-dark);
}

.button.secondary:hover {
  background: var(--panel-soft);
  color: var(--teal-dark);
}

.currency-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-strong);
}

.currency-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 120, 111, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 120, 111, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.72;
}

.currency-hero .hero {
  position: relative;
  min-height: auto;
  padding: 38px 0 28px;
}

.currency-hero + .section {
  padding-top: 36px;
}

.currency-hero h1 {
  max-width: 640px;
  margin-bottom: 14px;
  font-size: clamp(3rem, 6.4vw, 5rem);
  line-height: 0.94;
}

.currency-hero .lede {
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.app-icon-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.app-icon {
  width: clamp(62px, 8vw, 82px);
  border-radius: 22%;
  box-shadow: 0 20px 40px rgba(8, 58, 53, 0.22);
}

.app-name {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 820;
}

.app-kicker {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 680;
}

.rate-board {
  justify-self: center;
  width: min(100%, 390px);
  padding: 22px;
  border: 1px solid rgba(11, 120, 111, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.rate-board img {
  width: 86px;
  margin-bottom: 28px;
  border-radius: 22%;
}

.rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.rate-row:first-of-type {
  border-top: 0;
}

.rate-label {
  color: var(--muted);
  font-weight: 700;
}

.rate-value {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 840;
  font-variant-numeric: tabular-nums;
}

.rate-board .rate-value {
  font-size: clamp(1.32rem, 2.3vw, 1.72rem);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.status-cell {
  min-height: 118px;
  padding: 20px;
  background: var(--panel);
}

.status-cell strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.55rem;
  line-height: 1;
}

.status-cell span {
  color: var(--muted);
  font-weight: 640;
}

.product-showcase {
  display: block;
}

.portfolio-intro {
  max-width: 780px;
  margin-bottom: 30px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.featured-app {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 100%;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 120, 111, 0.12), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  color: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.featured-app:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 120, 111, 0.35);
  color: inherit;
  box-shadow: 0 22px 54px rgba(20, 33, 31, 0.16);
}

.featured-app:focus-visible {
  outline: 3px solid rgba(11, 120, 111, 0.32);
  outline-offset: 4px;
}

.featured-app.glassjack-app {
  background:
    linear-gradient(135deg, rgba(217, 80, 63, 0.12), transparent 42%),
    var(--panel);
}

.featured-app img {
  width: 112px;
  border-radius: 22%;
  box-shadow: 0 16px 34px rgba(20, 33, 31, 0.18);
}

.featured-app h3 {
  margin: 10px 0 8px;
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
  line-height: 1.04;
}

.mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
}

.mini-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card.accent-teal {
  border-top: 4px solid var(--teal);
}

.card.accent-blue {
  border-top: 4px solid var(--blue);
}

.card.accent-coral {
  border-top: 4px solid var(--coral);
}

.card.accent-gold {
  border-top: 4px solid var(--gold);
}

.card p,
.prose p,
.prose li {
  color: var(--muted);
}

.app-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.app-card img {
  width: 88px;
  border-radius: 22%;
  box-shadow: 0 12px 28px rgba(20, 33, 31, 0.16);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.band {
  background: #17211f;
  color: #ffffff;
}

.band .section {
  padding: 64px 0;
}

.band p,
.band li {
  color: rgba(255, 255, 255, 0.74);
}

.band a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.use-cases article {
  min-height: 178px;
  padding: 24px;
  background: var(--panel);
}

.use-case-number {
  display: block;
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 840;
}

.reviewer-note {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 56px;
  padding: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.reviewer-note span {
  font-weight: 760;
}

.reviewer-note a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose {
  max-width: 830px;
}

.prose h2 {
  margin-top: 44px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.prose h3 {
  margin-top: 28px;
}

.prose a {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose ul {
  padding-left: 22px;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.meta-table th,
.meta-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.meta-table th {
  width: 230px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meta-table tr:last-child th,
.meta-table tr:last-child td {
  border-bottom: 0;
}

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--panel-soft);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 820px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 2px;
    gap: 10px 16px;
    white-space: normal;
  }

  .brand-logo {
    width: 148px;
  }

  .hero,
  .hero.home {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 54px 0 38px;
  }

  .currency-hero {
    background: var(--bg-strong);
  }

  .currency-hero::before {
    background-size: 34px 34px;
  }

  .rate-board {
    display: none;
  }

  .status-strip,
  .grid,
  .grid.two,
  .portfolio-grid,
  .product-showcase,
  .use-cases {
    grid-template-columns: 1fr;
  }

  .featured-app {
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
  }

  .featured-app img {
    width: 88px;
  }

  .app-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .app-card .button {
    grid-column: 1 / -1;
  }

  .app-card img {
    width: 72px;
  }

  .meta-table,
  .meta-table tbody,
  .meta-table tr,
  .meta-table th,
  .meta-table td {
    display: block;
    width: 100%;
  }

  .meta-table th {
    padding-bottom: 6px;
  }

  .meta-table td {
    padding-top: 0;
  }

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