﻿.page--landing {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

.landing-hero {
  position: relative;
  min-height: 32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-hero__inner {
  width: 100%;
  padding: clamp(6rem, 14vw, 8.5rem) 0 clamp(5rem, 10vw, 6.75rem);
}

.landing-hero__copy {
  width: min(100%, 68rem);
  margin: 0 auto;
}

.landing-hero h1 {
  margin: 0 auto;
  display: inline-grid;
  grid-template-columns: 1fr;
  justify-items: start;
  row-gap: 0.02em;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 600;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
}

.landing-hero h1 > span {
  display: block;
  white-space: nowrap;
}

.landing-hero h1 > .landing-hero__lead {
  color: var(--text);
  font-style: normal;
}

.landing-hero h1 > span:last-child {
  color: var(--gold);
  font-style: normal;
  margin-left: 6.42em;
}

.landing-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 1200px);
  margin: -3rem auto 0;
  padding-bottom: 3rem;
}

.landing-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.landing-kpi {
  min-height: 7.6rem;
  padding: 1.3rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-kpi__eyebrow,
.landing-kpi__head > span:first-child,
.landing-kpi__state,
.landing-search-history__label,
.landing-section-subtitle,
.landing-trades-table thead th,
.landing-trade-item__copy small,
.landing-trade-city small,
.landing-trade-price small,
.landing-trade-profit small,
.empty-row {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.landing-kpi__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
}

.landing-kpi__head > span:first-child,
.landing-kpi__eyebrow {
  color: var(--text-dim);
}

.landing-kpi__value {
  color: var(--gold);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.landing-kpi--status .landing-kpi__value {
  color: var(--green);
}

.landing-kpi__value-row {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
}

.landing-status__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(153, 144, 124, 0.5);
  flex: 0 0 auto;
}

.landing-status__dot.is-online {
  background: var(--green);
  box-shadow: 0 0 10px rgba(78, 222, 163, 0.8);
}

.landing-status__dot.is-warm {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(242, 202, 80, 0.58);
}

.landing-status__dot.is-offline {
  background: rgba(153, 144, 124, 0.76);
}

.landing-kpi--access {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.14), rgba(60, 47, 0, 0.18));
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.landing-kpi--access:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.18), rgba(60, 47, 0, 0.22));
  border-color: rgba(212, 175, 55, 0.34);
}

.landing-kpi__state,
.landing-kpi__icon {
  color: var(--gold);
}

.landing-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.landing-kpi--access .landing-kpi__icon {
  width: 1.7rem;
  height: 1.7rem;
}

.landing-kpi--access p {
  margin: 0;
  max-width: 14rem;
  color: rgba(229, 226, 227, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-search-card,
.landing-trades-card {
  position: relative;
  z-index: 1;
  padding: 1.45rem;
}

.landing-search-card {
  position: relative;
  z-index: 3;
  overflow: visible;
  margin-bottom: 1.75rem;
}

.landing-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4rem;
  padding: 0 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(14, 14, 15, 0.55);
  border: 0.5px solid rgba(77, 70, 53, 0.12);
}

.landing-search-input-wrap:focus-within {
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow: inset 0 -1px 0 rgba(242, 202, 80, 0.48);
}

.landing-search-input__icon {
  color: rgba(242, 202, 80, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.94rem;
  height: 1.94rem;
  flex: 0 0 auto;
}

.landing-section-actions .icon-button .icon-svg {
  width: 1.62rem;
  height: 1.62rem;
}

#landing-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 600;
}

#landing-search-input::placeholder {
  color: rgba(208, 197, 175, 0.32);
}

.landing-search-chip__icon,
.landing-trade-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 0.55rem;
  background: rgba(14, 14, 15, 0.72);
  border: 0.5px solid rgba(77, 70, 53, 0.32);
}

.landing-search-chip__icon img,
.landing-trade-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-search-history {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.landing-search-history__label {
  color: rgba(208, 197, 175, 0.7);
  flex: 0 0 auto;
}

.landing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.7rem;
}

.landing-search-history .landing-chip-row {
  flex: 1 1 20rem;
  margin-top: 0;
}

.landing-search-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.4rem;
  max-width: 15rem;
  padding: 0.35rem 0.75rem 0.35rem 0.45rem;
  border-radius: 999px;
  border: 0.5px solid rgba(212, 175, 55, 0.28);
  background: rgba(28, 27, 28, 0.64);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.landing-search-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 202, 80, 0.48);
  background: rgba(42, 42, 43, 0.7);
}

.landing-search-chip__icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
}

.landing-search-chip__copy {
  min-width: 0;
}

.landing-search-chip__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.landing-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
}

.landing-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-section-title__icon {
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
}

.landing-section-title h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.landing-section-subtitle {
  display: block;
  margin-top: 0.18rem;
  color: rgba(208, 197, 175, 0.58);
}

.landing-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.landing-trades-table-wrap {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.landing-trades-table {
  width: 100%;
  border-collapse: collapse;
}

.landing-trades-table thead th {
  padding: 0.95rem 1rem;
  text-align: left;
  color: rgba(208, 197, 175, 0.48);
  border-top: 0.5px solid rgba(77, 70, 53, 0.24);
}

.landing-trades-table thead th:nth-child(4),
.landing-trades-table thead th:nth-child(5),
.landing-trades-table tbody td:nth-child(4),
.landing-trades-table tbody td:nth-child(5) {
  text-align: right;
}

.landing-trade-row {
  transition: background-color 180ms ease;
}

.landing-trade-row:hover {
  background: rgba(53, 52, 54, 0.22);
}

.landing-trades-table tbody td {
  padding: 1rem;
  border-top: 0.5px solid rgba(77, 70, 53, 0.16);
  vertical-align: middle;
}

.landing-trade-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.landing-trade-item__icon {
  width: 2.65rem;
  height: 2.65rem;
}

.landing-trade-item__copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.landing-trade-item__copy strong,
.landing-trade-city strong,
.landing-trade-price strong,
.landing-trade-profit strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.landing-trade-item__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-trade-item__copy small,
.landing-trade-city small,
.landing-trade-price small,
.landing-trade-profit small {
  display: block;
  margin-top: 0.2rem;
  color: rgba(208, 197, 175, 0.44);
}

.landing-trade-city strong,
.landing-trade-price strong {
  font-variant-numeric: tabular-nums;
}

.landing-trade-profit {
  color: var(--green);
}

.landing-trade-profit.is-negative {
  color: #ffb4ab;
}

.landing-trade-profit small {
  color: inherit;
}

.landing-trade-row--locked .landing-trade-profit small {
  color: rgba(208, 197, 175, 0.44);
}

.landing-trade-row--locked .landing-trade-item,
.landing-trade-muted {
  color: rgba(208, 197, 175, 0.4);
}

.landing-trade-locked {
  cursor: pointer;
}

.empty-row {
  padding: 1.4rem 1rem !important;
  color: rgba(208, 197, 175, 0.54);
  text-align: center !important;
}

@media (max-width: 1100px) {
  .landing-shell {
    width: min(100%, 1000px);
  }

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

@media (max-width: 820px) {
  .page--landing {
    padding-top: 1rem;
  }

  .landing-hero h1 {
    justify-items: center;
  }

  .landing-hero h1 > span:last-child {
    margin-left: 0;
  }

  .landing-shell {
    margin-top: -1.5rem;
  }

  .landing-kpi-grid {
    grid-template-columns: 1fr;
  }

  .landing-search-card,
  .landing-trades-card {
    padding: 1rem;
  }

  .landing-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-trades-table-wrap {
    overflow-x: auto;
  }

  .landing-trades-table {
    min-width: 760px;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    min-height: 24rem;
  }

  .landing-search-input-wrap {
    min-height: 3.4rem;
    padding: 0 0.95rem;
  }

  #landing-search-input {
    font-size: 1rem;
  }

  .landing-search-chip {
    max-width: 100%;
  }
}
