/* Sub-pages lay out on an 880px column (.container), so the shared header/footer in
   site.css should match it rather than the root page's wider 1060px. */
:root {
  --site-max: 880px;
}

/* Page-specific styles, layered on top of ../theme.css's reset/fonts/colors. */

body {
  align-items: center;
}

#root {
  min-height: 100%;
  padding: 0;
  align-items: stretch;
  row-gap: 0;
}

a {
  color: inherit;
}

.inline-link {
  text-decoration: underline;
}

.inline-link:hover {
  color: #1B9E3E;
}

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Nav */

#dlmm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #222;
}

#dlmm-nav-right {
  display: flex;
  align-items: center;
  column-gap: 16px;
}

#dlmm-nav-links {
  display: flex;
  align-items: center;
  column-gap: 8px;
}

.dlmm-nav-link {
  font-size: 14px;
  font-weight: 700;
  color: #999;
  text-decoration: none;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 8px 16px;
}

.dlmm-nav-link:hover,
.dlmm-nav-link.active {
  color: #fff;
  border-color: #1B9E3E;
}

.dlmm-nav-cta {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background-color: #1B9E3E;
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

.dlmm-nav-cta:hover {
  background-color: #178735;
}

#dlmm-nav-logo {
  display: flex;
  align-items: center;
  column-gap: 10px;
  text-decoration: none;
}

#dlmm-nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: block;
}

#dlmm-nav-logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

#dlmm-nav-logo-text span {
  color: #666;
  font-weight: 400;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  row-gap: 20px;
  padding: 72px 24px 56px;
}

/* Standalone hero with no sections below it (the root product page) — fills the remaining
   viewport height and centers itself in it, so it reads as an app's entry screen rather than a
   page whose content just stops partway down a mostly-empty viewport. */
.product-hero {
  flex: 1;
  justify-content: center;
  padding-bottom: 100px;
}

/* Curve liquidity distribution diagram — same shape as lightpaper.css's .dist-svg Curve card
   (weight peaks at the active bin, tapers toward the edges), but colored like lightpaper.css's
   .bc-bar-x/.bc-bar-y bin-composition diagram (blue for the bid side below the active price,
   green for the ask side above it) rather than that card's plain gray, since this is a hero
   centerpiece rather than a small reference card. The active bin itself is split blue/green
   top and bottom — it's the one bin holding both tokens at once. */
.hero-dist-svg {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.hero-dist-bar-bid {
  fill: #3b82f6;
}

.hero-dist-bar-ask {
  fill: #8b5cf6;
}

/* The active bin is drawn as two fill rects (see index.html) stacked to make the bid/ask split,
   plus this fill-none rect on top tracing the whole bin's outline once — a single border with 4
   rounded corners around the whole bin, instead of a border on every bar (which the rest of the
   bins don't have) or an extra interim line where the two fills meet. */
.hero-dist-bar-outline {
  fill: none;
  stroke: #000;
  stroke-width: 1;
}

.db-axis {
  stroke: #2a2a2a;
  stroke-width: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: #999;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #1B9E3E;
  box-shadow: 0 0 6px #1B9E3E;
  animation: hero-badge-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes hero-badge-dot-pulse {
  0%, 100% {
    box-shadow: 0 0 2px #1B9E3E;
  }
  50% {
    box-shadow: 0 0 10px 3px #1B9E3E;
  }
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  max-width: 640px;
}

.hero h1 .accent {
  color: #1B9E3E;
}

.hero p {
  font-size: 17px;
  color: #999;
  max-width: 560px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 12px;
  row-gap: 12px;
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-primary {
  background-color: #1B9E3E;
  color: #fff;
}

.button-primary:hover {
  background-color: #178735;
}

.button-secondary {
  background-color: transparent;
  border-color: #333;
  color: #fff;
}

.button-secondary:hover {
  background-color: #111;
}

.hero-note {
  font-size: 13px;
  color: #555;
}

/* Sections */

section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid #1a1a1a;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-subtitle {
  color: #888;
  font-size: 15px;
  margin-bottom: 32px;
  max-width: 560px;
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  border: 1px solid #222;
  background-color: #111;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.feature-card-icon {
  font-size: 22px;
  line-height: 1;
  background-color: transparent;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  background-color: transparent;
}

.feature-card p {
  font-size: 14px;
  color: #999;
  line-height: 1.5;
  background-color: transparent;
}

/* Roadmap */

.roadmap-list {
  display: flex;
  flex-direction: column;
  row-gap: 2px;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  column-gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid #1a1a1a;
}

.roadmap-item:last-child {
  border-bottom: none;
}

.roadmap-status {
  flex-shrink: 0;
  width: 88px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding-top: 2px;
}

.roadmap-status.status-live {
  color: #1B9E3E;
}

.roadmap-status.status-next {
  color: #e6b800;
}

.roadmap-status.status-later {
  color: #666;
}

.roadmap-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.roadmap-body p {
  font-size: 14px;
  color: #999;
  line-height: 1.5;
}

/* CTA */

.cta {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

.cta h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta p {
  color: #999;
  font-size: 15px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 480px) {
  #dlmm-nav {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  #dlmm-nav-right {
    width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
  }

  #dlmm-nav-links {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .dlmm-nav-cta {
    margin-left: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-item {
    flex-direction: column;
    row-gap: 6px;
  }

  .roadmap-status {
    width: auto;
  }

  .hero h1 {
    font-size: 28px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
  }
}
