*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: #222;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3 {
  font-weight: 600;
  color: #111;
}

a {
  color: #0057ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

.text-block {
  max-width: 800px;
  font-size: 18px;
}

.header {
  background: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

.nav a {
  margin-left: 20px;
  font-size: 15px;
}

.hero {
  background: #fafafa;
  padding: 100px 20px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.hero h1 {
  font-size: 46px;
  margin-bottom: 10px;
}

.subtitle {
  max-width: 700px;
  margin: 10px auto 30px;
  font-size: 18px;
  color: #555;
}

.hero-buttons {
  margin-top: 20px;
}

.btn-primary {
  padding: 12px 26px;
  background: #0057ff;
  color: #fff;
  border-radius: 6px;
  margin: 5px;
  font-size: 16px;
}

.btn-secondary {
  padding: 12px 26px;
  background: #e6e6e6;
  color: #111;
  border-radius: 6px;
  margin: 5px;
  font-size: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card,
.info-box,
.pool-card,
.token-card {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-height: 100px;
  width: 100%;
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

.card.row {
  flex-direction: row;
  align-items: center;
}

.card h3,
.info-box h3,
.card .title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #111;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card .sub,
.card .meta,
.info-box .meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.3;
  word-break: break-word;
}

.card .desc,
.info-box .desc,
.card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.card .desc.short {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
  max-height: none;
}

.card .address,
.info-box .address,
.code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  font-size: 0.85rem;
  color: #111;
  word-break: break-all;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.card .more,
.info-box .more,
.card a.cta {
  margin-top: 8px;
  align-self: flex-start;
  text-decoration: none;
  color: #0057ff;
  font-weight: 600;
  font-size: 0.95rem;
}

.card .more.right {
  margin-left: auto;
}

.card img,
.info-box img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 6px;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.break-anywhere {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 1024px) {
  .card { min-height: 110px; padding: 20px; }
  .card .desc { -webkit-line-clamp: 4; line-clamp: 4; }
}

@media (max-width: 768px) {
  .info-grid { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .card { min-height: 100px; padding: 14px; }
  .card h3 { font-size: 1rem; }
  .card .desc { -webkit-line-clamp: 5; line-clamp: 5; }
}

@media (max-width: 480px) {
  .info-grid { grid-template-columns: 1fr; }
  .card { padding: 12px; min-height: 90px; }
  .card h3 { font-size: 0.98rem; }
  .card .desc { -webkit-line-clamp: 6; line-clamp: 6; }
}

.card table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  word-break: break-word;
}

.card table td, .card table th {
  padding: 6px 8px;
  vertical-align: top;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card.force-wrap * {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.card.small {
  padding: 10px;
  min-height: 80px;
}

.card.ghost {
  background: transparent;
  box-shadow: none;
  border: none;
}

.debug-cards .card {
  outline: 1px dashed rgba(0,0,0,0.06);
}
