.landing-container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.landing-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}

.landing-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.landing-logo {
  font-weight: var(--weight-strong);
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.landing-nav__lang {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

.landing-nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
}

.landing-nav__theme:hover {
  color: var(--text-primary);
  background: var(--accent-soft);
}

.landing-nav__theme-sun,
[data-theme="dark"] .landing-nav__theme-moon {
  display: none;
}

[data-theme="dark"] .landing-nav__theme-sun {
  display: block;
}

.landing-nav__link {
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 216px;
  text-align: center;
}

.landing-hero__content {
  position: relative;
}

/* Background chart: 30 days of visits. The bars rise once when the page loads,
   then today's bar (the last one) keeps growing a little, like visits coming in. */
.landing-hero__chart {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1120px, 100%);
  height: 168px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 0 var(--space-5);
  pointer-events: none;
}

.landing-hero__bar {
  flex: 1 1 0;
  height: var(--bar);
  border-radius: 6px 6px 0 0;
  background: var(--accent);
  opacity: 0.09;
  transform-origin: bottom;
  animation: landing-bar-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay) both;
}

.landing-hero__bar:last-child {
  opacity: 0.22;
  animation:
    landing-bar-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay) both,
    landing-bar-live 2.4s ease-in-out 2s infinite;
}

.landing-hero__bar:nth-child(1) { --bar: 22%; --delay: 0ms; }
.landing-hero__bar:nth-child(2) { --bar: 30%; --delay: 35ms; }
.landing-hero__bar:nth-child(3) { --bar: 26%; --delay: 70ms; }
.landing-hero__bar:nth-child(4) { --bar: 38%; --delay: 105ms; }
.landing-hero__bar:nth-child(5) { --bar: 34%; --delay: 140ms; }
.landing-hero__bar:nth-child(6) { --bar: 28%; --delay: 175ms; }
.landing-hero__bar:nth-child(7) { --bar: 44%; --delay: 210ms; }
.landing-hero__bar:nth-child(8) { --bar: 40%; --delay: 245ms; }
.landing-hero__bar:nth-child(9) { --bar: 52%; --delay: 280ms; }
.landing-hero__bar:nth-child(10) { --bar: 46%; --delay: 315ms; }
.landing-hero__bar:nth-child(11) { --bar: 36%; --delay: 350ms; }
.landing-hero__bar:nth-child(12) { --bar: 50%; --delay: 385ms; }
.landing-hero__bar:nth-child(13) { --bar: 58%; --delay: 420ms; }
.landing-hero__bar:nth-child(14) { --bar: 54%; --delay: 455ms; }
.landing-hero__bar:nth-child(15) { --bar: 48%; --delay: 490ms; }
.landing-hero__bar:nth-child(16) { --bar: 62%; --delay: 525ms; }
.landing-hero__bar:nth-child(17) { --bar: 56%; --delay: 560ms; }
.landing-hero__bar:nth-child(18) { --bar: 66%; --delay: 595ms; }
.landing-hero__bar:nth-child(19) { --bar: 60%; --delay: 630ms; }
.landing-hero__bar:nth-child(20) { --bar: 52%; --delay: 665ms; }
.landing-hero__bar:nth-child(21) { --bar: 70%; --delay: 700ms; }
.landing-hero__bar:nth-child(22) { --bar: 64%; --delay: 735ms; }
.landing-hero__bar:nth-child(23) { --bar: 74%; --delay: 770ms; }
.landing-hero__bar:nth-child(24) { --bar: 68%; --delay: 805ms; }
.landing-hero__bar:nth-child(25) { --bar: 78%; --delay: 840ms; }
.landing-hero__bar:nth-child(26) { --bar: 72%; --delay: 875ms; }
.landing-hero__bar:nth-child(27) { --bar: 82%; --delay: 910ms; }
.landing-hero__bar:nth-child(28) { --bar: 76%; --delay: 945ms; }
.landing-hero__bar:nth-child(29) { --bar: 88%; --delay: 980ms; }
.landing-hero__bar:nth-child(30) { --bar: 96%; --delay: 1015ms; }

@keyframes landing-bar-rise {
  from {
    transform: scaleY(0);
  }
}

@keyframes landing-bar-live {
  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__bar,
  .landing-hero__bar:last-child {
    animation: none;
  }
}

[data-theme="dark"] .landing-hero__bar {
  opacity: 0.16;
}

[data-theme="dark"] .landing-hero__bar:last-child {
  opacity: 0.34;
}

.landing-hero__title {
  font-size: clamp(38px, 6.4vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 760px;
  margin: 0 auto var(--space-4);
}

.landing-hero__subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto var(--space-6);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

.landing-button {
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: var(--weight-medium);
  text-decoration: none;
}

.landing-button--ghost {
  background: transparent;
  color: var(--accent);
}

.landing-section__title {
  font-size: clamp(26px, 4vw, 34px);
  text-align: center;
  margin-bottom: var(--space-6);
}

.landing-features,
.landing-setup,
.landing-cta {
  padding: 64px 0;
}

.landing-features {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.landing-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.landing-feature {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-0);
}

.landing-feature p {
  margin: 0;
  color: var(--text-secondary);
}

.landing-setup__text {
  text-align: center;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto var(--space-5);
}

.landing-setup__code {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--space-4);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  font-family: var(--font-mono);
  font-size: 14px;
}

.landing-cta {
  text-align: center;
}

.landing-cta .landing-section__title {
  margin-bottom: var(--space-3);
}

.landing-cta p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
}

.landing-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.landing-footer p {
  margin: 0;
}

@media (max-width: 600px) {
  .landing-hero {
    padding: 64px 0 152px;
  }

  .landing-hero__chart {
    height: 112px;
    gap: 4px;
    padding: 0 var(--space-3);
  }

  .landing-hero__subtitle {
    font-size: 17px;
  }
}
