/* Timo Beats landing — aligned to design mockup */
:root {
  --timo-bg: #ffffff;
  --timo-ink: #111827;
  --timo-muted: #6b7280;
  --timo-blue: #0052ff;
  --timo-blue-dark: #0041cc;
  --timo-border: #e5e7eb;
  --timo-card-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 12px rgba(15, 23, 42, 0.04);
  --timo-page-x: clamp(14px, 2.8vw, 36px);
  --timo-section-gap: 14px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body.landing-page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--timo-bg);
  color: var(--timo-ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
  width: 100%;
}

.landing-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  min-height: 100dvh;
  background: var(--timo-bg);
  box-shadow: none;
  border-radius: 0;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(6px, env(safe-area-inset-top)) var(--timo-page-x) 8px;
}

.landing-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.landing-brand h1 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 45%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-brand p {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
}

.landing-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0066ff 0%, #0052ff 50%, #4f46e5 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(0, 82, 255, 0.32);
  white-space: nowrap;
}

.landing-download {
  margin: 0 var(--timo-page-x) 10px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.06);
}

.landing-download-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-download-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-download-text {
  flex: 1;
  min-width: 0;
}

.landing-download-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.landing-download-text span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.35;
  color: var(--timo-muted);
}

.landing-download-btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: #0052ff;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.landing-download-close {
  border: 0;
  background: transparent;
  color: #9ca3af;
  padding: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.landing-main {
  padding: 0 var(--timo-page-x) max(18px, env(safe-area-inset-bottom));
  width: 100%;
  max-width: none;
}

.landing-section {
  margin-bottom: var(--timo-section-gap);
}

.landing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.landing-section-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.landing-section-head a {
  font-size: 13px;
  font-weight: 600;
  color: #0052ff;
  text-decoration: none;
}

.landing-section-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-live-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #16a34a;
  background: #ecfdf5;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Market Overview — full-width 4-up grid, mock-like proportions */
.landing-section--markets .landing-section-head {
  margin-bottom: 10px;
}

.landing-markets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 1.4vw, 10px);
  width: 100%;
}

.landing-market-card {
  min-width: 0;
  min-height: clamp(118px, 31vw, 136px);
  padding: clamp(7px, 1.8vw, 10px) clamp(5px, 1.4vw, 8px) clamp(8px, 2.2vw, 11px);
  border-radius: 14px;
  border: 1px solid #eef2f7;
  background: #fff;
  box-shadow: var(--timo-card-shadow);
  display: flex;
  flex-direction: column;
}

.landing-market-top {
  display: flex;
  align-items: flex-start;
  gap: clamp(4px, 1.2vw, 7px);
}

.landing-market-icon {
  --coin-accent: #64748b;
  width: clamp(24px, 6.8vw, 28px);
  height: clamp(24px, 6.8vw, 28px);
  flex-shrink: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--coin-accent) 14%, #ffffff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--coin-accent) 16%, transparent);
}

.landing-market-icon img {
  width: clamp(14px, 4vw, 18px);
  height: clamp(14px, 4vw, 18px);
  border-radius: 999px;
  display: block;
}

.landing-market-meta {
  min-width: 0;
  flex: 1;
  padding-top: 1px;
}

.landing-market-meta .name {
  font-size: clamp(10px, 2.75vw, 12px);
  font-weight: 700;
  line-height: 1.15;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-market-meta .pair {
  margin-top: 2px;
  font-size: clamp(8px, 2.15vw, 10px);
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-market-body {
  margin-top: clamp(6px, 1.8vw, 9px);
  flex: 0 0 auto;
}

.landing-market-chart {
  margin-top: clamp(8px, 2.2vw, 11px);
  margin-bottom: 0;
  height: clamp(30px, 8vw, 36px);
  width: 100%;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
}

.landing-market-price {
  font-size: clamp(10px, 2.55vw, 13px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.landing-market-price--long {
  font-size: clamp(8.5px, 2.15vw, 11px);
  letter-spacing: -0.05em;
}

.landing-market-chg {
  margin-top: 4px;
  font-size: clamp(9px, 2.35vw, 11px);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: -0.02em;
  max-width: 100%;
}

.landing-market-chg span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-market-chg svg {
  flex-shrink: 0;
  width: clamp(8px, 2.2vw, 10px);
  height: clamp(8px, 2.2vw, 10px);
}

.landing-market-chg.up {
  color: #16a34a;
}

.landing-market-chg.down {
  color: #ef4444;
}

@media (max-width: 359px) {
  .landing-markets {
    gap: 5px;
  }

  .landing-market-card {
    min-height: 128px;
    padding: 7px 5px 6px;
  }
}

.landing-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* P2P hero — mock banner (“Trade Crypto with Confidence”) */
.landing-hero {
  position: relative;
  padding: 0;
  margin-bottom: 14px;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.landing-hero-banner {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 42.5%; /* ~13% shorter than mock — slight compact */
  border-radius: 18px;
  overflow: hidden;
  background-color: #0a1838;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
  isolation: isolate;
}

.landing-hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
}

.landing-hero-cta-hit {
  position: absolute;
  z-index: 2;
  left: 4.2%;
  bottom: 17.5%;
  width: 24%;
  height: 15%;
  min-height: 34px;
  max-width: 140px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}

.landing-hero-cta-hit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.landing-hero-cta-hit:hover {
  background: rgba(255, 255, 255, 0.08);
}

.landing-services-title {
  margin: 0 0 clamp(8px, 2.2vw, 11px);
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

/* Mock: 3 columns × 2 rows */
.landing-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 1.8vw, 10px);
  width: 100%;
}

.landing-svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: clamp(104px, 28vw, 126px);
  padding: clamp(8px, 2.2vw, 11px) clamp(7px, 2vw, 10px) clamp(28px, 7.5vw, 34px);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--timo-card-shadow);
  transition: transform 0.12s ease;
}

.landing-svc:active {
  transform: scale(0.98);
}

.landing-svc-head {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.4vw, 7px);
  margin-bottom: clamp(4px, 1.2vw, 6px);
}

.landing-svc-icon {
  width: clamp(20px, 5.5vw, 26px);
  height: clamp(20px, 5.5vw, 26px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-svc-icon svg {
  width: clamp(11px, 3vw, 14px);
  height: clamp(11px, 3vw, 14px);
}

.landing-svc-title {
  font-size: clamp(10px, 2.85vw, 12px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  min-width: 0;
  color: #111827;
  padding-top: 0;
}

.landing-svc-desc {
  margin: 0;
  font-size: clamp(8px, 2.2vw, 10px);
  line-height: 1.32;
  font-weight: 500;
  color: #64748b;
  padding-right: clamp(2px, 0.5vw, 4px);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.landing-svc-go {
  position: absolute;
  right: clamp(6px, 1.6vw, 8px);
  bottom: clamp(6px, 1.6vw, 8px);
  width: clamp(22px, 6vw, 26px);
  height: clamp(22px, 6vw, 26px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-svc-go svg {
  width: clamp(10px, 2.8vw, 12px);
  height: clamp(10px, 2.8vw, 12px);
}

.landing-svc--otc {
  background: linear-gradient(160deg, #eef5ff 0%, #ffffff 55%);
  border-color: #e8f0fe;
}
.landing-svc--otc .landing-svc-icon {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}
.landing-svc--otc .landing-svc-go {
  background: #dbeafe;
  color: #1d4ed8;
}

.landing-svc--donation {
  background: linear-gradient(160deg, #fff1f3 0%, #ffffff 55%);
  border-color: #ffe4e8;
}
.landing-svc--donation .landing-svc-icon {
  background: linear-gradient(145deg, #fb7185 0%, #e11d48 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.2);
}
.landing-svc--donation .landing-svc-go {
  background: #ffe4e6;
  color: #be123c;
}

.landing-svc--remitly {
  background: linear-gradient(160deg, #ecfdf5 0%, #ffffff 55%);
  border-color: #d1fae5;
}
.landing-svc--remitly .landing-svc-icon {
  background: linear-gradient(145deg, #34d399 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}
.landing-svc--remitly .landing-svc-go {
  background: #d1fae5;
  color: #047857;
}

.landing-svc--gigs {
  background: linear-gradient(160deg, #f5f3ff 0%, #ffffff 55%);
  border-color: #ede9fe;
}
.landing-svc--gigs .landing-svc-icon {
  background: linear-gradient(145deg, #a78bfa 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.22);
}
.landing-svc--gigs .landing-svc-go {
  background: #ede9fe;
  color: #6d28d9;
}

.landing-svc--yield {
  background: linear-gradient(160deg, #fffbeb 0%, #ffffff 55%);
  border-color: #ffedd5;
}
.landing-svc--yield .landing-svc-icon {
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.22);
}
.landing-svc--yield .landing-svc-go {
  background: #ffedd5;
  color: #c2410c;
}

.landing-svc--p2p {
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 55%);
  border-color: #dbeafe;
}
.landing-svc--p2p .landing-svc-icon {
  background: linear-gradient(145deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}
.landing-svc--p2p .landing-svc-go {
  background: #dbeafe;
  color: #1d4ed8;
}

/* Stats row (mock: icon left, values right, 3 columns) */
.landing-stats {
  display: flex;
  align-items: stretch;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  background: #fafbfc;
  box-shadow: var(--timo-card-shadow);
  padding: 12px 6px;
}

.landing-stat-col {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  min-width: 0;
}

.landing-stat-col + .landing-stat-col {
  border-left: 1px solid #f1f5f9;
}

.landing-stat-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-stat-icon.users {
  background: #eff6ff;
  color: #2563eb;
}

.landing-stat-icon.trust {
  background: #ecfdf5;
  color: #16a34a;
}

.landing-stat-icon.volume {
  background: #f5f3ff;
  color: #7c3aed;
}

.landing-stat-body {
  min-width: 0;
}

.landing-stat-kicker {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.1;
}

.landing-stat-value {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #111827;
}

.landing-stat-label {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  color: #6b7280;
}

/* Security banner */
.landing-security {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #f5f9ff 0%, #e8f2ff 100%);
  box-shadow: var(--timo-card-shadow);
}

.landing-security-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.landing-security-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.2);
  filter: blur(8px);
}

.landing-security-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.landing-security-text {
  flex: 1;
  min-width: 0;
}

.landing-security-text h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  color: #1e40af;
}

.landing-security-text p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.35;
  color: #64748b;
}

.landing-security-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
